Error! Bad return status for module build on kernel: 5.15.102-pve (x86_64)

ITI

New Member
Sep 5, 2023
1
0
1
Hello guys, when I'm trying to install NVIDIA Driver by running

./NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm.run --dkms

This error appears;

HTML:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 510.47.03 -k 5.15.102-1-pve`:
         Kernel preparation unnecessary for this kernel.  Skipping...

         Building module:
         cleaning build area...
         'make' -j4 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.15.102-1-pve IGNORE_CC_MISMATCH=''
         modules.........(bad exit status: 2)
         Error! Bad return status for module build on kernel: 5.15.102-1-pve (x86_64)
         Consult /var/lib/dkms/nvidia/510.47.03/build/make.log for more information.

I'm using Proxmox 7.4-3
 
These are just follow-up errors, there should be some output or log file with the actual error.

One often missed thing is installing the pve-headers package, normally for you that would be the pve-headers-5.15 meta package that pulls in the most recent 5.15 based one, but 5.15.102-pve kernel isn't the newest available, so you might need to explicitly install that version, or rather, update your system to get most current software.