[SOLVED] Unable to upgrade from 6 to 7

Smoblikat

New Member
Dec 2, 2021
6
1
1
37
Hello, I am trying to do an upgrade from Proxmox 6.4 to 7.X but I keep running into an error when trying to run apt dist-upgrade:

The following packages have unmet dependencies: libpve-common-perl : Breaks: qemu-server (< 7.0-19) but 6.4-2 is to be installed

running pve6to7 again shows that I have already completed the upgrade process, but I get a warning about running the wrong kernel:

Checking proxmox-ve package version.. PASS: already upgraded to Proxmox VE 7 Checking running kernel version.. WARN: unexpected running and installed kernel '5.13.19-1-pve'.

The web UI still reports me as running on version 6.4.13, I have rebooted the host multiple times. My sources.list is copied directly from the official install instructions:
deb http://ftp.debian.org/debian bullseye main contrib deb http://ftp.debian.org/debian bullseye-updates main contrib # PVE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription # security updates deb http://security.debian.org/debian-security bullseye-security main contrib

uname -r reports:
5.13.19-1-pve

Any help would be really appreciated, let me know if there is any more information you need.

Thank you,
 
Last edited:
Hello,

Could you please post the output of pveversion -v and the full output of apt update && apt dist-upgrade ?
 
Absolutely,

pveversion -v:
proxmox-ve: 7.1-1 (running kernel: 5.13.19-1-pve) pve-manager: 6.4-13 (running version: 6.4-13/9f411e79) pve-kernel-helper: 7.1-6 pve-kernel-5.13: 7.1-5 pve-kernel-5.4: 6.4-10 pve-kernel-5.13.19-2-pve: 5.13.19-4 pve-kernel-5.13.19-1-pve: 5.13.19-3 pve-kernel-5.4.151-1-pve: 5.4.151-1 pve-kernel-4.15: 5.3-3 pve-kernel-4.15.18-12-pve: 4.15.18-35 ceph-fuse: 12.2.11+dfsg1-2.1+b1 corosync: 3.1.5-pve2 criu: 3.11-3 glusterfs-client: 9.2-1 ifupdown: residual config ifupdown2: 3.1.0-1+pmx3 ksm-control-daemon: 1.4-1 libjs-extjs: 7.0.0-1 libknet1: 1.22-pve2 libproxmox-acme-perl: 1.4.0 libproxmox-backup-qemu0: 1.2.0-1 libpve-access-control: 6.4-3 libpve-apiclient-perl: 3.2-1 libpve-common-perl: 6.4-4 libpve-guest-common-perl: 3.1-5 libpve-http-server-perl: 3.2-3 libpve-storage-perl: 6.4-1 libqb0: 1.0.5-1 libspice-server1: 0.14.3-2.1 lvm2: 2.03.11-2.1 lxc-pve: 4.0.9-4 lxcfs: 4.0.8-pve2 novnc-pve: 1.2.0-3 proxmox-backup-client: 1.1.13-2 proxmox-mini-journalreader: 1.3-1 proxmox-widget-toolkit: 3.4-4 pve-cluster: 6.4-1 pve-container: 4.1-2 pve-docs: 7.1-2 pve-edk2-firmware: 1.20190312-1 pve-firewall: 4.2-5 pve-firmware: 3.3-3 pve-ha-manager: 3.3-1 pve-i18n: 2.6-2 pve-qemu-kvm: 5.2.0-6 pve-xtermjs: 4.12.0-1 qemu-server: 6.4-2 smartmontools: 7.2-pve2 spiceterm: 3.2-2 vncterm: 1.7-1 zfsutils-linux: 2.0.6-pve1~bpo10+1

apt update && apt dist-upgrade:
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://ftp.debian.org/debian bullseye InRelease Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease Hit:4 http://download.proxmox.com/debian/pve bullseye InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 196 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Error! 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: libpve-common-perl : Breaks: qemu-server (< 7.0-19) but 6.4-2 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Thank you,
 
pve-manager: 6.4-13 (running version: 6.4-13/9f411e79)
You are still running on pve-manager version 6.4?

Was the upgrade successful or were there errors? could you please post the output of the below commands between [CODE][/CODE]:

