~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
lxc-pve pve-kernel-helper
The following NEW packages will be installed:
lxc-pve pve-kernel-helper
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
8 not fully installed or removed.
Need to get 0 B/3548 kB of archives.
After this operation, 30.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 45479 files and directories currently installed.)
Preparing to unpack .../pve-kernel-helper_7.2-12_all.deb ...
Adding 'diversion of /usr/sbin/grub-install to /usr/sbin/grub-install.real by pve-kernel-helper'
dpkg-divert: error: rename involves overwriting '/usr/sbin/grub-install.real' with
different file '/usr/sbin/grub-install', not allowed
dpkg: error processing archive /var/cache/apt/archives/pve-kernel-helper_7.2-12_all.deb (--unpack):
new pve-kernel-helper package pre-installation script subprocess returned error exit status 2
No diversion 'diversion of /usr/sbin/grub-install to /usr/sbin/grub-install.real by pve-kernel-helper', none removed.
Preparing to unpack .../lxc-pve_5.0.0-3_amd64.deb ...
Adding 'diversion of /usr/share/apparmor-features/features to /usr/share/apparmor-features/features.stock by lxc-pve'
dpkg-divert: error: rename involves overwriting '/usr/share/apparmor-features/features.stock' with
different file '/usr/share/apparmor-features/features', not allowed
dpkg: error processing archive /var/cache/apt/archives/lxc-pve_5.0.0-3_amd64.deb (--unpack):
new lxc-pve package pre-installation script subprocess returned error exit status 2
No diversion 'diversion of /usr/share/apparmor-features/features to /usr/share/apparmor-features/features.stock by lxc-pve', none removed.
Errors were encountered while processing:
/var/cache/apt/archives/pve-kernel-helper_7.2-12_all.deb
/var/cache/apt/archives/lxc-pve_5.0.0-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
----------------------------------
~# dpkg --configure -a
dpkg: dependency problems prevent configuration of pve-container:
pve-container depends on lxc-pve; however:
Package lxc-pve is not installed.
dpkg: error processing package pve-container (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-manager:
pve-manager depends on pve-container (>= 4.0-9); however:
Package pve-container is not configured yet.
dpkg: error processing package pve-manager (--configure):
dependency problems - leaving unconfigured
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.15.53-1-pve /boot/vmlinuz-5.15.53-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.53-1-pve /boot/vmlinuz-5.15.53-1-pve
update-initramfs: Generating /boot/initrd.img-5.15.53-1-pve
pigz: abort: write error on <stdout> (No space left on device)
E: mkinitramfs failure pigz 28
update-initramfs: failed for /boot/initrd.img-5.15.53-1-pve with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.15.53-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.15.53-1-pve (--configure):
installed pve-kernel-5.15.53-1-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on pve-kernel-helper; however:
Package pve-kernel-helper is not installed.
proxmox-ve depends on pve-manager; however:
Package pve-manager is not configured yet.
dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-kernel-5.15:
pve-kernel-5.15 depends on pve-kernel-5.15.53-1-pve; however:
Package pve-kernel-5.15.53-1-pve is not configured yet.
dpkg: error processing package pve-kernel-5.15 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-ha-manager:
pve-ha-manager depends on pve-container; however:
Package pve-container is not configured yet.
dpkg: error processing package pve-ha-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qemu-server:
qemu-server depends on pve-ha-manager (>= 3.0-9); however:
Package pve-ha-manager is not configured yet.
dpkg: error processing package qemu-server (--configure):
dependency problems - leaving unconfigured
ldconfig: file /lib/x86_64-linux-gnu/libsoup-2.4.so.1.8.0 is truncated
ldconfig: /lib/x86_64-linux-gnu/libipset.so.11.1.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/x86_64-linux-gnu/libipset.so.11 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/x86_64-linux-gnu/libmlx5.so.1.8.22.1 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/x86_64-linux-gnu/libnorm.so.1 is not a symbolic link
pigz: abort: write error on <stdout> (No space left on device)
E: mkinitramfs failure pigz 28
update-initramfs: failed for /boot/initrd.img-5.4.157-1-pve with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
pve-container
pve-manager
pve-kernel-5.15.53-1-pve
proxmox-ve
pve-kernel-5.15
pve-ha-manager
qemu-server
initramfs-tools
---------------------------
~# pveversion -v
proxmox-ve: not correctly installed (running kernel: 5.4.157-1-pve)
pve-manager: not correctly installed (running version: 7.2-7/d0dd0e85)
ceph-fuse: 14.2.21-1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve1
libproxmox-acme-perl: 1.4.2
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.2-4
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.2-2
libpve-guest-common-perl: 4.1-2
libpve-http-server-perl: 4.1-3
libpve-storage-perl: 7.2-8
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: not correctly installed
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.2.5-1
proxmox-backup-file-restore: 2.2.5-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.5.1
pve-cluster: 7.2-2
pve-container: not correctly installed
pve-docs: 7.2-2
pve-edk2-firmware: 3.20220526-1
pve-firewall: 4.2-6
pve-firmware: 3.5-1
pve-ha-manager: not correctly installed
pve-i18n: 2.7-2
pve-qemu-kvm: 7.0.0-3
pve-xtermjs: 4.16.0-1
qemu-server: not correctly installed
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.7.1~bpo11+1
vncterm: 1.7-1
zfsutils-linux: 2.1.5-pve1
----------------------------------
History: I was running raid6 and got corrupted data (maybe due to powerloss during syncing), most of data in lost+found and Proxmox VE broken. Upgraded Debian 10 -> 11 and reinstalled Proxmox VE again with the errors.
Tried tricks in this threat but didnt help: https://forum.proxmox.com/threads/pve-kernel-helper-wont-install.90029/
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
lxc-pve pve-kernel-helper
The following NEW packages will be installed:
lxc-pve pve-kernel-helper
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
8 not fully installed or removed.
Need to get 0 B/3548 kB of archives.
After this operation, 30.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 45479 files and directories currently installed.)
Preparing to unpack .../pve-kernel-helper_7.2-12_all.deb ...
Adding 'diversion of /usr/sbin/grub-install to /usr/sbin/grub-install.real by pve-kernel-helper'
dpkg-divert: error: rename involves overwriting '/usr/sbin/grub-install.real' with
different file '/usr/sbin/grub-install', not allowed
dpkg: error processing archive /var/cache/apt/archives/pve-kernel-helper_7.2-12_all.deb (--unpack):
new pve-kernel-helper package pre-installation script subprocess returned error exit status 2
No diversion 'diversion of /usr/sbin/grub-install to /usr/sbin/grub-install.real by pve-kernel-helper', none removed.
Preparing to unpack .../lxc-pve_5.0.0-3_amd64.deb ...
Adding 'diversion of /usr/share/apparmor-features/features to /usr/share/apparmor-features/features.stock by lxc-pve'
dpkg-divert: error: rename involves overwriting '/usr/share/apparmor-features/features.stock' with
different file '/usr/share/apparmor-features/features', not allowed
dpkg: error processing archive /var/cache/apt/archives/lxc-pve_5.0.0-3_amd64.deb (--unpack):
new lxc-pve package pre-installation script subprocess returned error exit status 2
No diversion 'diversion of /usr/share/apparmor-features/features to /usr/share/apparmor-features/features.stock by lxc-pve', none removed.
Errors were encountered while processing:
/var/cache/apt/archives/pve-kernel-helper_7.2-12_all.deb
/var/cache/apt/archives/lxc-pve_5.0.0-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
----------------------------------
~# dpkg --configure -a
dpkg: dependency problems prevent configuration of pve-container:
pve-container depends on lxc-pve; however:
Package lxc-pve is not installed.
dpkg: error processing package pve-container (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-manager:
pve-manager depends on pve-container (>= 4.0-9); however:
Package pve-container is not configured yet.
dpkg: error processing package pve-manager (--configure):
dependency problems - leaving unconfigured
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.15.53-1-pve /boot/vmlinuz-5.15.53-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.53-1-pve /boot/vmlinuz-5.15.53-1-pve
update-initramfs: Generating /boot/initrd.img-5.15.53-1-pve
pigz: abort: write error on <stdout> (No space left on device)
E: mkinitramfs failure pigz 28
update-initramfs: failed for /boot/initrd.img-5.15.53-1-pve with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.15.53-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.15.53-1-pve (--configure):
installed pve-kernel-5.15.53-1-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on pve-kernel-helper; however:
Package pve-kernel-helper is not installed.
proxmox-ve depends on pve-manager; however:
Package pve-manager is not configured yet.
dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-kernel-5.15:
pve-kernel-5.15 depends on pve-kernel-5.15.53-1-pve; however:
Package pve-kernel-5.15.53-1-pve is not configured yet.
dpkg: error processing package pve-kernel-5.15 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-ha-manager:
pve-ha-manager depends on pve-container; however:
Package pve-container is not configured yet.
dpkg: error processing package pve-ha-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qemu-server:
qemu-server depends on pve-ha-manager (>= 3.0-9); however:
Package pve-ha-manager is not configured yet.
dpkg: error processing package qemu-server (--configure):
dependency problems - leaving unconfigured
ldconfig: file /lib/x86_64-linux-gnu/libsoup-2.4.so.1.8.0 is truncated
ldconfig: /lib/x86_64-linux-gnu/libipset.so.11.1.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/x86_64-linux-gnu/libipset.so.11 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/x86_64-linux-gnu/libmlx5.so.1.8.22.1 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/x86_64-linux-gnu/libnorm.so.1 is not a symbolic link
pigz: abort: write error on <stdout> (No space left on device)
E: mkinitramfs failure pigz 28
update-initramfs: failed for /boot/initrd.img-5.4.157-1-pve with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
pve-container
pve-manager
pve-kernel-5.15.53-1-pve
proxmox-ve
pve-kernel-5.15
pve-ha-manager
qemu-server
initramfs-tools
---------------------------
~# pveversion -v
proxmox-ve: not correctly installed (running kernel: 5.4.157-1-pve)
pve-manager: not correctly installed (running version: 7.2-7/d0dd0e85)
ceph-fuse: 14.2.21-1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve1
libproxmox-acme-perl: 1.4.2
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.2-4
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.2-2
libpve-guest-common-perl: 4.1-2
libpve-http-server-perl: 4.1-3
libpve-storage-perl: 7.2-8
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: not correctly installed
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.2.5-1
proxmox-backup-file-restore: 2.2.5-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.5.1
pve-cluster: 7.2-2
pve-container: not correctly installed
pve-docs: 7.2-2
pve-edk2-firmware: 3.20220526-1
pve-firewall: 4.2-6
pve-firmware: 3.5-1
pve-ha-manager: not correctly installed
pve-i18n: 2.7-2
pve-qemu-kvm: 7.0.0-3
pve-xtermjs: 4.16.0-1
qemu-server: not correctly installed
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.7.1~bpo11+1
vncterm: 1.7-1
zfsutils-linux: 2.1.5-pve1
----------------------------------
History: I was running raid6 and got corrupted data (maybe due to powerloss during syncing), most of data in lost+found and Proxmox VE broken. Upgraded Debian 10 -> 11 and reinstalled Proxmox VE again with the errors.
Tried tricks in this threat but didnt help: https://forum.proxmox.com/threads/pve-kernel-helper-wont-install.90029/