[SOLVED] Proxmox 6.1 & Nvidia Driver - Kernel module build error

Dušan Vejnovič

Active Member
Jan 22, 2019
4
0
41
59
I have system with VGA compatible controller NVIDIA Corporation GP108.
Today I upgrade to the latest Proxmox 6.1 and got the following error:

-----
Preparing to unpack .../pve-kernel-5.3.10-1-pve_5.3.10-1_amd64.deb ...
Unpacking pve-kernel-5.3.10-1-pve (5.3.10-1) over (5.3.10-1) ...
Setting up pve-kernel-5.3.10-1-pve (5.3.10-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.3.10-1-pve /boot/vmlinuz-5.3.10-1-pve
run-parts: executing /etc/kernel/postinst.d/dkms 5.3.10-1-pve /boot/vmlinuz-5.3.10-1-pve
Error! Bad return status for module build on kernel: 5.3.10-1-pve (x86_64)
Consult /var/lib/dkms/nvidia-current/418.74/build/make.log for more information.
-----

The kernel module for graphics card won't compile.
 

Attachments

Yes, that's sadly an issue with the Debian Shipped version of the NVIDIA driver. Or better said an issue of proprietary software and companies like NVIDIA.

But, you can rebuild the one from testing (installing directly won't work, as Debian testing has already a newer libc, and updating that on a stable system should never be done!)


Code:
apt install devscripts       # will install quite a few packages, but all of them are small, and most are required for building anyway

dget  https://deb.debian.org/debian/pool/non-free/n/nvidia-graphics-drivers/nvidia-graphics-drivers_430.64-1.dsc
cd nvidia-graphics-drivers-430.64/
mk-build-deps --install

dpkg-buildpackage -b -uc -us

If the buildpackage command suceeds you should find the built packages a directory above (cd ..)
You can install them with dpkg -i ... or apt install ./nvidia-kernel-dkms_430.64-1_amd64.deb
 
  • Like
Reactions: fireon
I've a similar issue with nvidia-legacy-390xx / nvidia-kernel-dkms_390

The workaround (dpkg-buildpackage ...) doesn't work either.
 

Attachments

Last edited:
Hi Dusan,

Any chance you could post the code on how you used this fix? I've been trying to figure it out for the past few hours and any help would be useful.

Cheers,
Justin

Hi Dusan,

I figured out what I needed to do. I added these repos to my PVE apt source list.

deb http://deb.debian.org/debian buster-backports main contrib non-free
deb-src http://deb.debian.org/debian buster-backports main contrib non-free
 

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!