[SOLVED] Upgrade issue 6.4 to 7.1, dependencies

Olaf Brenn

Well-Known Member
Jul 3, 2017
54
2
48
51
This is a clone of: https://forum.proxmox.com/threads/proxmox-ve-7-1-released.99847/page-8

Hi there, I am not sure if this issue appears somewere else. I updated my Proxmox from 6.4 to 7.1 today. Worked fine but I do get the following error
root@pve2:/etc/apt/sources.list.d# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-six python2 python2-minimal python2.7 python2.7-minimal python3-six
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

There is no way to solve this. All other source list are disabled except the source.list as follows:


deb http://ftp.us.debian.org/debian bullseye main contrib
deb http://ftp.us.debian.org/debian bullseye-updates main contrib
# security updates
deb http://security.debian.org/debian-security bullseye-security 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

deb [arch=amd64] http://download.proxmox.com/debian/pve bullseye pve-no-subscription

Is there any idea how to get rid of that packages?
Thanks

Olaf

P.S.
apt list --upgradable
libpython2-stdlib/stable 2.7.18-3 amd64 [upgradable from: 2.7.16-1]
libpython2.7-minimal/stable 2.7.18-8 amd64 [upgradable from: 2.7.16-2+deb10u1]
libpython2.7-stdlib/stable 2.7.18-8 amd64 [upgradable from: 2.7.16-2+deb10u1]
python-six/stable 1.16.0-2 all [upgradable from: 1.12.0-1]
python2-minimal/stable 2.7.18-3 amd64 [upgradable from: 2.7.16-1]
python2.7-minimal/stable 2.7.18-8 amd64 [upgradable from: 2.7.16-2+deb10u1]
python2.7/stable 2.7.18-8 amd64 [upgradable from: 2.7.16-2+deb10u1]
python2/stable 2.7.18-3 amd64 [upgradable from: 2.7.16-1]
python3-six/stable 1.16.0-2 all [upgradable from: 1.12.0-1]


Output of pveversion -v

proxmox-ve: 7.1-1 (running kernel: 5.13.19-6-pve)
pve-manager: 7.1-12 (running version: 7.1-12/b3c09de3)
pve-kernel-helper: 7.1-14
pve-kernel-5.13: 7.1-9
pve-kernel-5.4: 6.4-15
pve-kernel-5.0: 6.0-11
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.4.174-2-pve: 5.4.174-2
pve-kernel-5.0.21-5-pve: 5.0.21-10
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph-fuse: 15.2.15-pve1~bpo10
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: 0.8.36+pve1
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.1
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.1-7
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.1-5
libpve-guest-common-perl: 4.1-1
libpve-http-server-perl: 4.1-1
libpve-storage-perl: 7.1-1
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.11-1
lxcfs: 4.0.11-pve1
novnc-pve: 1.3.0-2
proxmox-backup-client: 2.1.5-1
proxmox-backup-file-restore: 2.1.5-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.4-7
pve-cluster: 7.1-3
pve-container: 4.1-4
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.3-6
pve-ha-manager: 3.3-3
pve-i18n: 2.6-2
pve-qemu-kvm: 6.1.1-2
pve-xtermjs: 4.16.0-1
qemu-server: 7.1-4
smartmontools: 7.2-pve2
spiceterm: 3.2-2
swtpm: 0.7.1~bpo11+1
vncterm: 1.7-1
zfsutils-linux: 2.1.4-pve1
 
Hi,

Hi there, I am not sure if this issue appears somewere else. I updated my Proxmox from 6.4 to 7.1 today.
Did you follow the Proxmox VE 6 to 7 upgrade guide for this [1]? The upgrade seems to have been successful, however, I just want to ensure you followed the guide because the reason for your current issues is the use of apt upgrade instead of apt dist-upgrade.

root@pve2:/etc/apt/sources.list.d# apt upgrade
You should always use apt dist-upgrade to update a Proxmox system for this exact reason. apt upgrade will not automatically remove old packages and will skip upgrades in case an old package prevents it from doing so. apt dist-upgrade (or equally, apt full-upgrade) will automatically remove old, conflicting packages in order to perform an upgrade, if necessary.

Could you run the following command and see if it resolves the issue?
Code:
apt update && apt dist-upgrade

[1] https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
 
this was exactly the problem - I used apt-get upgrade.

apt update && apt dist-upgrade:

Do you want to continue? [Y/n] y
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

Shall I remove proxmox and reinstall it?

Olaf
 
Shall I remove proxmox and reinstall it?
I wouldn't do this in case the system gets really messed up, unless you mean a fresh install, in which case, whatever you prefer.

