Upgrade Error PVE-Kernel 5.0.21-1-pve (with kdump)

Semmo

Well-Known Member
May 27, 2019
35
4
48
38
Hi there,

I have trouble with the upgrade to the newest kernel and have no clue what I should do :( Can anyone help? I'm afraid to reboot atm


Code:
root@proxmox:/home/user# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.19.0-5-amd64 linux-headers-4.19.0-5-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 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 pve-kernel-5.0.21-1-pve (5.0.21-2) ...
Examining /etc/kernel/postinst.d.#################...................................................................................................................................]
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
run-parts: executing /etc/kernel/postinst.d/dkms 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
update-initramfs: Generating /boot/initrd.img-5.0.21-1-pve
cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/pve-1
cryptsetup: WARNING: Couldn't determine root device
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
    nor crypto modules. If that's on purpose, you may want to uninstall the
    'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
    integration and avoid this warning.
run-parts: executing /etc/kernel/postinst.d/kdump-tools 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
kdump-tools: Generating /var/lib/kdump/initrd.img-5.0.21-1-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  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/pve-kernel-5.0.21-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.0.21-1-pve (--configure):
 installed pve-kernel-5.0.21-1-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of pve-kernel-5.0:
 pve-kernel-5.0 depends on pve-kernel-5.0.21-1-pve; however:
  Package pve-kernel-5.0.21-1-pve is not configured yet.

dpkg: error processing package pve-kernel-5.0 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pve-kernel-5.0.21-1-pve
 pve-kernel-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
I think i got it. I did following steps:

1. Remove cryptsetup-initramfs > no change
2. Set /var/lib/kdump/initramfs-tools/initramfs.conf > no change
3. Uninstalled kdump (purge) + changed grub config and updated grub with update-grub + Removed /etc/kernel/postinst.d/kdump-tools

Now it installed:

Code:
root@proxmox:/home/sebastian# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cryptsetup-bin cryptsetup-run linux-headers-4.19.0-5-amd64 linux-headers-4.19.0-5-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 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 pve-kernel-5.0.21-1-pve (5.0.21-2) ...
Examining /etc/kernel/postinst.d.#################...................................................................................................................................]
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
run-parts: executing /etc/kernel/postinst.d/dkms 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
update-initramfs: Generating /boot/initrd.img-5.0.21-1-pve
run-parts: executing /etc/kernel/postinst.d/pve-auto-removal 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
run-parts: executing /etc/kernel/postinst.d/zz-pve-efiboot 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
Re-executing '/etc/kernel/postinst.d/zz-pve-efiboot' in new private mount namespace..
No /etc/kernel/pve-efiboot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.0.21-1-pve /boot/vmlinuz-5.0.21-1-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.0.21-1-pve
Found initrd image: /boot/initrd.img-5.0.21-1-pve
Found linux image: /boot/vmlinuz-5.0.18-1-pve
Found initrd image: /boot/initrd.img-5.0.18-1-pve
Found linux image: /boot/vmlinuz-5.0.15-1-pve
Found initrd image: /boot/initrd.img-5.0.15-1-pve
Found linux image: /boot/vmlinuz-4.15.18-18-pve
Found initrd image: /boot/initrd.img-4.15.18-18-pve
Found linux image: /boot/vmlinuz-4.15.18-15-pve
Found initrd image: /boot/initrd.img-4.15.18-15-pve
Found linux image: /boot/vmlinuz-4.15.18-12-pve
Found initrd image: /boot/initrd.img-4.15.18-12-pve
Found linux image: /boot/vmlinuz-4.9.168
Found initrd image: /boot/initrd.img-4.9.168
Found memtest86+ image: /ROOT/pve-1@/boot/memtest86+.bin
Found memtest86+ multiboot image: /ROOT/pve-1@/boot/memtest86+_multiboot.bin
done
Setting up pve-kernel-5.0 (6.0-7) ...##############################################..................................................................................................]
 

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!