Few days ago my WiFi’s laptop stopped working, after rebooting and selecting Linux kernel 6.14.0-24-generic at Grub advanced option I noticed it starts to work again, so the issue was the kernel update to 6.14.0-27-generic version
After some searching in the Internet I found other people with similar issue and the suggestion to install:

sudo apt install linux-modules-extra-6.14.0-27-generic

Didn’t work (I didn’t analyze the error initially and just follow with another suggestion there: edit /etc/default/grub and change to Advanced Options (index 1) and kernel kernel 6.14.0-24-generic (index 2 at Advanced Options:

GRUB_DEFAULT ="1>2"

Then run:

sudo update-grub

It fixed the issue, since Grub is booting on previous image every time.

Source: https://discourse.ubuntu.com/t/linux-kernel-6-14-0-27-broke-my-pc-linux-kernel-6-14-0-24-works/65292/2

Update: I decided to analyze why the installation of linux-modules-extra-6.14.0-27-generic was failing and I noticed it tried to remove nvidia-firmware-535-535.230.02 and to install linux-modules-nvidia-535-6.14.0-27-generic but it was failing because the kernel header files linux-headers-6.14.0-27-generic were missing. After install this last package everything worked again!