[SOLVED] pve7to8 broken kernel

MoreDakka

Active Member
May 2, 2019
58
11
28
44
Afternoon,

I posted this in the proxmox 8 thread but it's pushed way down now and I can't figure it out.
For some reason the new kernel won't install.

===| # apt install proxmox-ve |===
Code:
# dpkg-reconfigure pve-kernel-6.2.16-4-pve
/usr/sbin/dpkg-reconfigure: pve-kernel-6.2.16-4-pve is broken or not fully installed
root@pve1-cpu1:/boot# apt install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
proxmox-ve is already the newest version (8.0.1).
The following packages were automatically installed and are no longer required:
  dctrl-tools exfat-fuse g++-10 libfmt7 libgs9-common libidn11 libjaeger libnetpbm10 libntfs-3g883 libopts25 libstdc++-10-dev libthrift-0.13.0 libtiff5 libwebp6 libyara4
  pve-headers-5.15.104-1-pve pve-headers-5.15.107-1-pve pve-headers-5.15.107-2-pve pve-kernel-5.15.102-1-pve pve-kernel-5.15.104-1-pve pve-kernel-5.15.107-1-pve
  python-pastedeploy-tpl telnet
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up pve-kernel-6.2.16-4-pve (6.2.16-5) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-4-pve /boot/vmlinuz-6.2.16-4-pve
dkms: running auto installation service for kernel 6.2.16-4-pve.
Sign command: /lib/modules/6.2.16-4-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 -j32 KERNELRELEASE=6.2.16-4-pve all KPVER=6.2.16-4-pve...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.2.16-4-pve (x86_64)
Consult /var/lib/dkms/kernel-mft-dkms/4.17.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.2.16-4-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/pve-kernel-6.2.16-4-pve.postinst line 20.
dpkg: error processing package pve-kernel-6.2.16-4-pve (--configure):
 installed pve-kernel-6.2.16-4-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of pve-kernel-6.2:
 pve-kernel-6.2 depends on pve-kernel-6.2.16-4-pve; however:
  Package pve-kernel-6.2.16-4-pve is not configured yet.

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

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pve-kernel-6.2.16-4-pve
 pve-kernel-6.2
 proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

#

===| cat /var/lib/dkms/kernel-mft-dkms/4.17.0/build/make.log |===
Code:
# cat /var/lib/dkms/kernel-mft-dkms/4.17.0/build/make.log
DKMS make.log for kernel-mft-dkms-4.17.0 for kernel 6.2.16-4-pve (x86_64)
Fri Jul 21 02:04:22 PM MDT 2023
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
make -C /lib/modules/6.2.16-4-pve/build M=/var/lib/dkms/kernel-mft-dkms/4.17.0/build CONFIG_CTF= CONFIG_CC_STACKPROTECTOR_STRONG=  modules
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-6.2.16-4-pve'
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
  CC [M]  /var/lib/dkms/kernel-mft-dkms/4.17.0/build/mst_pci.o
  CC [M]  /var/lib/dkms/kernel-mft-dkms/4.17.0/build/mst_pciconf.o
/var/lib/dkms/kernel-mft-dkms/4.17.0/build/mst_pciconf.c: In function ‘close_dma’:
/var/lib/dkms/kernel-mft-dkms/4.17.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
/var/lib/dkms/kernel-mft-dkms/4.17.0/build/mst_pciconf.c: In function ‘ioctl.isra’:
/var/lib/dkms/kernel-mft-dkms/4.17.0/build/mst_pciconf.c:1269:1: warning: the frame size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 1269 | }
      | ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:260: /var/lib/dkms/kernel-mft-dkms/4.17.0/build/mst_pciconf.o] Error 1
