Bug#1062932: Error building nvidia-kernel-dkms while installing nvidia-driver package

David Landry thelandarian at pm.me
Thu Apr 4 01:52:29 BST 2024


Good evening,

The bug involving compiling/installing nvidia-kernel-dkms is still present. The result of the bug is that following a reboot after the erroneous installation noted below, my display drivers get completely disabled, including nouveau, resulting in my external display not functioning and my primary laptop display having very low resolution.

I followed the instructions to install NVIDIA proprietary drivers here:
https://wiki.debian.org/NvidiaGraphicsDrivers

When I executed:
sudo apt install nvidia-driver firmware-misc-nonfree
I received the following errors, as recorded from the output of the above command:
Setting up nvidia-kernel-dkms (525.147.05-4~deb12u1) ...
Loading new nvidia-current-525.147.05 DKMS files...
Building for 6.1.0-18-amd64
Building initial module for 6.1.0-18-amd64
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/525.147.05/build/make.log for more information.
dpkg: error processing package nvidia-kernel-dkms (--configure):
installed nvidia-kernel-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver:
nvidia-driver depends on nvidia-kernel-dkms (= 525.147.05-4~deb12u1) | nvidia-kernel-525.147.05 | nvidia-open-kernel-525.147.05 | nvidia-open-kernel-525.147.05; however:
Package nvidia-kernel-dkms is not configured yet.
Package nvidia-kernel-525.147.05 is not installed.
Package nvidia-kernel-dkms which provides nvidia-kernel-525.147.05 is not configured yet.
Package nvidia-open-kernel-525.147.05 is not installed.
Package nvidia-open-kernel-525.147.05 is not installed.

dpkg: error processing package nvidia-driver (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-18-amd64
Processing triggers for update-glx (1.2.2) ...
Processing triggers for glx-alternative-nvidia (1.2.2) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for glx-alternative-mesa (1.2.2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-18-amd64
Errors were encountered while processing:
nvidia-kernel-dkms
nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)

From /var/lib/dkms/nvidia-current/525.147.05/build/make.log:
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
make[3]: *** [/usr/src/linux-headers-6.1.0-18-common/scripts/Makefile.modpost:126: /var/lib/dkms/nvidia-current/525.147.05/build/Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-6.1.0-18-common/Makefile:1991: modpost] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-18-amd64'
make[1]: *** [Makefile:250: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-18-common'
make: *** [Makefile:82: modules] Error 2

Here is the output of hostnamectl:
Static hostname: landarian-laptop
Icon name: computer-laptop
Chassis: laptop 💻
Machine ID: 096686ad78fe43939982b38788ec530e
Boot ID: 42ecccb1e0704aaba319fc8d066e6a6a
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-18-amd64
Architecture: x86-64
Hardware Vendor: HP
Hardware Model: OMEN by HP Laptop 17-cb1xxx
Firmware Version: F.41

And here is the output of lspci -nn | egrep -i "3d|display|vga":
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] [10de:2191] (rev a1)

lsmod | grep -w video yields this:
video 65536 1 nouveau

After researching this issue, I found another Debian user with an identical issue:
https://github.com/NVIDIA/nvidia-container-toolkit/issues/361

A patch was linked to here:
https://unix.stackexchange.com/questions/769026/debian-12-linux-image-6-1-0-18-amd64-dist-upgrade-fails-on-nvidia-gpl-incompatib

I will attempt the patch until this bug gets resolved.

Thank you.
_________________________
David Landry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20240404/9c36b46b/attachment.htm>


More information about the pkg-nvidia-devel mailing list