I am attempting to install nvidia drivers on my proxmox. I keep getting this error when I do.
apt install libnvidia-cfg1 nvidia-kernel-source nvidia-kernel-common nvidia-driver nvidia-container-toolkit
nvidia-ctk runtime configure --runtime=docker
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libnvidia-cfg1 is already the newest version (525.147.05-4~deb12u1).
nvidia-kernel-source is already the newest version (525.147.05-4~deb12u1).
nvidia-kernel-common is already the newest version (20220217+3~deb12u1).
nvidia-driver is already the newest version (525.147.05-4~deb12u1).
nvidia-container-toolkit is already the newest version (1.15.0-1).
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 nvidia-kernel-dkms (525.147.05-4~deb12u1) ...
Removing old nvidia-current-525.147.05 DKMS files...
Deleting module nvidia-current-525.147.05 completely from the DKMS tree.
Loading new nvidia-current-525.147.05 DKMS files...
Building for 6.8.8-1-pve
Building initial module for 6.8.8-1-pve
Error! Bad return status for module build on kernel: 6.8.8-1-pve (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
Errors were encountered while processing:
nvidia-kernel-dkms
nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
INFO[0000] Loading config from /etc/docker/daemon.json
INFO[0000] Wrote updated config to /etc/docker/daemon.json
INFO[0000] It is recommended that docker daemon be restarted.
apt install libnvidia-cfg1 nvidia-kernel-source nvidia-kernel-common nvidia-driver nvidia-container-toolkit
nvidia-ctk runtime configure --runtime=docker
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libnvidia-cfg1 is already the newest version (525.147.05-4~deb12u1).
nvidia-kernel-source is already the newest version (525.147.05-4~deb12u1).
nvidia-kernel-common is already the newest version (20220217+3~deb12u1).
nvidia-driver is already the newest version (525.147.05-4~deb12u1).
nvidia-container-toolkit is already the newest version (1.15.0-1).
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 nvidia-kernel-dkms (525.147.05-4~deb12u1) ...
Removing old nvidia-current-525.147.05 DKMS files...
Deleting module nvidia-current-525.147.05 completely from the DKMS tree.
Loading new nvidia-current-525.147.05 DKMS files...
Building for 6.8.8-1-pve
Building initial module for 6.8.8-1-pve
Error! Bad return status for module build on kernel: 6.8.8-1-pve (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
Errors were encountered while processing:
nvidia-kernel-dkms
nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
INFO[0000] Loading config from /etc/docker/daemon.json
INFO[0000] Wrote updated config to /etc/docker/daemon.json
INFO[0000] It is recommended that docker daemon be restarted.