Dependency Issues on upgrade from PVE 6.4 to 7.3

aund

New Member
Dec 30, 2022
2
0
1
Hello everyone,

After trying to upgrade my version of proxmox I'm running into a dependency issue as follows:

Code:
root@pve:/var/cache/apt/archives# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 ceph-common : Depends: librbd1 (= 12.2.11+dfsg1-2.1+b1) but 15.2.17-pve1 is installed
               Depends: python:any (< 2.8)
               Depends: python:any (>= 2.7~)
 ceph-fuse : Depends: python:any
 criu : Depends: python:any (< 2.8)
        Depends: python:any (>= 2.7~)
 libradosstriper1 : Depends: librados2 (= 17.2.5-pve1) but 15.2.17-pve1 is installed
 libstdc++-8-dev : Depends: libgcc-8-dev (= 8.3.0-6) but it is not installable
 python-cephfs : Depends: python (< 2.8)
                 Depends: python (>= 2.7~)
                 Depends: python:any (< 2.8)
                 Depends: python:any (>= 2.7~)
 python-certifi : Depends: python (< 2.8)
                  Depends: python (>= 2.7)
                  Depends: python:any (>= 2.6.6-7~)
 python-chardet : Depends: python:any (< 2.8)
                  Depends: python:any (>= 2.7~)
 python-configparser : Depends: python (< 2.8)
                       Depends: python (>= 2.7)
                       Depends: python:any (>= 2.6.6-7~)
 python-dnspython : Depends: python:any (< 2.8)
                    Depends: python:any (>= 2.7~)
 python-future : Depends: python:any (< 2.8)
                 Depends: python:any (>= 2.7~)
 python-gpg : Depends: python (< 2.8)
              Depends: python (>= 2.7~)
              Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7~)
 python-idna : Depends: python:any (< 2.8)
               Depends: python:any (>= 2.7.5-5~)
 python-ipaddr : Depends: python:any (< 2.8)
                 Depends: python:any (>= 2.7~)
 python-prettytable : Depends: python:any (< 2.8)
                      Depends: python:any (>= 2.7~)
 python-protobuf : Depends: python (< 2.8)
                   Depends: python (>= 2.7~)
                   Depends: python:any (< 2.8)
                   Depends: python:any (>= 2.7~)
 python-pyicu : Depends: python (< 2.8)
                Depends: python (>= 2.7~)
                Depends: python:any (< 2.8)
                Depends: python:any (>= 2.7~)
 python-rados : Depends: python (< 2.8)
                Depends: python (>= 2.7~)
                Depends: python:any (< 2.8)
                Depends: python:any (>= 2.7~)
 python-rbd : Depends: python (< 2.8)
              Depends: python (>= 2.7~)
              Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7~)
 python-requests : Depends: python:any (< 2.8)
                   Depends: python:any (>= 2.7~)
