Comment 9 for bug 1998689

Revision history for this message
Michael Soegtrop (msoegtrop) wrote :

A few more notes (with a manual fix):

After an update to kernel 5.15.0-58 I again had the same issue.

The (slightly shortened) state the Ubuntu updater left my system in after the kernel update is:
```
dpkg-query --list '*' | grep kernel
ii linux-headers-5.15.0-48 5.15.0-48.54 all Header files related to Linux kernel version 5.15.0
ii linux-headers-5.15.0-48-generic 5.15.0-48.54 amd64 Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
ii linux-headers-5.15.0-58 5.15.0-58.64 all Header files related to Linux kernel version 5.15.0
ii linux-headers-5.15.0-58-generic 5.15.0-58.64 amd64 Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-22.04 5.15.0.58.56 amd64 Generic Linux kernel headers
ii linux-image-5.15.0-48-generic 5.15.0-48.54 amd64 Signed kernel image generic
ii linux-image-5.15.0-58-generic 5.15.0-58.64 amd64 Signed kernel image generic
ii linux-image-generic-hwe-22.04 5.15.0.58.56 amd64 Generic Linux kernel image
ii linux-modules-5.15.0-48-generic 5.15.0-48.54 amd64 Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii linux-modules-5.15.0-58-generic 5.15.0-58.64 amd64 Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii linux-modules-extra-5.15.0-48-generic 5.15.0-48.54 amd64 Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii linux-modules-extra-5.15.0-58-generic 5.15.0-58.64 amd64 Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii linux-modules-nvidia-515-5.15.0-48-generic 5.15.0-48.54 amd64 Linux kernel nvidia modules for version 5.15.0-48
ii linux-objects-nvidia-515-5.15.0-48-generic 5.15.0-48.54 amd64 Linux kernel nvidia modules for version 5.15.0-48 (objects)
ii linux-signatures-nvidia-5.15.0-48-generic 5.15.0-48.54 amd64 Linux kernel signatures for nvidia modules for version 5.15.0-48-generic
```
So the nvidia modules matching the kernel are simply missing.

Manually installing them (with the old 48 kernel booted) with
```
sudo apt install linux-signatures-nvidia-5.15.0-58-generic
sudo apt install linux-modules-nvidia-515-5.15.0-58-generic
sudo apt install linux-objects-nvidia-515-5.15.0-58-generic (nothing extra installed)
```
fixed the boot issue with kernel 58.

A possible toot cause:

In the old days dkms was supposed to handle this. Apparently in recent Ubuntu the Ubuntu supplied nvidia drivers are installed as binary packages. On my system dkms is not installed. Manually installing dkms and running "dmks status" brings no result. This decision of Ubuntu is mentioned here on the nVidia developer forum:

https://forums.developer.nvidia.com/t/whats-the-process-for-fixing-nvidia-drivers-after-kernel-updates-in-ubuntu-20-04/208870/11

Possibly this design change didn't fully find its way in the release process for the binary nVidia drivers, so that only the initial release of this new method worked.