grep '' /etc/apt/sources.list
grep '' /etc/apt/sources.list.d/*
aptitude versions qemu-server

If you don't have `aptitude` you could install it apt install aptitude
 
You are still running on pve-manager version 6.4?

Was the upgrade successful or were there errors? could you please post the output of the below commands between [CODE][/CODE]:

grep '' /etc/apt/sources.list
grep '' /etc/apt/sources.list.d/*
aptitude versions qemu-server

If you don't have `aptitude` you could install it apt install aptitude

I dont recall getting any specific errors, I did start the upgrade process from the web console, which I later read is exactly what not to do. Though nothing seemed off to me:


grep '' /etc/apt/sources.list: - backports commented out, was used for some wireguard stuff
#deb http://deb.debian.org/debian bullseye-backports main deb http://ftp.debian.org/debian bullseye main contrib deb http://ftp.debian.org/debian bullseye-updates main contrib # PVE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription # security updates deb http://security.debian.org/debian-security bullseye-security main contrib

grep '' /etc/apt/sources.list.d/*:
/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.dpkg-dist:deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

aptitude versions qemu-server:
i 6.4-2 100 p 7.0-4 stable 500 p 7.0-5 stable 500 p 7.0-6 stable 500 p 7.0-7 stable 500 p 7.0-8 stable 500 p 7.0-9 stable 500 p 7.0-10 stable 500 p 7.0-11 stable 500 p 7.0-12 stable 500 p 7.0-13 stable 500 p 7.0-14 stable 500 p 7.0-15 stable 500 p 7.0-16 stable 500 p 7.0-17 stable 500 p 7.0-18 stable 500 p 7.0-19 stable 500 p 7.1-3 stable 500 p 7.1-4 stable 500

Thank you,
 
You are using pve-enterprise buster in your sources.list.d, could you please comment it out and re-post the output of apt update && apt dist-upgrade?
 
You are using pve-enterprise buster in your sources.list.d, could you please comment it out and re-post the output of apt update && apt dist-upgrade?

I did notice that after I made the post, I commented out the line and was able to run an apt update/upgrade, the amount of pending packages went from 196 to 62, so that did help. Though, I am a non enterprise subscription user, so im interested to know why adding packages from the enterprise repo was able to work. Instead of commenting the line out, I also tried changing buster to bullseye, the results were identical to if I had just commented out the line.

apt update && apt dist-upgrade:

Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://download.proxmox.com/debian/pve bullseye InRelease Hit:3 http://ftp.debian.org/debian bullseye InRelease Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 62 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Error! 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: libpve-common-perl : Breaks: qemu-server (< 7.0-19) but 6.4-2 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I also attempted to manually upgrade libpve-common-perl (the package dist-upgrade complains about) and I got these errors:

The following packages have unmet dependencies: libperl5.24 : Depends: perl-modules-5.24 (>= 5.24.1-3+deb9u7) but it is not installable proxmox-ve : Depends: qemu-server but it is not installable pve-ha-manager : Depends: qemu-server (>= 6.0-15) but it is not installable pve-manager : Depends: qemu-server (>= 6.2-17) but it is not installable E: Broken packages

Thank you,
 
What says the output of apt-mark showhold command?

I also attempted to manually upgrade libpve-common-perl (the package dist-upgrade complains about) and I got these errors:
Did you try apt install qemu-server command? - if so and didn't help please post the output of apt -o Debug::pkgProblemResolver=yes dist-upgrade
 
  • Like
Reactions: Smoblikat
What says the output of apt-mark showhold command?


Did you try apt install qemu-server command? - if so and didn't help please post the output of apt -o Debug::pkgProblemResolver=yes dist-upgrade

Amazing, thank you for the help. Once I ran the apt-mark showhold command, I saw that the pve-edk2-firmware was being held, I manually installed that package, then ran an apt-dist upgrade and was able to complete the upgrade to 7.1.

Thanks again!
 
  • Like
Reactions: GinSan
Hi,

Glad that you solved the issue yourself :)

I will go ahead and make your thread as [SOLVED] to help other people who have the same issue.
 
Same here! :) Could solve it with the thread-recommended

- uncomment the
Code:
deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
in /etc/apt/sources.list.d/pve-enterprise.list and do a
Code:
apt update
apt-mark showhold
apt install pve-edk2-firmware

When done, you should do a
Code:
apt update && apt dist-upgrade
afterwards.

Perfect!

Thank you
 
Last edited:

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!