python-six : Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7~)
 python-urllib3 : Depends: python:any (< 2.8)
                  Depends: python:any (>= 2.7~)
                  Recommends: python-cryptography but it is not installable
                  Recommends: python-ipaddress but it is not installable
                  Recommends: python-openssl but it is not installable
 python3-cephfs : Depends: libcephfs2 (= 17.2.5-pve1) but 15.2.17-pve1 is installed
                  Depends: python3-ceph-argparse (= 17.2.5-pve1) but it is not installed
 python3.7-dev : Depends: python3.7 (= 3.7.3-2+deb10u4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

After trying apt --fix-broken install I get the following:

Code:
root@pve:/var/cache/apt/archives# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  bsdmainutils cpp-8 dh-python libasan5 libisl19 libmpx2 libpython3.7-dev libx86emu2 pve-headers-5.4
  pve-kernel-5.4.106-1-pve pve-kernel-5.4.98-1-pve python3-asn1crypto python3-dbus python3-entrypoints
  python3-jeepney python3-keyring python3-keyrings.alt python3-mock python3-pbr python3-pycryptodome
  python3-secretstorage python3-xdg
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  ceph-common libcephfs2 libdouble-conversion3 liboath0 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5network5
  librabbitmq4 librados2 librbd1 librdkafka1 librgw2 libthrift-0.13.0 python-is-python2 python3-ceph-argparse
  python3-ceph-common python3-rbd python3-rgw python3-yaml qttranslations5-l10n
Suggested packages:
  ceph-base ceph-mds
The following packages will be REMOVED:
  libstdc++-8-dev python-minimal python3.7-dev
The following NEW packages will be installed:
  libdouble-conversion3 liboath0 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5network5 librabbitmq4 librdkafka1
  librgw2 libthrift-0.13.0 python-is-python2 python3-ceph-argparse python3-ceph-common python3-rbd python3-rgw
  python3-yaml qttranslations5-l10n
The following packages will be upgraded:
  ceph-common libcephfs2 librados2 librbd1
4 upgraded, 17 newly installed, 3 to remove and 162 not upgraded.
69 not fully installed or removed.
Need to get 0 B/45.0 MB of archives.
After this operation, 121 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Reading changelogs... Done
(Reading database ... 149498 files and directories currently installed.)
Preparing to unpack .../python3-ceph-argparse_17.2.5-pve1_all.deb ...
Unpacking python3-ceph-argparse (17.2.5-pve1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-ceph-argparse_17.2.5-pve1_all.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/ceph_argparse.py', which is also in package ceph-common 12.2.11+dfsg1-2.1+b1
Errors were encountered while processing:
 /var/cache/apt/archives/python3-ceph-argparse_17.2.5-pve1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

My sources list looks like the following:

Code:
deb http://ftp.debian.org/debian bullseye main contrib
deb http://ftp.debian.org/debian bullseye-updates main contrib
deb http://security.debian.org/debian-security bullseye-security main contrib
deb http://download.proxmox.com/debian/ceph-quincy bullseye main
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
deb http://ftp.debian.org/debian buster-backports main contrib

pveversion -v shows the following:

Code:
Use of uninitialized value $PVE::JSONSchema::PVE_TAG_RE in concatenation (.) or string at /usr/share/perl5/PVE/DataCenterConfig.pm line 147.
Use of uninitialized value $PVE::JSONSchema::PVE_TAG_RE in concatenation (.) or string at /usr/share/perl5/PVE/DataCenterConfig.pm line 182.
Use of uninitialized value $PVE::JSONSchema::PVE_TAG_RE in concatenation (.) or string at /usr/share/perl5/PVE/DataCenterConfig.pm line 182.
Use of uninitialized value $PVE::JSONSchema::PVE_TAG_RE in concatenation (.) or string at /usr/share/perl5/PVE/DataCenterConfig.pm line 208.
Use of uninitialized value $PVE::JSONSchema::PVE_TAG_RE in concatenation (.) or string at /usr/share/perl5/PVE/DataCenterConfig.pm line 208.
proxmox-ve: 7.3-1 (running kernel: 5.15.83-1-pve)
pve-manager: 6.4-15 (running version: 6.4-15/af7986e6)
pve-kernel-5.15: 7.3-1
pve-kernel-helper: 7.3-1
pve-kernel-5.4: 6.4-20
pve-kernel-5.15.83-1-pve: 5.15.83-1
pve-kernel-5.4.203-1-pve: 5.4.203-1
pve-kernel-5.4.106-1-pve: 5.4.106-1
pve-kernel-5.4.98-1-pve: 5.4.98-1
pve-kernel-5.4.34-1-pve: 5.4.34-2
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.1.7-pve1
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.24-pve2
libproxmox-acme-perl: 1.4.3
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 6.4-3
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 6.4-5
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-5
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: 5.0.0-3
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 1.1.14-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.5.3
pve-cluster: 6.4-1
pve-container: 3.3-6
pve-docs: 7.3-1
pve-edk2-firmware: 3.20220526-1
pve-firewall: 4.2-7
pve-firmware: 3.6-2
pve-ha-manager: 3.1-1
pve-i18n: 2.8-1
pve-qemu-kvm: 5.2.0-8
pve-xtermjs: 4.16.0-1
qemu-server: 6.4-2
smartmontools: 7.2-pve3
spiceterm: 3.2-2
vncterm: 1.7-1
zfsutils-linux: 2.0.7-pve1

I'm getting to the point where I might just reinstall proxmox and restore VMs/containers from backup but hopefully somone might be able to point me in the right direction.

Thanks for reading!
 
Beside the already mentioned buster-backports repository; I think your main problem comes from Ceph. Do you even use Ceph at all? (I guess and hope not.)

It looks to me, that you are trying to go from Ceph 15 straight to Ceph 17. I highly assume this is a problem in general.
You could try replacing the Ceph Quincy/17 repository: [1] with the Ceph Pacific/16 repository: [2] or even with the Ceph Octopus/15 repository: [3]. (Would try with Ceph 15 first.)

But absolutely not sure, if this might help in the current state at all!

[1] https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_package_repositories_ceph
[2] https://pve.proxmox.com/wiki/Package_Repositories#_ceph_pacific_repository
[3] https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_package_repositories_ceph_octopus
 
  • Like
Reactions: gurubert

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!