Update PVE 8.1 to 8.2 unable to upgrade

Hi yesterday my system makes an update from Version 8.1 to 8.2

But I am unable to finish the upgrade: I get the following error:

apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 proxmox-kernel-6.5.13-5-pve (6.5.13-5) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.13-5-pve /boot/vmlinuz-6.5.
13-5-pve
dkms: running auto installation service for kernel 6.5.13-5-pve.
dkms: autoinstall for kernel: 6.5.13-5-pve.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.5.13-5-pve /boot/v
mlinuz-6.5.13-5-pve
update-initramfs: Generating /boot/initrd.img-6.5.13-5-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount names
pace..
Copying and configuring kernels on /dev/disk/by-uuid/FFD8-F3E1
Copying kernel and creating boot-entry for 6.5.11-8-pve
Copying kernel and creating boot-entry for 6.5.13-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/FFDA-FB8F
Copying kernel and creating boot-entry for 6.5.11-8-pve
Copying kernel and creating boot-entry for 6.5.13-5-pve
run-parts: executing /etc/kernel/postinst.d/kdump-tools 6.5.13-5-pve /boot/vmlin
uz-6.5.13-5-pve
kdump-tools: Generating /var/lib/kdump/initrd.img-6.5.13-5-pve
mkinitramfs: failed to determine device for /
mkinitramfs: workaround is MODULES=most, check:
grep -r MODULES /var/lib/kdump/initramfs-tools

Error please report bug on initramfs-tools
Include the output of 'mount' and 'cat /proc/mounts'
update-initramfs: failed for /var/lib/kdump/initrd.img-6.5.13-5-pve with 1.
run-parts: /etc/kernel/postinst.d/kdump-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.
5.13-5-pve.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-5-pve (--configure):
installed proxmox-kernel-6.5.13-5-pve package post-installation script subproce
ss returned error exit status 2
Errors were encountered while processing:
proxmox-kernel-6.5.13-5-pve
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any solution to finish my upgrade? I am using PVE with ZFS.

Best regards
Benjamin Kramer
 
apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 proxmox-kernel-6.5.13-5-pve (6.5.13-5) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.13-5-pve /boot/vmlinuz-6.5.13-5-pve
dkms: running auto installation service for kernel 6.5.13-5-pve.
dkms: autoinstall for kernel: 6.5.13-5-pve.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.5.13-5-pve /boot/vmlinuz-6.5.13-5-pve
update-initramfs: Generating /boot/initrd.img-6.5.13-5-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/FFD8-F3E1
Copying kernel and creating boot-entry for 6.5.11-8-pve
Copying kernel and creating boot-entry for 6.5.13-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/FFDA-FB8F
Copying kernel and creating boot-entry for 6.5.11-8-pve
Copying kernel and creating boot-entry for 6.5.13-5-pve
run-parts: executing /etc/kernel/postinst.d/kdump-tools 6.5.13-5-pve /boot/vmlinuz-6.5.13-5-pve
kdump-tools: Generating /var/lib/kdump/initrd.img-6.5.13-5-pve
mkinitramfs: failed to determine device for /
mkinitramfs: workaround is MODULES=most, check:
grep -r MODULES /var/lib/kdump/initramfs-tools

Error please report bug on initramfs-tools
Include the output of 'mount' and 'cat /proc/mounts'
update-initramfs: failed for /var/lib/kdump/initrd.img-6.5.13-5-pve with 1.
run-parts: /etc/kernel/postinst.d/kdump-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.13-5-pve.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-5-pve (--configure):
installed proxmox-kernel-6.5.13-5-pve package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
proxmox-kernel-6.5.13-5-pve
E: Sub-process /usr/bin/dpkg returned an error code (1)


Ändert nichts am Ergebnis
 
Can you post the output of apt update?
 
Ich habe ein Workaround erhalten vom Proxmox Enterprise Support:


Backups von wichtigen Daten/VMs zu machen.
Könntest du dann als Workaround folgendes versuchen:

Die Datei /etc/kernel/postinst.d/kdump-tools sichern:

cp /etc/kernel/postinst.d/kdump-tools /root


Die Datei /etc/kernel/postinst.d/kdump-tools editieren (z.B. mit nano oder vim.tiny) und folgende Sektion suchen (sollte so um Zeile 43 beginnen):

if test "${MODULES-most}" = most; then
# Switch from "most" to "dep" to reduce the size of the initramfs.
# "netboot" and "list" are expected to be already small enough.
KDUMP_MODULES=dep
fi


Diese Sektion komplett auskommentieren, sodass sie so aussieht:

#if test "${MODULES-most}" = most; then
# # Switch from "most" to "dep" to reduce the size of the initramfs.
# # "netboot" and "list" are expected to be already small enough.
# KDUMP_MODULES=dep
#fi

Die Datei abspeichern.

Nun nochmal versuchen, kdump-tools zu purgen:

apt purge kdump-tools

Das sollte nun hoffentlich sauber durchlaufen und initrd/initramfs korrekt neu generieren. Die letzte Zeile sollte sein:

Purging configuration files for kdump-tools (1:1.8.1) ...

Und dpkg -l | grep kdump sollte keine Ausgabe mehr liefern.

apt dist-upgrade

Wenn ihr Proxmox auf für die Arbeit einsetzt (System kritisch), kann ich euch nur raten Enterprise Support zu kaufen.


Ich hoffe euch damit geholfen zu haben, falls bei jemanden, der selbe Fehler auftritt.
 

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!