Error during update

meldalinn

New Member
Jul 11, 2024
14
0
1
Dont know what Ive messed up here

Code:
root@proxmox:~# sudo apt upgrade
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
  4 not fully installed or removed.
  Space needed: 0 B / 136 GB available

Continue? [Y/n] y
Setting up proxmox-kernel-6.17.4-2-pve-signed (6.17.4-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.17.4-2-pve /boot/vmlinuz-6.17.4-2-pve
Sign command: /lib/modules/6.17.4-2-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module nvidia/570.144 for kernel 6.17.4-2-pve (x86_64)
Building module(s)..............(bad exit status: 2)
Failed command:
'make' -j32 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.17.4-2-pve modules

Error! Bad return status for module build on kernel: 6.17.4-2-pve (x86_64)
Consult /var/lib/dkms/nvidia/570.144/build/make.log for more information.

Autoinstall on 6.17.4-2-pve failed for module(s) nvidia(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.17.4-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.17.4-2-pve-signed (--configure):
 installed proxmox-kernel-6.17.4-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.17:
 proxmox-kernel-6.17 depends on proxmox-kernel-6.17.4-2-pve-signed | proxmox-kernel-6.17.4-2-pve; however:
  Package proxmox-kernel-6.17.4-2-pve-signed is not configured yet.
  Package proxmox-kernel-6.17.4-2-pve is not installed.
  Package proxmox-kernel-6.17.4-2-pve-signed which provides proxmox-kernel-6.17.4-2-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.17 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
 proxmox-default-kernel depends on proxmox-kernel-6.17; however:
  Package proxmox-kernel-6.17 is not configured yet.

dpkg: error processing package proxmox-default-kernel (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on proxmox-default-kernel; however:
  Package proxmox-default-kernel is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.17.4-2-pve-signed
 proxmox-kernel-6.17
 proxmox-default-kernel
 proxmox-ve
Error: Sub-process /usr/bin/dpkg returned an error code (1)

Exerpt from /var/lib/dkms/nvidia/570.144/build/make.log:

Code:
nvidia/nv-acpi.c:26:10: fatal error: os-interface.h: No such file or directory
   26 | #include "os-interface.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
  CC [M]  nvidia/nv-pat.o
make[4]: *** [/usr/src/linux-headers-6.17.4-2-pve/scripts/Makefile.build:287: nvidia/nv-acpi.o] Error 1
make[4]: *** Waiting for unfinished jobs....
nvidia/nv-cray.c:26:10: fatal error: os-interface.h: No such file or directory
   26 | #include "os-interface.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/linux-headers-6.17.4-2-pve/scripts/Makefile.build:287: nvidia/nv-cray.o] Error 1
nvidia/nv-dma.c:26:10: fatal error: os-interface.h: No such file or directory
   26 | #include "os-interface.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/linux-headers-6.17.4-2-pve/scripts/Makefile.build:287: nvidia/nv-dma.o] Error 1
nvidia/nv-mmap.c:26:10: fatal error: os-interface.h: No such file or directory
   26 | #include "os-interface.h"
      |          ^~~~~~~~~~~~~~~~
 
Ok, trying to install newest NVIDIA driver, following this guide:

Getting stuck on this:
Code:
root@proxmox:/usr/src# apt install pve-headers-$(uname -r)
Error: Unable to locate package pve-headers-6.8.12-10-pve
Error: Couldn't find any package by glob 'pve-headers-6.8.12-10-pve'
 
I gave you a up to date documentation on how to install the drivers. Why not follow that?
Can you share apt update?
 
Last edited:
I gave you a up to date documentation on how to install the drivers. Why not follow that?
Can you share apt update?
Because the Nvidia installer gives me error for not finding headers, and the guide Ive used before tells me to install headers



Code:
root@proxmox:/usr/bin# apt update
Hit:1 http://security.debian.org/debian-security trixie-security InRelease
Hit:2 http://deb.debian.org/debian trixie InRelease
Hit:3 http://deb.debian.org/debian trixie-updates InRelease
Hit:4 http://download.proxmox.com/debian/ceph-squid trixie InRelease
Hit:5 http://download.proxmox.com/debian/pve trixie InRelease
All packages are up to date.
root@proxmox:/usr/bin#
 
That looks okay but stick to one guide. My guide (which is stand alone) tells you to run this. What does that return?
Bash:
apt install -y proxmox-default-headers gcc make dkms
 
Last edited:
  • Like
Reactions: meldalinn
Here you go

Code:
apt install -y proxmox-default-headers gcc make dkms

proxmox-default-headers is already the newest version (2.0.2).
gcc is already the newest version (4:14.2.0-1).
make is already the newest version (4.4.1-2).
dkms is already the newest version (3.2.2-1~deb13u1).
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
  4 not fully installed or removed.
  Space needed: 0 B / 136 GB available

Setting up proxmox-kernel-6.17.4-2-pve-signed (6.17.4-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.17.4-2-pve /boot/vmlinuz-6.17.4-2-pve
Sign command: /lib/modules/6.17.4-2-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module nvidia/570.144 for kernel 6.17.4-2-pve (x86_64)
Building module(s)..............(bad exit status: 2)
Failed command:
'make' -j32 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.17.4-2-pve modules

Error! Bad return status for module build on kernel: 6.17.4-2-pve (x86_64)
Consult /var/lib/dkms/nvidia/570.144/build/make.log for more information.

Autoinstall on 6.17.4-2-pve failed for module(s) nvidia(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.17.4-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.17.4-2-pve-signed (--configure):
 installed proxmox-kernel-6.17.4-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.17:
 proxmox-kernel-6.17 depends on proxmox-kernel-6.17.4-2-pve-signed | proxmox-kernel-6.17.4-2-pve; however:
  Package proxmox-kernel-6.17.4-2-pve-signed is not configured yet.
  Package proxmox-kernel-6.17.4-2-pve is not installed.
  Package proxmox-kernel-6.17.4-2-pve-signed which provides proxmox-kernel-6.17.4-2-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.17 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
 proxmox-default-kernel depends on proxmox-kernel-6.17; however:
  Package proxmox-kernel-6.17 is not configured yet.

dpkg: error processing package proxmox-default-kernel (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on proxmox-default-kernel; however:
  Package proxmox-default-kernel is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.17.4-2-pve-signed
 proxmox-kernel-6.17
 proxmox-default-kernel
 proxmox-ve
Error: Sub-process /usr/bin/dpkg returned an error code (1)
 
As I said, you need to remove all the NVIDIA packages and the DKMS modules first.
Check dpkg -l "*nvidia*" and dkms status. Then apt purge --auto-remove ... and dkms remove ....
 
  • Like
Reactions: meldalinn
dkms remove worked - but apt purge less so - error same on all 3
Code:
root@proxmox:/usr/bin# dpkg -l "*nvidia*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                         Version      Architecture Description
+++-============================-============-============-=================================
un  nvidia-kernel-dkms           <none>       <none>       (no description available)
un  nvidia-tesla-535-kernel-dkms <none>       <none>       (no description available)
un  pve-nvidia-vgpu-helper       <none>       <none>       (no description available)
root@proxmox:/usr/bin# dkms status
nvidia/570.144, 6.14.11-5-pve, x86_64: installed
nvidia/570.144, 6.8.12-15-pve, x86_64: installed
root@proxmox:/usr/bin# apt purge --auto-remove pve-nvidia-vgpu-helper
Package 'pve-nvidia-vgpu-helper' is not installed, so not removed
 
apt install -y proxmox-default-headers gcc make dkms
This one allways worked, but the nvidia installer claims it cant find the headers - however "apt install build-essential pve-headers-$(uname -r)" still doesent work, and NVIDIA still tries to install everytime I do something with apt
 
What I can tell you is that this guide is exactly what I use myself. I can't help you with the other guide s steps. Have you already rebooted?
Is dkms status now empty? What does apt purge nvidia-kernel-dkms nvidia-tesla-535-kernel-dkms say?
 
  • Like
Reactions: meldalinn
Right, I get that you dont like my guide, but the error from nvidias installer is that it cant find the kernel source tree - and looking up on google, that means the headers, and where they are supposed to be stored, I cant find the ones for my kernel. (6.8.12.10)
Code:
root@proxmox:/usr/src# ls -la
total 43
drwxr-xr-x  5 root root  5 Jan  6 09:36 .
drwxr-xr-x 12 root root 12 Apr  9  2025 ..
drwxr-xr-x 25 root root 30 Jan  6 08:07 linux-headers-6.17.4-2-pve
drwxr-xr-x 25 root root 30 May 14  2025 linux-headers-6.8.12-9-pve
drwxr-xr-x  8 root root 14 May 15  2025 nvidia-570.144

Now, the other guide says to install the headers with
Code:
 apt install build-essential pve-headers-$(uname -r)
wich tries to install headers for 6.8.12.10

dkms
Code:
root@proxmox:/usr/src# dkms status
nvidia/570.144, 6.14.11-5-pve, x86_64: installed
nvidia/570.144, 6.8.12-15-pve, x86_64: installed
root@proxmox:/usr/src# dkms remove nvidia/570.144
Module nvidia/570.144 is not installed for kernel 6.8.12-10-pve (x86_64). Skipping...
Module nvidia/570.144 is not built for kernel 6.8.12-10-pve (x86_64). Skipping...

apt purge

Code:
root@proxmox:/usr/src# apt purge nvidia-kernel-dkms nvidia-tesla-535-kernel-dkms
Package 'nvidia-kernel-dkms' is not installed, so not removed
Package 'nvidia-tesla-535-kernel-dkms' is not installed, so not removed
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
  4 not fully installed or removed.
  Space needed: 0 B / 136 GB available

Setting up proxmox-kernel-6.17.4-2-pve-signed (6.17.4-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.17.4-2-pve /boot/vmlinuz-6.17.4-2-pve
Sign command: /lib/modules/6.17.4-2-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module nvidia/570.144 for kernel 6.17.4-2-pve (x86_64)
Building module(s)........

Also, yes Ive rebooted
 
Last edited:
The kernel you booted needs to match the version that proxmox-default-headers provides. Hence the suggestion to reboot.
First you need to find a way to remove the remnants of the old 570 modules though.
 
  • Like
Reactions: meldalinn
Progress - found the old installer, and ran it with --uninstall flag


Now the only error on the new install is unable to find kernel source tree - it doesent give an error about a driver already being installed

Still something here - unsure of what this really means, dkms status is now empty
Code:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                         Version      Architecture Description
+++-============================-============-============-=================================
un  nvidia-kernel-dkms           <none>       <none>       (no description available)
un  nvidia-tesla-535-kernel-dkms <none>       <none>       (no description available)
un  pve-nvidia-vgpu-helper       <none>       <none>       (no description available)
root@proxmox:~# dkms status
root@proxmox:~# apt purge --auto-remove nvidia-kernel-dkms
Package 'nvidia-kernel-dkms' is not installed, so not removed
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
root@proxmox:~# apt purge --auto-remove nvidia-tesla-535-kernel-dkms
Package 'nvidia-tesla-535-kernel-dkms' is not installed, so not removed
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
root@proxmox:~# apt purge --auto-remove pve-nvidia-vgpu-helper
Package 'pve-nvidia-vgpu-helper' is not installed, so not removed
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
root@proxmox:~#
 
Sorry, I had a brainfart, it's been a long day, that should be okay. Can you show me
Code:
uname -r
dpkg -l "*header*"
as well as the error?
 
Last edited:
  • Like
Reactions: meldalinn
Sorry, I had a brainfart, it's been a long day, that should be okay. Can you show me
Code:
uname -r
dpkg -l "*header*"
as well as the error?
Im just glad someone is helping me dude :)


Code:
uname -r

6.8.12-10-pve


Code:
root@proxmox:~#  apt install pve-headers-$(uname -r)
Error: Unable to locate package pve-headers-6.8.12-10-pve
Error: Couldn't find any package by glob 'pve-headers-6.8.12-10-pve'

Code:
ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have installed
         the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for
         example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed.  If you know the correct
         kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path'
         command line option.
 
Please forget about pve-headers. This is outdated. The kernel you're currently booted from is not the latest/default one so the header version proxmox-default-headers depends on/installs does not match. Did you pin it? I can't find any pve header packages for 6.8.
 
Last edited:
  • Like
Reactions: meldalinn
Code:
root@proxmox:~# apt install proxmox-default-headers
proxmox-default-headers is already the newest version (2.0.2).

If that is correct, then I dont understand what Nvidia installer is on about
 
for the currently running kernel
You're running a old kernel so the headers don't match. You didn't answer if you already rebooted or if you pinned this old version.
 
  • Like
Reactions: meldalinn