make[1]: *** [Makefile:2026: /var/lib/dkms/kernel-mft-dkms/4.17.0/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.16-4-pve'
make: *** [Makefile:53: all] Error 2

#

Code:
# lvdisplay /dev/pve/root | grep time
  LV Creation host, time proxmox, 2021-09-29 14:08:55 -0600

root@pve1-cpu1:/boot# apt list pve-kernel-* --installed
Listing... Done
pve-kernel-5.11.22-4-pve/now 5.11.22-9 amd64 [installed,local]
pve-kernel-5.11.22-7-pve/now 5.11.22-12 amd64 [installed,local]
pve-kernel-5.11/now 7.0-10 all [installed,local]
pve-kernel-5.13.19-2-pve/now 5.13.19-4 amd64 [installed,local]
pve-kernel-5.13.19-6-pve/now 5.13.19-15 amd64 [installed,local]
pve-kernel-5.13/now 7.1-9 all [installed,local]
pve-kernel-5.15.102-1-pve/now 5.15.102-1 amd64 [installed,local]
pve-kernel-5.15.104-1-pve/now 5.15.104-2 amd64 [installed,local]
pve-kernel-5.15.107-1-pve/now 5.15.107-1 amd64 [installed,local]
pve-kernel-5.15.107-2-pve/now 5.15.107-2 amd64 [installed,local]
pve-kernel-5.15.108-1-pve/now 5.15.108-1 amd64 [installed,local]
pve-kernel-5.15/now 7.4-4 all [installed,local]
pve-kernel-6.2.16-4-pve/stable,now 6.2.16-5 amd64 [installed,automatic]
pve-kernel-6.2/stable,now 8.0.3 all [installed,automatic]

root@pve1-cpu1:/boot# ls -1 /boot/v*
/boot/vmlinuz-5.11.22-4-pve
/boot/vmlinuz-5.11.22-7-pve
/boot/vmlinuz-5.13.19-2-pve
/boot/vmlinuz-5.13.19-6-pve
/boot/vmlinuz-5.15.102-1-pve
/boot/vmlinuz-5.15.104-1-pve
/boot/vmlinuz-5.15.107-1-pve
/boot/vmlinuz-5.15.107-2-pve
/boot/vmlinuz-5.15.108-1-pve
/boot/vmlinuz-6.2.16-4-pve

#

===| proxmox-boot-tool kernel list |===
Code:
# proxmox-boot-tool kernel list
Manually selected kernels:
None.

Automatically selected kernels:
5.15.108-1-pve
6.2.16-4-pve
#

===| apt reinstall pve-kernel-6.2.16.4 |===
Code:
# apt reinstall pve-kernel-6.2.16.4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package pve-kernel-6.2.16.4
E: Couldn't find any package by glob 'pve-kernel-6.2.16.4'

#

Let me know what more info you need. Currently I have it booted manually to the last 5.x kernel from prox7.
CEPH is working no problem.

Thanks!
 
Last edited:
You can fix the packages:

The related files in the /var/lib/dpkg/info/
pve-kernel-6.2.16-4-pve-xxx...
pve-kernel-6.2-xxx...
proxmox-ve-xxx...

just move the same named files to another directory, after you can issue "apt reinstall" command:

Code:
$> apt reinstall proxmox-ve
$> apt reinstall pve-kernel-6.2

This will recreate the files in the /var/lib/dpkg/info/ - but it will bypass the previous errors, and finish it.
 
But he has installed the kernel-mft-dkms package, that is simply incompatible with 6.2

If he removes that package it should be fixed actually.

Or do you think it's simply stuck somehow there in the directiries?
 
Do I need to move these files?
root@pve1-cpu1:/var/lib/dpkg/info# ls -l |grep pve-kernel-6.2.
-rw-r--r-- 1 root root 483862 Jul 21 13:22 pve-kernel-6.2.16-4-pve.list
-rw-r--r-- 1 root root 626356 Jul 14 11:53 pve-kernel-6.2.16-4-pve.md5sums
-rwxr-xr-x 1 root root 590 Jul 14 11:53 pve-kernel-6.2.16-4-pve.postinst
-rwxr-xr-x 1 root root 1217 Jul 14 11:53 pve-kernel-6.2.16-4-pve.postrm
-rwxr-xr-x 1 root root 558 Jul 14 11:53 pve-kernel-6.2.16-4-pve.prerm
-rw-r--r-- 1 root root 147 Jul 12 11:25 pve-kernel-6.2.list
-rw-r--r-- 1 root root 149 Jul 7 01:59 pve-kernel-6.2.md5sums
-rwxr-xr-x 1 root root 323 Jul 7 01:59 pve-kernel-6.2.postinst
-rwxr-xr-x 1 root root 389 Jul 7 01:59 pve-kernel-6.2.postrm

root@pve1-cpu1:/var/lib/dpkg/info# ls -l |grep proxmox-ve
-rw-r--r-- 1 root root 68 Jun 12 03:10 proxmox-ve.conffiles
-rw-r--r-- 1 root root 360 Jul 12 11:26 proxmox-ve.list
-rw-r--r-- 1 root root 275 Jun 12 03:10 proxmox-ve.md5sums
-rwxr-xr-x 1 root root 617 Jun 12 03:10 proxmox-ve.postinst
-rwxr-xr-x 1 root root 700 Jun 12 03:10 proxmox-ve.postrm
-rwxr-xr-x 1 root root 306 Jun 12 03:10 proxmox-ve.preinst
-rwxr-xr-x 1 root root 306 Jun 12 03:10 proxmox-ve.prerm

Once that's moved issue:

apt reinstall proxmox-ve
apt reinstall pve-kernel-6.2
? apt reinstall pve-kernel-6.2.16.4 ?
 
Do I need to move these files?
root@pve1-cpu1:/var/lib/dpkg/info# ls -l |grep pve-kernel-6.2.
-rw-r--r-- 1 root root 483862 Jul 21 13:22 pve-kernel-6.2.16-4-pve.list
-rw-r--r-- 1 root root 626356 Jul 14 11:53 pve-kernel-6.2.16-4-pve.md5sums
-rwxr-xr-x 1 root root 590 Jul 14 11:53 pve-kernel-6.2.16-4-pve.postinst
-rwxr-xr-x 1 root root 1217 Jul 14 11:53 pve-kernel-6.2.16-4-pve.postrm
-rwxr-xr-x 1 root root 558 Jul 14 11:53 pve-kernel-6.2.16-4-pve.prerm
-rw-r--r-- 1 root root 147 Jul 12 11:25 pve-kernel-6.2.list
-rw-r--r-- 1 root root 149 Jul 7 01:59 pve-kernel-6.2.md5sums
-rwxr-xr-x 1 root root 323 Jul 7 01:59 pve-kernel-6.2.postinst
-rwxr-xr-x 1 root root 389 Jul 7 01:59 pve-kernel-6.2.postrm

root@pve1-cpu1:/var/lib/dpkg/info# ls -l |grep proxmox-ve
-rw-r--r-- 1 root root 68 Jun 12 03:10 proxmox-ve.conffiles
-rw-r--r-- 1 root root 360 Jul 12 11:26 proxmox-ve.list
-rw-r--r-- 1 root root 275 Jun 12 03:10 proxmox-ve.md5sums
-rwxr-xr-x 1 root root 617 Jun 12 03:10 proxmox-ve.postinst
-rwxr-xr-x 1 root root 700 Jun 12 03:10 proxmox-ve.postrm
-rwxr-xr-x 1 root root 306 Jun 12 03:10 proxmox-ve.preinst
-rwxr-xr-x 1 root root 306 Jun 12 03:10 proxmox-ve.prerm

Once that's moved issue:

apt reinstall proxmox-ve
apt reinstall pve-kernel-6.2
? apt reinstall pve-kernel-6.2.16.4 ?
yes,
These files will be recreated from the apt.
 
Last edited:
Hi,
please note that your issue here is that the kernel-mft-dkms dkms package is not compatible with this version of the Linux Kernel. You should simply uninstall it (as it is not needed) by running apt purge kernel-mft-dkms. Then reinstall the pve-kernel-6.2 package.
 
Glad it worked, please mark the thread as solved!
 

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!