[SOLVED] Upgrading from 6.1 to 6.2 - errors

Tau

Member
Sep 24, 2020
23
2
8
Hi there!

I have an issue on one of my proxmox hosts when upgrading from proxmox 6.1 to 6.2.

When executing apt update && apt-y full-upgrade I get the following:

root@prox2:/etc/apt# apt update && apt -y full-upgrade
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://ftp.debian.org/debian buster InRelease
Hit:3 http://ftp.debian.org/debian buster-updates InRelease
Hit:4 http://download.proxmox.com/debian/pve buster InRelease
Hit:5 http://download.proxmox.com/debian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
125 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
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-guest-common-perl : Breaks: pve-container (< 3.1-4) but 3.0-23 is to be installed
Breaks: qemu-server (< 6.1-19) but 6.1-7 is to be installed
libpve-storage-perl : Breaks: pve-container (< 3.1-2) but 3.0-23 is to be installed
Breaks: qemu-server (< 6.1-14) but 6.1-7 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


My /etc/apt/sources.list looks like this:

deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian buster-updates main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

# security updates
deb http://security.debian.org/debian-security buster/updates main contrib


This should be correct according to article: https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo

I run the no subscription proxmox.

in the sources.list.d directory I have one file: pve-no-subscription.list

Which contains the following entry:
deb http://download.proxmox.com/debian buster pve-no-subscription

Furthermore, an apt-get dist-upgrade shows the same error message mentioned above.

I hope someone can point me in the right direction as it seems I am doing everything by the book.
 
Try to comment out the deb http://download.proxmox.com/debian buster pve-no-subscription in path /etc/apt/sources.list.d/ then do apt update && apt dist-upgrade
 
Mhh I get this same error message:

root@prox2:/etc/apt/sources.list.d# cat pve-no-subscription.list
#deb http://download.proxmox.com/debian buster pve-no-subscription

root@prox2:/etc/apt/sources.list.d# apt update && apt dist-upgrade
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://ftp.debian.org/debian buster InRelease
Hit:3 http://ftp.debian.org/debian buster-updates InRelease
Hit:4 http://download.proxmox.com/debian/pve buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
125 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
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-guest-common-perl : Breaks: pve-container (< 3.1-4) but 3.0-23 is to be installed
Breaks: qemu-server (< 6.1-19) but 6.1-7 is to be installed
libpve-storage-perl : Breaks: pve-container (< 3.1-2) but 3.0-23 is to be installed
Breaks: qemu-server (< 6.1-14) but 6.1-7 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@prox2:/etc/apt/sources.list.d#
 
Yes, I did that and then the dist-upgrade:

root@prox2:/etc/apt/sources.list.d# dpkg --configure -a
root@prox2:/etc/apt/sources.list.d# apt update && apt dist-upgrade
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://download.proxmox.com/debian/pve buster InRelease
Hit:3 http://ftp.debian.org/debian buster InRelease
Hit:4 http://ftp.debian.org/debian buster-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
125 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
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-guest-common-perl : Breaks: pve-container (< 3.1-4) but 3.0-23 is to be installed
Breaks: qemu-server (< 6.1-19) but 6.1-7 is to be installed
libpve-storage-perl : Breaks: pve-container (< 3.1-2) but 3.0-23 is to be installed
Breaks: qemu-server (< 6.1-14) but 6.1-7 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@prox2:/etc/apt/sources.list.d#
 
root@prox2:/etc/apt/sources.list.d# apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 125 not upgraded.


Gives me this. 125 not upgraded! But no means to upgrade. I also find it weird that the upgrade is to an older version.
eg: pve-container (< 3.1-4) but 3.0-23 is to be installed

:S
 
ok, try

Bash:
apt clean
apt update
apt dist-upgrade

If that not help, check the output of apt-mark showhold and unhold the package name like apt-mark unhold <PACKAGENAME>

i hope that helps
 
I noticed that:

root@prox2:/etc/apt/sources.list.d# pveversion -v | grep pve-container
pve-container: 3.0-23


It actually tries upgrading to a version of pve-container already installed.
ok, try

Bash:
apt clean
apt update
apt dist-upgrade

If that not help, check the output of apt-mark showhold and unhold the package name like apt-mark unhold <PACKAGENAME>

i hope that helps

Thanks!

Below the output:

Code:
root@prox2:/etc/apt/sources.list.d# apt clean
root@prox2:/etc/apt/sources.list.d# apt update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://download.proxmox.com/debian/pve buster InRelease
Hit:3 http://ftp.debian.org/debian buster InRelease          
Hit:4 http://ftp.debian.org/debian buster-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
125 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@prox2:/etc/apt/sources.list.d# apt dist-upgrade
Reading package lists... Done
Building dependency tree
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-guest-common-perl : Breaks: pve-container (< 3.1-4) but 3.0-23 is to be installed
                            Breaks: qemu-server (< 6.1-19) but 6.1-7 is to be installed
 libpve-storage-perl : Breaks: pve-container (< 3.1-2) but 3.0-23 is to be installed
                       Breaks: qemu-server (< 6.1-14) but 6.1-7 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@prox2:/etc/apt/sources.list.d# apt-mark showhold
root@prox2:/etc/apt/sources.list.d#