8.1.3 --> 8.1.5 Errors were encountered while processing. NViDIA errors out

fuzzyduck

Member
Jul 14, 2021
66
3
13
44
after an apt dist-upgrade going from 8.1.3 to 8.1.5 i have packages not installed:
linux-headers-6.1.0-18-amd64
linux-headers-amd64

The machine reboots fine fortunately, and rerunning the dist-upgrade i was able to copy paste the output.

Code:
root@pve ~ # apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-6.1.0-15-amd64 linux-headers-6.1.0-15-common proxmox-kernel-6.2.16-10-pve
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-headers-6.1.0-18-amd64 (6.1.76-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-18-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j32 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.1.0-18-amd64 modules...........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/nvidia/545.29.06/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-18-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-18-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-18-amd64 (--configure):
 installed linux-headers-6.1.0-18-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
 linux-headers-amd64 depends on linux-headers-6.1.0-18-amd64 (= 6.1.76-1); however:
  Package linux-headers-6.1.0-18-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-6.1.0-18-amd64
 linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pve ~ #

Yes i have the patched NVIDIA driver installed. That nvidia log file ends with:

Code:
 LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia.o
ld -r -o /var/lib/dkms/nvidia/545.29.06/build/nvidia/nv-interface.o /var/lib/dkms/nvidia/545.29.06/build/nvidia/nv.o /var/>
ld -r -o /var/lib/dkms/nvidia/545.29.06/build/nvidia-modeset/nv-modeset-interface.o /var/lib/dkms/nvidia/545.29.06/build/n>
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-modeset.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-drm.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-peermem.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-uvm.o
  MODPOST /var/lib/dkms/nvidia/545.29.06/build/Module.symvers
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/545.29.06/build/Mo>
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

Before i start breaking stuff even more, can anybody tell me how to fix this?

thx!
 
Last edited:
Yes i have the patched NVIDIA driver installed. That nvidia log file ends with:
What does "patched" mean? It is not NVidia's official driver? At any rate, you need an updated driver. It is trying to use GPL symbols, which are not allowed in a proprietary driver.

Code:
 LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia.o
ld -r -o /var/lib/dkms/nvidia/545.29.06/build/nvidia/nv-interface.o /var/lib/dkms/nvidia/545.29.06/build/nvidia/nv.o /var/>
ld -r -o /var/lib/dkms/nvidia/545.29.06/build/nvidia-modeset/nv-modeset-interface.o /var/lib/dkms/nvidia/545.29.06/build/n>
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-modeset.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-drm.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-peermem.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-uvm.o
  MODPOST /var/lib/dkms/nvidia/545.29.06/build/Module.symvers
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'
[/QUOTE]
[/QUOTE]
 
Last edited:
  • Like
Reactions: fuzzyduck
after an apt dist-upgrade going from 8.1.3 to 8.1.5 i have packages not installed:
linux-headers-6.1.0-18-amd64
linux-headers-amd64

The machine reboots fine fortunately, and rerunning the dist-upgrade i was able to copy paste the output.

Code:
root@pve ~ # apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-6.1.0-15-amd64 linux-headers-6.1.0-15-common proxmox-kernel-6.2.16-10-pve
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-headers-6.1.0-18-amd64 (6.1.76-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-18-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j32 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.1.0-18-amd64 modules...........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/nvidia/545.29.06/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-18-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-18-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-18-amd64 (--configure):
 installed linux-headers-6.1.0-18-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
 linux-headers-amd64 depends on linux-headers-6.1.0-18-amd64 (= 6.1.76-1); however:
  Package linux-headers-6.1.0-18-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-6.1.0-18-amd64
 linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pve ~ #

Yes i have the patched NVIDIA driver installed. That nvidia log file ends with:

Code:
 LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia.o
ld -r -o /var/lib/dkms/nvidia/545.29.06/build/nvidia/nv-interface.o /var/lib/dkms/nvidia/545.29.06/build/nvidia/nv.o /var/>
ld -r -o /var/lib/dkms/nvidia/545.29.06/build/nvidia-modeset/nv-modeset-interface.o /var/lib/dkms/nvidia/545.29.06/build/n>
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-modeset.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-drm.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-peermem.o
  LD [M]  /var/lib/dkms/nvidia/545.29.06/build/nvidia-uvm.o
  MODPOST /var/lib/dkms/nvidia/545.29.06/build/Module.symvers
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/545.29.06/build/Mo>
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

Before i start breaking stuff even more, can anybody tell me how to fix this?

thx!
Not sure what Nvidia video card you're trying to install this for, but I'm running Promox 7.4-17 and I made the grave mistake of updating my PROD system.

As a result, my RTX A2000 stopped working, so I had to download the latest driver (550.67) and install that instead of the previous driver that I was using (535.154.*).

I am rebooting my server now to make sure that the new driver worked, but it was able to compile the kernel modules successfully, so maybe you can try that?
 
  • Like
Reactions: fuzzyduck

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!