Hey, I have a thinkpad X1 Extreme gen 5 with an RTX 3050 Ti mobile and I have Ubuntu 22.04 installed.
I’ve been using the nvidia-driver-535 package and things were all fine until a recent apt upgrade. I think the ubuntu kernel changed or something. Then I ran into errors and had to do dpkg --configure -a. Ever since, I am having trouble with the nvidia driver.
Basically, the error that I get is that the dkms for nvidia could not be built.
I tried uninstalling and reinstalling the nvidia driver, different driver versions (525, 530, 535), I also tried a range of different kernels (including the kernel that used to work before the issue), but nothing seems to solve the problem. I’m currently using the 6.4.10-3-liquorix-amd64 kernel.
I am hence asking this here in case someone knows this issue or can help me solve it. Any ideas are welcome.
Also to give you a bit more detail on the crash report:
When I run sudo apt install nvidia-driver-535 I get the following error:
Loading new nvidia-535.86.05 DKMS files...
Building for 6.4.10-3-liquorix-amd64
Building for architecture x86_64
Building initial module for 6.4.10-3-liquorix-amd64
ERROR (dkms apport): kernel package linux-headers-6.4.10-3-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 6.4.10-3-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/nvidia/535.86.05/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
Setting up libnvidia-encode-535:amd64 (535.86.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-encode-535:i386 (535.86.05-0ubuntu0.22.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-driver-535:
nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.86.05-1); however:
Package nvidia-dkms-535 is not configured yet.
nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.86.05); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package nvidia-driver-535 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for initramfs-tools (0.140ubuntu13.2) ...
update-initramfs: Generating /boot/initrd.img-6.4.10-3-liquorix-amd64
W: Possible missing firmware /lib/firmware/amd/amd_sev_fam19h_model1xh.sbin for module ccp
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Errors were encountered while processing:
nvidia-dkms-535
nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)
The error similarly happens with different kernels (not specific to the liqourix kernel).
I have also attached the nvidia-dkms-535.0.crash report generated by dpkg:
Luckily it’s Linux and you can literally fix everything - if you know how…
I’d look for the installation instructions of what you installed and look to revert that.
2nd - Look for what files where installed and move them manually to a temporary location. To see if that fixes the issue and if it’ll break something else…
For now, I moved the directory /usr/src/ofa_kernel to a different location (to back it up in case something goes wrong). After that, I was able to install the Nvidia driver, and so far everything seems to be working.