PVE 7.4-18 to 8 fails - unmet dependencies

Graves2198

New Member
Jun 17, 2024
2
0
1
Hi!

I just did a clean reinstall to PVE 7.4.18 to recover from a OS disk failure (using config file backup from PVE 7.4.x).

Following the PVE 7 to 8 upgrade guides, the dist-upgrade fails with the following error:

The following packages have unmet dependencies:
libpve-common-perl : Breaks: qemu-server (< 8.0.1) but 7.4-6 is to be installed
pve-qemu-kvm : Breaks: qemu-server (<= 8.0.6) but 7.4-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I dont have ceph, clustering or anything out of the ordinary. No packages from other repos.
pveversion: pve-manager/7.4-18/b1f94095 (running kernel: 5.15.158-1-pve)


Pve7to8:
= SUMMARY =
TOTAL: 35
PASSED: 30
SKIPPED: 5
WARNINGS: 0
FAILURES: 0

I only have a single apt source file /etc/apt/sources.list with content:

deb http://ftp.no.debian.org/debian bookworm main contrib
deb http://ftp.no.debian.org/debian bookworm-updates main contrib
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
# security updates
deb http://security.debian.org bookworm-security main contrib

What to do?
 
Same here while updating an existing working PVE system to 8.2. PBS upgrade went smoothly (an hour before) but trying to upgrade PVE to 8.2 leads to dependency issues.

Bash:
The following packages have been kept back:
  libpve-access-control libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl libpve-guest-common-perl libpve-http-server-perl
  libpve-storage-perl libsemanage-common nfs-common open-iscsi passwd proxmox-ve pve-container pve-ha-manager pve-manager pve-qemu-kvm qemu-server uidmap

I found python3.9 to be locally installed but the problem persist after removing that python3.9 and python3.9-minimal. I was however able to install some packages after doing that. Not sure if this was a good idea but I can always rollback a snapshot made before the upgrade. These packages are currently marked local:

Bash:
# apt list --installed | grep local]

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libbpf0/now 1:0.3-2 amd64 [installed,local]
libcbor0/now 0.5.0+dfsg-2 amd64 [installed,local]
libdns-export1110/now 1:9.11.19+dfsg-2.1 amd64 [installed,local]
libffi7/now 3.3-6 amd64 [installed,local]
libflac8/now 1.3.3-2+deb11u2 amd64 [installed,local]
libicu67/now 67.1-7 amd64 [installed,local]
libisc-export1105/now 1:9.11.19+dfsg-2.1 amd64 [installed,local]
libldap-2.4-2/now 2.4.57+dfsg-3+deb11u1 amd64 [installed,local]
liblttng-ust-ctl4/now 2.12.1-1 amd64 [installed,local]
liblttng-ust0/now 2.12.1-1 amd64 [installed,local]
libmpdec3/now 2.5.1-1 amd64 [installed,local]
libnfsidmap2/now 0.25-6 amd64 [installed,local]
libperl5.32/now 5.32.1-4+deb11u3 amd64 [installed,local]
libprocps8/now 2:3.3.17-5 amd64 [installed,local]
libprotobuf23/now 3.12.4-1+deb11u1 amd64 [installed,local]
libsemanage1/now 3.1-1+b2 amd64 [installed,local]
libsepol1/now 3.1-1 amd64 [installed,local]
libssl1.1/now 1.1.1w-0+deb11u1 amd64 [installed,local]
liburcu6/now 0.12.2-1 amd64 [installed,local]
liburing1/now 0.7-3 amd64 [installed,local]
perl-modules-5.32/now 5.32.1-4+deb11u3 all [installed,local]
pve-kernel-5.15.149-1-pve/now 5.15.149-1 amd64 [installed,local]
pve-kernel-5.15.152-1-pve/now 5.15.152-1 amd64 [installed,local]
pve-kernel-5.15.74-1-pve/now 5.15.74-1 amd64 [installed,local]
pve-kernel-5.15/now 7.4-13 all [installed,local]
 
Last edited:
For me these commands did the job:

Bash:
wget http://download.proxmox.com/debian/pve/dists/bookworm/pvetest/binary-amd64/proxmox-backup-client_3.2.5-1_amd64.deb
dpkg -i proxmox-backup-client_3.2.5-1_amd64.deb
apt -o Debug::pkgProblemResolver=yes dist-upgrade

Credits to @acasto
 
Here the same but not with pbs but PVE so how to solve this issue for proxmox upgrade from 7 to 8
 
