What happened
I upgraded my system yesterday and it updated dkms to the latest version for Ubuntu 22.10: dmks3.0.6-2ubuntu1. At the same time, apt upgraded me to the latest kernel version.
Since then, my nvidia drivers just stopped working.
The cause
After some looking, I managed to understand that the nvidia driver found in /lib/modules/5.19.0-35-generic/updates/dkms/nvidia.ko is NOT signed, explaining why modprobe nvidia outputs:
modprobe: ERROR: could not insert 'nvidia': Key was rejected by service
The root cause
After some more looking, I came to the conclusion that dmks3.0.6-2ubuntu1 is the sole reason for my game night being ruined.
Calling dkms manually
sudo dkms install --force nvidia/525.89.02
Sign command: /usr/lib/linux-kbuild-5.19/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Binary kmod-sign not found, modules won't be signed
...
The bug is known since September 2022
From Bug#1019425: dkms 3.0.6-2 not signing modules, one can read:
Package: dkms
Version: 3.0.6-2
Severity: important
Dear Maintainer,
With dkms 3.0.6-2 the modules are no longer signed. This means that secure-boot
no longer works.
Back to 3.0.3-4 and and signing works again.
This bug is fixed by dkms3.0.9.
The question
What can I do (No, I cannot disable SecureBoot) to downgrade or upgrade dkms to a working version? apt list -a dkms only lists 3.0.6 as available versions for dkms :(