Ubuntu – 20.04 Focal – Nvidia driver no longer loading with kernel 5.4.0-42
driverskernelnvidia
On Ubuntu 20.04 Focal, I upgraded to kernel 5.4.0-42 (using the Software Updater GUI / apt) and my Nvidia proprietary drivers stopped working.
Rebooting to the old kernel (5.4.0-40) yields a working system, so it is clear that the kernel update was the trigger for the problem.
Installing the headers with:
sudo apt install linux-headers-5.4.0-42-generic
caused apt to automatically recompile the nvidia kernel module for the new kernel. After a reboot to the new kernel, everything just worked.
I'm not sure why headers weren't installed automatically (I believe they usually are?). Perhaps there is a problem with the apt package for the new kernel?
This happened on the 20.04 Focal release.
Bookmarks