For me libzstd1 was not on the right version (I had just run apt update && apt upgrade with a clean reboot prior and was running 7.4-18. I had to run the following to get proxmox-backup-client installed and then was able to continue with the upgrade to 8.x

Code:
wget http://download.proxmox.com/debian/pve/dists/bookworm/pvetest/binary-amd64/proxmox-backup-client_3.2.5-1_amd64.deb
apt install ./proxmox-backup-client_3.2.5-1_amd64.deb
apt --fix-broken install
apt dist-upgrade
 
Hi,

please post the output of the following
Code:
pveversion -v
apt update
grep '' /etc/apt/sources.list /etc/apt/sources.list.d/*

And for reference: https://pve.proxmox.com/wiki/Upgrade_from_7_to_8
Thanks Fiona. Utilising that article for previous upgrades, this is the only one with any issues

Code:
root@pbr-pve-kl1:~# pveversion -v
apt update
grep '' /etc/apt/sources.list /etc/apt/sources.list.d/*
proxmox-ve: 7.4-1 (running kernel: 5.15.158-1-pve)
pve-manager: 7.4-18 (running version: 7.4-18/b1f94095)
pve-kernel-5.15: 7.4-14
pve-kernel-5.13: 7.1-9
pve-kernel-5.15.158-1-pve: 5.15.158-1
pve-kernel-5.15.152-1-pve: 5.15.152-1
pve-kernel-5.15.149-1-pve: 5.15.149-1
pve-kernel-5.15.143-1-pve: 5.15.143-1
pve-kernel-5.15.126-1-pve: 5.15.126-1
pve-kernel-5.15.116-1-pve: 5.15.116-1
pve-kernel-5.15.107-1-pve: 5.15.107-1
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.13.19-2-pve: 5.13.19-4
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.17-1-pve: 4.15.17-9
ceph-fuse: 16.2.15-pve1
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx4
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4.3
libpve-apiclient-perl: 3.3.2
libpve-common-perl: 7.4-2
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.7
libpve-storage-perl: 7.4-3
libqb0: 1.0.5-1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.2.5-1
proxmox-backup-file-restore: 3.2.3-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.6
proxmox-widget-toolkit: 4.2.3
pve-cluster: 7.3-3
pve-container: 4.4-7
pve-docs: 8.2.2
pve-edk2-firmware: 4.2023.08-4
pve-firewall: 5.0.7
pve-firmware: 3.12-1
pve-ha-manager: 3.6.1
pve-i18n: 3.2.2
pve-qemu-kvm: 7.2.10-1
pve-xtermjs: 5.3.0-3
qemu-server: 7.4-6
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.4-pve1
Hit:1 http://mirror.linux.org.au/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease                   
Hit:3 http://download.proxmox.com/debian/pve bookworm InRelease                 
Reading package lists... Done         
Building dependency tree... Done
Reading state information... Done
81 packages can be upgraded. Run 'apt list --upgradable' to see them.
/etc/apt/sources.list:deb http://mirror.linux.org.au/debian bookworm main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:# security updates
/etc/apt/sources.list:deb http://security.debian.org bookworm-security main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
/etc/apt/sources.list:
/etc/apt/sources.list.d/pve-enterprise.list:# deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
/etc/apt/sources.list.d/pve-enterprise.list:
root@pbr-pve-kl1:~#
 
Thanks Fiona. Utilising that article for previous upgrades, this is the only one with any issues

Code:
root@pbr-pve-kl1:~# pveversion -v
apt update
grep '' /etc/apt/sources.list /etc/apt/sources.list.d/*
proxmox-ve: 7.4-1 (running kernel: 5.15.158-1-pve)
pve-manager: 7.4-18 (running version: 7.4-18/b1f94095)
pve-kernel-5.15: 7.4-14
pve-kernel-5.13: 7.1-9
pve-kernel-5.15.158-1-pve: 5.15.158-1
pve-kernel-5.15.152-1-pve: 5.15.152-1
pve-kernel-5.15.149-1-pve: 5.15.149-1
pve-kernel-5.15.143-1-pve: 5.15.143-1
pve-kernel-5.15.126-1-pve: 5.15.126-1
pve-kernel-5.15.116-1-pve: 5.15.116-1
pve-kernel-5.15.107-1-pve: 5.15.107-1
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.13.19-2-pve: 5.13.19-4
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.17-1-pve: 4.15.17-9
ceph-fuse: 16.2.15-pve1
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx4
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4.3
libpve-apiclient-perl: 3.3.2
libpve-common-perl: 7.4-2
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.7
libpve-storage-perl: 7.4-3
libqb0: 1.0.5-1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.2.5-1
proxmox-backup-file-restore: 3.2.3-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.6
proxmox-widget-toolkit: 4.2.3
pve-cluster: 7.3-3
pve-container: 4.4-7
pve-docs: 8.2.2
pve-edk2-firmware: 4.2023.08-4
pve-firewall: 5.0.7
pve-firmware: 3.12-1
pve-ha-manager: 3.6.1
pve-i18n: 3.2.2
pve-qemu-kvm: 7.2.10-1
pve-xtermjs: 5.3.0-3
qemu-server: 7.4-6
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.4-pve1
Hit:1 http://mirror.linux.org.au/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease                  
Hit:3 http://download.proxmox.com/debian/pve bookworm InRelease                
Reading package lists... Done        
Building dependency tree... Done
Reading state information... Done
81 packages can be upgraded. Run 'apt list --upgradable' to see them.
/etc/apt/sources.list:deb http://mirror.linux.org.au/debian bookworm main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:# security updates
/etc/apt/sources.list:deb http://security.debian.org bookworm-security main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
/etc/apt/sources.list:
/etc/apt/sources.list.d/pve-enterprise.list:# deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
/etc/apt/sources.list.d/pve-enterprise.list:
root@pbr-pve-kl1:~#
It seems like there is no repository for Debian updates (only for security updates), i.e. you can try adding:
Code:
deb http://mirror.linux.org.au/debian/ bookworm-updates main contrib
 
It seems like there is no repository for Debian updates (only for security updates), i.e. you can try adding:
Code:
deb http://mirror.linux.org.au/debian/ bookworm-updates main contrib
Thanks Fiona, even including additional sources full-upgrade is prompting to remove varios PVE packages

1718711878015.png
 

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!