Upgraded to Proxmox VE 8, but have a hiccup with linux-headers

Zac

Member
Jan 18, 2022
5
4
8
I did the upgrade path from 7 to 8 and saw a couple errors during the process but upon rebooting it started up fine, though when trying to do apt update / apt upgrade (or apt dist-upgrade) I get the following:
Code:
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:
  dctrl-tools g++-10 libgs9-common libidn11 libstdc++-10-dev libtiff5 libwebp6 linux-compiler-gcc-10-x86 linux-headers-5.10.0-23-amd64 linux-headers-5.10.0-23-common linux-kbuild-5.10 pve-kernel-5.15.107-2-pve
  telnet
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-9-amd64 (6.1.27-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-9-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...(bad exit status: 2)
make -j28 KERNELRELEASE=6.1.0-9-amd64 all KPVER=6.1.0-9-amd64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-9-amd64 (x86_64)
Consult /var/lib/dkms/kernel-mft-dkms/4.18.0/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-9-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-9-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-9-amd64 (--configure):
 installed linux-headers-6.1.0-9-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-9-amd64 (= 6.1.27-1); however:
  Package linux-headers-6.1.0-9-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-9-amd64
 linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


the contents of "/var/lib/dkms/kernel-mft-dkms/4.18.0/build/make.log" (listed after Building module) are as follows:

Code:
DKMS make.log for kernel-mft-dkms-4.18.0 for kernel 6.1.0-9-amd64 (x86_64)
Thu Jun 22 12:57:34 PM MDT 2023
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
make -C /lib/modules/6.1.0-9-amd64/build M=/var/lib/dkms/kernel-mft-dkms/4.18.0/build CONFIG_CTF= CONFIG_CC_STACKPROTECTOR_STRONG= CC=gcc-12 modules
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-9-amd64'
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
  CC [M]  /var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pci.o
  CC [M]  /var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.o
/var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.c: In function ‘close_dma’:
/var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.c:601:13: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
  601 |             pci_unmap_single(dev->pci_dev, dev->dma_props[i].dma_map, DMA_MBOX_SIZE, DMA_BIDIRECTIONAL);
      |             ^~~~~~~~~~~~~~~~
      |             dma_unmap_single
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-9-common/scripts/Makefile.build:255: /var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-9-common/Makefile:2037: /var/lib/dkms/kernel-mft-dkms/4.18.0/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-9-amd64'
make: *** [Makefile:53: all] Error 2

Is there an easy way to fix this?

Thanks!
 
The PVE kernel got its own headers. Try to install the "pve-headers" package: apt update && apt install pve-headers
 
The PVE kernel got its own headers. Try to install the "pve-headers" package: apt update && apt install pve-headers
It seems to keep looping back to 6.1.0-9:

Code:
OkamiNAS:~# apt update && apt install pve-headers
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://ftp.ca.debian.org/debian bookworm InRelease
Hit:3 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:4 http://ftp.ca.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pve-headers is already the newest version (8.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 linux-headers-6.1.0-9-amd64 (6.1.27-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-9-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...(bad exit status: 2)
make -j28 KERNELRELEASE=6.1.0-9-amd64 all KPVER=6.1.0-9-amd64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-9-amd64 (x86_64)
Consult /var/lib/dkms/kernel-mft-dkms/4.18.0/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-9-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-9-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-9-amd64 (--configure):
 installed linux-headers-6.1.0-9-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-9-amd64 (= 6.1.27-1); however:
  Package linux-headers-6.1.0-9-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-9-amd64
 linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
 

I may need to look at getting a different SFP+ network card to replace my ConnectX-3 if support is dropped or it stops working.

I ended up just removing the headers to stop the errors
Code:
OkamiNAS:~# uname -r
6.2.16-3-pve
OkamiNAS:~# uname -a
Linux OkamiNAS 6.2.16-3-pve #1 SMP PREEMPT_DYNAMIC PVE 6.2.16-3 (2023-06-17T05:58Z) x86_64 GNU/Linux
OkamiNAS:~#
OkamiNAS:~# dpkg --list | egrep -i --color 'linux-image|linux-headers'
iF  linux-headers-6.1.0-9-amd64          6.1.27-1                         amd64        Header files for Linux 6.1.0-9-amd64
ii  linux-headers-6.1.0-9-common         6.1.27-1                         all          Common header files for Linux 6.1.0-9
iU  linux-headers-amd64                  6.1.27-1                         amd64        Header files for Linux amd64 configuration (meta-package)


apt-get --purge remove linux-headers-6.1.0-9-amd64

apt-get --purge remove linux-headers-6.1.0-9-common
 
Last edited:
having a similar issue, should I not be removing the 6.1.0-9 headers?
dpkg: error processing package linux-headers-amd64 (--configure): dependency problems - leaving unconfigured Setting up pve-headers-6.2 (8.0.2) ... Setting up pve-headers (8.0.1) ... Errors were encountered while processing: linux-headers-6.1.0-9-amd64 linux-headers-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) root@pve:/etc/apt/sources.list.d# dpkg --list | egrep -i --color 'linux-image|linux-headers' ii linux-headers-5.10.0-23-amd64 5.10.179-1 amd64 Header files for Linux 5.10.0-23-amd64 ii linux-headers-5.10.0-23-common 5.10.179-1 all Common header files for Linux 5.10.0-23 iF linux-headers-6.1.0-9-amd64 6.1.27-1 amd64 Header files for Linux 6.1.0-9-amd64 ii linux-headers-6.1.0-9-common 6.1.27-1 all Common header files for Linux 6.1.0-9 iU linux-headers-amd64 6.1.27-1 amd64 Header files for Linux amd64 configuration (meta-package)
 

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!