Upgrade to proxmox 8 returns "dpkg: error processing package"


Active Member
Feb 16, 2018
After I tried to dist-upgrade from proxmox 7 to proxmox 8 I am getting the below. Anyone faced this?

root@pve4:/etc/apt# apt update
Hit:1 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:2 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease
Hit:3 http://ftp.debian.org/debian bookworm InRelease
Get:4 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:5 http://ftp.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [63.2 kB]
Fetched 163 kB in 1s (181 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pve4:/etc/apt# apt list --upgradable
Listing... Done
bind9-dnsutils/stable-security 1:9.18.19-1~deb12u1 amd64 [upgradable from: 1:9.18.16-1~deb12u1]
bind9-host/stable-security 1:9.18.19-1~deb12u1 amd64 [upgradable from: 1:9.18.16-1~deb12u1]
bind9-libs/stable-security 1:9.18.19-1~deb12u1 amd64 [upgradable from: 1:9.18.16-1~deb12u1]
dnsutils/stable-security 1:9.18.19-1~deb12u1 all [upgradable from: 1:9.18.16-1~deb12u1]
root@pve4:/etc/apt# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-dnsutils bind9-host bind9-libs dnsutils
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 2,373 kB of archives.
After this operation, 5,235 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://security.debian.org/debian-security bookworm-security/main amd64 bind9-host amd64 1:9.18.19-1~deb12u1 [303 kB]
Get:2 http://security.debian.org/debian-security bookworm-security/main amd64 bind9-dnsutils amd64 1:9.18.19-1~deb12u1 [401 kB]
Get:3 http://security.debian.org/debian-security bookworm-security/main amd64 bind9-libs amd64 1:9.18.19-1~deb12u1 [1,410 kB]
Get:4 http://security.debian.org/debian-security bookworm-security/main amd64 dnsutils all 1:9.18.19-1~deb12u1 [259 kB]
Fetched 2,373 kB in 1s (3,341 kB/s)
Reading changelogs... Done
(Reading database ... 191799 files and directories currently installed.)
Preparing to unpack .../bind9-host_1%3a9.18.19-1~deb12u1_amd64.deb ...
Unpacking bind9-host (1:9.18.19-1~deb12u1) over (1:9.18.16-1~deb12u1) ...
Preparing to unpack .../bind9-dnsutils_1%3a9.18.19-1~deb12u1_amd64.deb ...
Unpacking bind9-dnsutils (1:9.18.19-1~deb12u1) over (1:9.18.16-1~deb12u1) ...
Preparing to unpack .../bind9-libs_1%3a9.18.19-1~deb12u1_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.18.19-1~deb12u1) over (1:9.18.16-1~deb12u1) ...
Preparing to unpack .../dnsutils_1%3a9.18.19-1~deb12u1_all.deb ...
Unpacking dnsutils (1:9.18.19-1~deb12u1) over (1:9.18.16-1~deb12u1) ...
Setting up bind9-libs:amd64 (1:9.18.19-1~deb12u1) ...
Setting up proxmox-kernel-6.2.16-14-pve (6.2.16-14) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-14-pve /boot/vmlinuz-6.2.16-14-pve
dkms: running auto installation service for kernel 6.2.16-14-pve.
Sign command: /lib/modules/6.2.16-14-pve/build/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 -j4 KERNELRELEASE=6.2.16-14-pve all KPVER=6.2.16-14-pve...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.2.16-14-pve (x86_64)
Consult /var/lib/dkms/kernel-mft-dkms/4.16.1/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.2.16-14-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.2.16-14-pve.postinst line 20.
dpkg: error processing package proxmox-kernel-6.2.16-14-pve (--configure):
 installed proxmox-kernel-6.2.16-14-pve package post-installation script subprocess returned error exit status 2
Setting up bind9-host (1:9.18.19-1~deb12u1) ...
dpkg: dependency problems prevent configuration of proxmox-kernel-6.2:
 proxmox-kernel-6.2 depends on proxmox-kernel-6.2.16-14-pve; however:
  Package proxmox-kernel-6.2.16-14-pve is not configured yet.

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

dpkg: error processing package proxmox-default-kernel (--configure):
 dependency problems - leaving unconfigured
Setting up bind9-dnsutils (1:9.18.19-1~deb12u1) ...
Setting up dnsutils (1:9.18.19-1~deb12u1) ...
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
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u1) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
pve7to8 returns only 2 warnings:

WARN: unexpected running and installed kernel '5.15.116-1-pve'.
WARN: systems seems to be upgraded but LXCFS is still running with FUSE 2 library, not yet rebooted?

But of course I haven't rebooted yet due to the errors above...


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!