If you'd rather not perform a fresh install, could you post:
  • All of your apt sources: cat /etc/apt/sources.list /etc/apt/sources.list.d/*
  • The output of: apt update
  • The output of: apt dist-upgrade --dry-run
 
sure

cat /etc/apt/sources.list /etc/apt/sources.list.d/*
deb http://ftp.us.debian.org/debian bullseye main contrib
deb http://ftp.us.debian.org/debian bullseye-updates main contrib
# security updates
deb http://security.debian.org/debian-security bullseye-security 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

deb [arch=amd64] http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#deb http://download.proxmox.com/debian/ceph-octopus buster main
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
#deb [arch=amd64] http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
#deb http://download.proxmox.com/debian/pve buster pve-no-subscription

apt update
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.us.debian.org/debian bullseye InRelease
Hit:4 http://ftp.us.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:10


apt dist-upgrade --dry-run

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
arch-test augeas-lenses cryptsetup-bin db-util db5.3-util debootstrap exfat-fuse exfat-utils f2fs-tools hfsplus icoutils kpartx ldmtool libafflib0v5 libaugeas0 libbfio1
libconfig9 libdate-manip-perl libewf2 libfdt1 libfuse3-3 libhfsp0 libhivex0 libintl-perl libintl-xs-perl libjs-qrcodejs libjson-glib-1.0-0 libjson-glib-1.0-common
libldm-1.0-0 libleveldb1d libnetpbm10 libntfs-3g883 liboath0 libposix-strptime-perl libproxmox-backup-qemu0 libpve-cluster-api-perl libqrencode4 librabbitmq4 librdkafka1
librgw2 libsys-virt-perl libtpms0 libtsk19 liburing1 libvhdi1 libvirt0 libvmdk1 libwin-hivex-perl libyajl2 libyara4 lsscsi mdadm netpbm ntfs-3g osinfo-db
proxmox-archive-keyring proxmox-backup-client proxmox-backup-file-restore proxmox-backup-restore-image proxmox-websocket-tunnel pve-lxc-syscalld python-ceph-argparse
qrencode reiserfsprogs scrub sleuthkit squashfs-tools supermin swtpm swtpm-libs swtpm-tools syslinux zerofree zstd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
ceph-common libguestfs-hfsplus libguestfs-perl libguestfs-reiserfs libguestfs-tools libguestfs-xfs libguestfs0 libpve-guest-common-perl libpve-storage-perl libpython-stdlib
proxmox-ve pve-container pve-ha-manager pve-manager pve-qemu-kvm python python-asn1crypto python-cephfs python-certifi python-cffi-backend python-configparser
python-cryptography python-enum34 python-future python-idna python-ipaddr python-ipaddress python-minimal python-openssl python-prettytable python-rados python-rbd
python-rgw python-urllib3 qemu-server spiceterm virt-p2v
The following packages will be upgraded:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-six python2 python2-minimal python2.7 python2.7-minimal python3-six
9 upgraded, 0 newly installed, 37 to remove and 0 not upgraded.
Remv proxmox-ve [7.1-1]
Remv pve-manager [7.1-12]
Remv pve-container [4.1-4] [pve-ha-manager:amd64 ]
Remv pve-ha-manager [3.3-3] [qemu-server:amd64 ]
Remv qemu-server [7.1-4]
Remv libguestfs-xfs [1:1.44.0-2]
Remv virt-p2v [1.42.0-2]
Remv libguestfs-tools [1:1.44.0-2]
Remv libguestfs0 [1:1.44.0-2] [libguestfs-perl:amd64 libguestfs-hfsplus:amd64 libguestfs-reiserfs:amd64 ]
Remv spiceterm [3.2-2] [libguestfs-perl:amd64 libguestfs-hfsplus:amd64 libguestfs-reiserfs:amd64 ]
Remv pve-qemu-kvm [6.1.1-2] [libguestfs-perl:amd64 libguestfs-hfsplus:amd64 libguestfs-reiserfs:amd64 ]
Remv libpve-guest-common-perl [4.1-1] [libguestfs-perl:amd64 libguestfs-hfsplus:amd64 libguestfs-reiserfs:amd64 ]
Remv libpve-storage-perl [7.1-1] [libguestfs-perl:amd64 libguestfs-hfsplus:amd64 libguestfs-reiserfs:amd64 ]
Remv ceph-common [14.2.22-pve1] [libguestfs-perl:amd64 libguestfs-hfsplus:amd64 libguestfs-reiserfs:amd64 ]
Remv libguestfs-hfsplus [1:1.44.0-2] [libguestfs-perl:amd64 libguestfs-reiserfs:amd64 ]
Remv libguestfs-perl [1:1.44.0-2] [libguestfs-reiserfs:amd64 ]
Remv libguestfs-reiserfs [1:1.44.0-2]
Remv python-rgw [14.2.22-pve1]
Remv python-certifi [2018.8.24-1]
Remv python-rbd [14.2.22-pve1]
Remv python-urllib3 [1.24.1-1]
Remv python [2.7.16-1] [python-cephfs:amd64 python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-cryptography:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-asn1crypto:amd64 python-future:amd64 python-openssl:amd64 python-cffi-backend:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv libpython-stdlib [2.7.16-1] [python-cephfs:amd64 python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-cryptography:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-asn1crypto:amd64 python-future:amd64 python-openssl:amd64 python-cffi-backend:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-openssl [19.0.0-1] [python-cephfs:amd64 python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-cryptography:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-asn1crypto:amd64 python-future:amd64 python-cffi-backend:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-cryptography [2.6.1-3+deb10u2] [python-cephfs:amd64 python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-asn1crypto:amd64 python-future:amd64 python-cffi-backend:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-asn1crypto [0.24.0-1] [python-cephfs:amd64 python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-future:amd64 python-cffi-backend:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-cephfs [14.2.22-pve1] [python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-future:amd64 python-cffi-backend:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-cffi-backend [1.12.2-1] [python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-future:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-future [0.16.0-1] [python-prettytable:amd64 python-rados:amd64 python-configparser:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-configparser [3.5.0b2-1] [python-prettytable:amd64 python-rados:amd64 python-enum34:amd64 python-six:amd64 python-idna:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-enum34 [1.1.6-2] [python-prettytable:amd64 python-rados:amd64 python-six:amd64 python-idna:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-idna [2.6-1] [python-prettytable:amd64 python-rados:amd64 python-six:amd64 python-ipaddress:amd64 python-ipaddr:amd64 ]
Remv python-ipaddr [2.2.0-2] [python-prettytable:amd64 python-rados:amd64 python-six:amd64 python-ipaddress:amd64 ]
Remv python-ipaddress [1.0.17-1] [python-prettytable:amd64 python-rados:amd64 python-six:amd64 ]
Remv python-minimal [2.7.16-1] [python-prettytable:amd64 python-rados:amd64 python-six:amd64 ]
Remv python-prettytable [0.7.2-4] [python-rados:amd64 python-six:amd64 ]
Remv python-rados [14.2.22-pve1] [python-six:amd64 ]
Inst python2.7 [2.7.16-2+deb10u1] (2.7.18-8 Debian:11.3/stable [amd64]) [python-six:amd64 ]
Inst libpython2.7-stdlib [2.7.16-2+deb10u1] (2.7.18-8 Debian:11.3/stable [amd64]) [python-six:amd64 ]
Inst python2.7-minimal [2.7.16-2+deb10u1] (2.7.18-8 Debian:11.3/stable [amd64]) [python-six:amd64 ]
Inst libpython2.7-minimal [2.7.16-2+deb10u1] (2.7.18-8 Debian:11.3/stable [amd64]) [python-six:amd64 ]
Inst python2-minimal [2.7.16-1] (2.7.18-3 Debian:11.3/stable [amd64]) [python2:amd64 on python2-minimal:amd64] [python-six:amd64 python2:amd64 ]
Conf libpython2.7-minimal (2.7.18-8 Debian:11.3/stable [amd64]) [python-six:amd64 python2:amd64 ]
Conf python2.7-minimal (2.7.18-8 Debian:11.3/stable [amd64]) [python-six:amd64 python2:amd64 ]
Conf python2-minimal (2.7.18-3 Debian:11.3/stable [amd64]) [python-six:amd64 python2:amd64 ]
Inst python2 [2.7.16-1] (2.7.18-3 Debian:11.3/stable [amd64]) [python-six:amd64 ]
Inst libpython2-stdlib [2.7.16-1] (2.7.18-3 Debian:11.3/stable [amd64]) [python-six:amd64 ]
Inst python-six [1.12.0-1] (1.16.0-2 Debian:11.3/stable [all])
Inst python3-six [1.12.0-1] (1.16.0-2 Debian:11.3/stable [all])
Conf python2.7 (2.7.18-8 Debian:11.3/stable [amd64])
Conf libpython2.7-stdlib (2.7.18-8 Debian:11.3/stable [amd64])
Conf python2 (2.7.18-3 Debian:11.3/stable [amd64])
Conf libpython2-stdlib (2.7.18-3 Debian:11.3/stable [amd64])
Conf python-six (1.16.0-2 Debian:11.3/stable [all])
Conf python3-six (1.16.0-2 Debian:11.3/stable [all])
 
Is this node part of a cluster? Is Ceph currently in use? I believe it's old Ceph packages (for which no repository is configured) that are keeping the update back.

If Ceph isn't in use, you can simply just add a newer repository, then run apt update and upgrade. Following the upgrade, you can uninstall Ceph in that case:
Code:
# Add ceph repo
echo "deb http://download.proxmox.com/debian/ceph-octopus bullseye main" > /etc/apt/sources.list.d/ceph.list

# update
apt update

# test upgrade
apt dist-upgrade --dry-run

# if all good, upgrade
apt dist-upgrade

If Ceph is in use, the process might be more difficult.

As an aside, you also have the pve-no-subscription repository configured twice.
 
Last edited:
Happy to help! Would you mind marking the thread as solved so that others can find a solution easier? :)
 

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!