Hi,
Proxmox4 (installed on remote server on top of Debian Jessie) was serving well till upgrade in virtual machines started popping out errors making the lxc containers failing to boot. No zfs and ceph and hosting only lxc containers.
So I decided to upgrade first to Proxmox5 (https://pve.proxmox.com/wiki/Upgrad...he_basic_system_to_Debian_Stretch_and_PVE_5.0) and further upgrade to PM6 and then to PM7 as I didn't see any other way to upgrade from PM5 (Debian Stretch 9) to PM7 (Debian Bullseye 11) directly. Please correct me if I missed something.
The first error encountered is:
Further investigation led to:
Methought it could be because of libnvpair issue as no zfs (only lvm), so tried to remove, but got:
Tried with 'apt-get -fy install' as well as `apt remove pve-cluster pve-ha-manager pve-container pve-manager libpve-storage-perl qemu-server libpve-guest-common-perl pve-firewall proxmox-ve` followed by `apt install proxmox-ve`, but without success. Network and hosts configurations are alright and working.
Already rebooted to the new kernel by manually updating the new kernel in the grub.cfg:
Any inputs to get out of this shall be appreciated.
Cheers,
/z
Proxmox4 (installed on remote server on top of Debian Jessie) was serving well till upgrade in virtual machines started popping out errors making the lxc containers failing to boot. No zfs and ceph and hosting only lxc containers.
So I decided to upgrade first to Proxmox5 (https://pve.proxmox.com/wiki/Upgrad...he_basic_system_to_Debian_Stretch_and_PVE_5.0) and further upgrade to PM6 and then to PM7 as I didn't see any other way to upgrade from PM5 (Debian Stretch 9) to PM7 (Debian Bullseye 11) directly. Please correct me if I missed something.
The first error encountered is:
Code:
# apt dist-upgrade -y
...
Errors were encountered while processing:
pve-kernel-4.15.18-30-pve
linux-image-4.9.0-16-amd64
linux-image-amd64
fail2ban
pve-kernel-4.15
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)
[Exit 100]
...
Further investigation led to:
Code:
# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-image-3.16.0-11-amd64
The following packages have been kept back:
grub-common grub-pc grub-pc-bin grub2-common libnvpair1linux libzfs2linux
libzpool2linux
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
4 not fully installed or removed.
After this operation, 168 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 45537 files and directories currently installed.)
Removing linux-image-3.16.0-11-amd64 (3.16.84-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-3.16.0-11-amd64
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-probe: symbol lookup error: /lib/libnvpair.so.1: undefined symbol: xdr_control
/usr/sbin/grub-probe: symbol lookup error: /lib/libnvpair.so.1: undefined symbol: xdr_control
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-30-pve
/usr/bin/grub-mkrelpath: symbol lookup error: /lib/libnvpair.so.1: undefined symbol: xdr_control
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.16.0-11-amd64.postrm line 206.
dpkg: error processing package linux-image-3.16.0-11-amd64 (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-3.16.0-11-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
[Exit 100]
Methought it could be because of libnvpair issue as no zfs (only lvm), so tried to remove, but got:
Code:
# apt remove libnvpair1linux libzfs2linux libzpool2linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
grub-common : Depends: libnvpair1 but it is not going to be installed
Depends: libzfs2 but it is not going to be installed
grub-pc-bin : Depends: libnvpair1 but it is not going to be installed
Depends: libzfs2 but it is not going to be installed
grub2-common : Depends: libnvpair1 but it is not going to be installed
Depends: libzfs2 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
[Exit 100]
Tried with 'apt-get -fy install' as well as `apt remove pve-cluster pve-ha-manager pve-container pve-manager libpve-storage-perl qemu-server libpve-guest-common-perl pve-firewall proxmox-ve` followed by `apt install proxmox-ve`, but without success. Network and hosts configurations are alright and working.
Code:
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
Already rebooted to the new kernel by manually updating the new kernel in the grub.cfg:
Code:
# uname -a
Linux server2 4.15.18-30-pve #1 SMP PVE 4.15.18-58 (Fri, 12 Jun 2020 13:53:01 +0200) x86_64 GNU/Linux
Any inputs to get out of this shall be appreciated.
Cheers,
/z
Last edited: