Update from 7 to 8 went wrong. Kernel mess.

wazoski

New Member
Jun 23, 2023
4
1
1
I somehow screwed the update. Followed official instructions, update from 7 to 8 started, took quite some time, but now I'm stuck with errors, every time I try anything with apt ( apt update works but apt dist-upgrade, apt autoremove, apt install... gives error ) :


root@Proxmox:/# apt -f install Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: dkms pve-headers-5.13 pve-headers-5.13.19-2-pve pve-headers-5.13.19-6-pve pve-headers-5.15 pve-headers-5.15.108-1-pve pve-kernel-5.13 pve-kernel-5.13.19-6-pve sudo wireguard-dkms wireguard-tools 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. Setting up pve-kernel-6.2.16-3-pve (6.2.16-3) ... Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-3-pve /boot/vmlinuz-6.2.16-3-pve dkms: running auto installation service for kernel 6.2.16-3-pve. Sign command: /lib/modules/6.2.16-3-pve/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Error! The /var/lib/dkms/wireguard/1.0.20210219/6.2.16-3-pve/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config. This indicates that it should not be built. Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. dkms: autoinstall for kernel: 6.2.16-3-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-3-pve.postinst line 20. dpkg: error processing package pve-kernel-6.2.16-3-pve (--configure): installed pve-kernel-6.2.16-3-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-3-pve; however: Package pve-kernel-6.2.16-3-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-3-pve pve-kernel-6.2 proxmox-ve E: Sub-process /usr/bin/dpkg returned an error code (1)

When trying to reboot the system, it doesn't boot to Proxmox untill i choose previous kernel. It boots then, VMs are working, but can't proceed with any upgrade.
It's a single node. No CEPH.
Please, bare in mind I'm not an advanced user. If any other information is needed, please tell me. Any help is apreciated. Thank you.
 
Last edited:
Seems like dkms for your wireguard is not compatible, might need to disable to get it working on 6.2 ?
 
Seems like dkms for your wireguard is not compatible, might need to disable to get it working on 6.2 ?
I was just going to edit my post, because i found somehow similar problem here and tried solution mentioned there:

dkms status gives:
wireguard/1.0.20210219, 5.4.124-1-pve, x86_64: installed

dkms remove wireguard/1.0.20210219 gives:

Module wireguard 1.0.20210219 is not installed for kernel 5.15.108-1-pve (x86_64). Skipping...
Module wireguard 1.0.20210219 is not built for kernel 5.15.108-1-pve (x86_64). Skipping...

I don't realy need Wireguard here, how would I go about your sugestion?
 
wireguard comes with the kernel anyway, there is no need to install wireguard-dkms..
 
  • Like
Reactions: wazoski and jsterr
I was just going to edit my post, because i found somehow similar problem here and tried solution mentioned there:

dkms status gives:
wireguard/1.0.20210219, 5.4.124-1-pve, x86_64: installed

dkms remove wireguard/1.0.20210219 gives:

Module wireguard 1.0.20210219 is not installed for kernel 5.15.108-1-pve (x86_64). Skipping...
Module wireguard 1.0.20210219 is not built for kernel 5.15.108-1-pve (x86_64). Skipping...

I don't realy need Wireguard here, how would I go about your sugestion?

I would go for: dkms remove wireguard/1.0.20210219 --all and try again?

Heres also a thread about this: https://forum.proxmox.com/threads/proxmox-ve-8-0-kernel-6-2-16-3-wireguard-dkms-installed.129342/
 
Last edited:
wireguard comes with the kernel anyway, there is no need to install wireguard-dkms..
I never installed this, as far as I remember. Everything was working fine untill last update. And it seems I can't remove it now to solve it's problem?
 

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!