[SOLVED] apt dist-upgrade failed from v5 to v6

Sounds logical to me, the 15 version is for a higer version of proxmox? Might this have happened because of the fauly ceph.list I used containing the ceph-octopus location?

How do I downgrade?
 
So I downgraded all 15 versions to 12 versions:

librados2
librbd1
ceph-common

when I do

root@nb-pve1:~# apt update && apt --fix-broken install
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://ftp.nl.debian.org/debian buster InRelease
Hit:3 http://download.proxmox.com/debian/pve buster InRelease
Hit:4 http://download.proxmox.com/debian/corosync-3 stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
449 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
ceph-common : Depends: python-cephfs (= 12.2.11+dfsg1-2.1+b1) but it is not installed
Depends: python-rados (= 12.2.11+dfsg1-2.1+b1) but it is not installed
Depends: python-rbd (= 12.2.11+dfsg1-2.1+b1) but 12.2.13-pve1~bpo9 is installed
Depends: libboost-program-options1.67.0 but it is not installed
Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not installed
Depends: libboost-thread1.67.0 but it is not installed
dirmngr : Depends: gpgconf (= 2.2.12-1+deb10u2) but it is not installed
dmsetup : Depends: libdevmapper1.02.1 (>= 2:1.02.138) but 2:1.02.137-pve6 is installed
gnupg : Depends: gnupg-utils (< 2.2.12-1+deb10u2.1~) but it is not installed
Depends: gnupg-utils (>= 2.2.12-1+deb10u2) but it is not installed
Depends: gpg (< 2.2.12-1+deb10u2.1~) but it is not installed
Depends: gpg (>= 2.2.12-1+deb10u2) but it is not installed
Depends: gpg-agent (< 2.2.12-1+deb10u2.1~)
Depends: gpg-agent (>= 2.2.12-1+deb10u2)
Depends: gpg-wks-client (< 2.2.12-1+deb10u2.1~) but it is not installed
Depends: gpg-wks-client (>= 2.2.12-1+deb10u2) but it is not installed
Depends: gpg-wks-server (< 2.2.12-1+deb10u2.1~) but it is not installed
Depends: gpg-wks-server (>= 2.2.12-1+deb10u2) but it is not installed
Depends: gpgsm (< 2.2.12-1+deb10u2.1~) but it is not installed
Depends: gpgsm (>= 2.2.12-1+deb10u2) but it is not installed
Depends: gpgv (>= 2.2.12-1+deb10u2) but 2.1.18-8~deb9u4 is installed
libapparmor-perl : Depends: perl-base (>= 5.28.1-5) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.1
libauthen-pam-perl : Depends: perl (>= 5.28.0-3) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.0
libcrypt-ssleay-perl : Depends: perl (>= 5.28.0-3) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.0
libgail-common : Depends: libgtk2.0-0 (>= 2.24.32) but 2.24.31-2 is installed
libgail18 : Depends: libgtk2.0-0 (= 2.24.32-3) but 2.24.31-2 is installed
libpve-u2f-server-perl : Depends: perl (>= 5.28.1-6) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.1
libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.16-2+deb10u1) but 2.7.13-2+deb9u6 is installed
librados2 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not installed
Depends: libboost-thread1.67.0 but it is not installed
librados2-perl : Depends: perl (>= 5.28.1-6) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.1
libradosstriper1 : Depends: librados2 (= 15.2.17-pve1~bpo10) but 12.2.11+dfsg1-2.1+b1 is installed
librbd-dev : Depends: librados-dev but it is not installed
librgw2 : Depends: librados2 (= 15.2.17-pve1~bpo10) but 12.2.11+dfsg1-2.1+b1 is installed
Depends: libcurl4 (>= 7.28.0) but it is not installed
libterm-readline-gnu-perl : Depends: perl (>= 5.28.1-3) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.1
libtext-charwidth-perl : Depends: perl-base (>= 5.28.0-3) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.0
libxml-libxml-perl : Depends: perl (>= 5.28.1-4) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.1
python-rbd : Depends: librbd1 (>= 12.2.13-pve1~bpo9) but 12.2.11+dfsg1-2.1+b1 is installed
python-rgw : Depends: python-rados (= 12.2.13-pve1~bpo9) but it is not installed
python2.7 : Depends: python2.7-minimal (= 2.7.16-2+deb10u1) but 2.7.13-2+deb9u6 is installed
Depends: libpython2.7-stdlib (= 2.7.16-2+deb10u1) but 2.7.13-2+deb9u6 is installed
python3-cephfs : Depends: python3-ceph-argparse (= 15.2.17-pve1~bpo10) but it is not installable
python3-rbd : Depends: librbd1 (>= 15.2.17-pve1~bpo10) but 12.2.11+dfsg1-2.1+b1 is installed
texinfo : Depends: perl (>= 5.28.0-3) but 5.24.1-3+deb9u7 is installed
Depends: perlapi-5.28.0
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
 
python3-cephfs : Depends: python3-ceph-argparse (= 15.2.17-pve1~bpo10) but it is not installable
python3-rbd : Depends: librbd1 (>= 15.2.17-pve1~bpo10) but 12.2.11+dfsg1-2.1+b1 is installed
Hmm, probably still issues with these... Can you remove those? Make sure that they don't uninstall any pve packages as dependencies.
 
I am doing manual installs of the missing files and this is cleaning op pretty well. I do miss perlapi-5.24.1 which should be part op perl-base_5.24.1 but the oldstable version available is 5.28.1

Any help on this?

root@nb-pve1:~# apt install python-cephfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libanyevent-perl : Depends: perlapi-5.24.1 but it is not installable
libapt-pkg-perl : Depends: perlapi-5.24.1 but it is not installable
libboost-thread1.67.0 : Depends: libboost-atomic1.67.0 but it is not going to be installed
libclone-perl : Depends: perlapi-5.24.1 but it is not installable
libcommon-sense-perl : Depends: perlapi-5.24.1 but it is not installable
Depends: perl (< 5.24.2~) but 5.28.1-6+deb10u1 is to be installed
libcrypt-openssl-bignum-perl : Depends: perlapi-5.24.1 but it is not installable
libcrypt-openssl-random-perl : Depends: perlapi-5.24.1 but it is not installable
libcrypt-openssl-rsa-perl : Depends: perlapi-5.24.1 but it is not installable
libev-perl : Depends: perlapi-5.24.1 but it is not installable
libfile-sync-perl : Depends: perlapi-5.24.1 but it is not installable
libfilesys-df-perl : Depends: perlapi-5.24.1 but it is not installable
libgail-common : Depends: libgtk2.0-0 (>= 2.24.32) but 2.24.31-2 is to be installed
libgail18 : Depends: libgtk2.0-0 (= 2.24.32-3) but 2.24.31-2 is to be installed
libhtml-parser-perl : Depends: perlapi-5.24.1 but it is not installable
libintl-xs-perl : Depends: perlapi-5.24.1 but it is not installable
libjson-xs-perl : Depends: perlapi-5.24.1 but it is not installable
liblinux-inotify2-perl : Depends: perlapi-5.24.1 but it is not installable
liblocale-gettext-perl : PreDepends: perlapi-5.24.1 but it is not installable
libmath-random-isaac-xs-perl : Depends: perlapi-5.24.1 but it is not installable
libnet-dbus-perl : Depends: perlapi-5.24.1 but it is not installable
libnet-ssleay-perl : Depends: perlapi-5.24.1 but it is not installable
libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.16-2+deb10u1) but 2.7.13-2+deb9u6 is to be installed
libradosstriper1 : Depends: librados2 (= 15.2.17-pve1~bpo10) but 12.2.11+dfsg1-2.1+b1 is to be installed
librbd-dev : Depends: librados-dev but it is not going to be installed
librgw2 : Depends: librados2 (= 15.2.17-pve1~bpo10) but 12.2.11+dfsg1-2.1+b1 is to be installed
Depends: libcurl4 (>= 7.28.0) but it is not going to be installed
librrds-perl : Depends: perlapi-5.24.1 but it is not installable
libsocket6-perl : Depends: perlapi-5.24.1 but it is not installable
libtemplate-perl : Depends: perlapi-5.24.1 but it is not installable
libtext-iconv-perl : Depends: perlapi-5.24.1 but it is not installable
libuuid-perl : Depends: perlapi-5.24.1 but it is not installable
libxml-parser-perl : Depends: perlapi-5.24.1 but it is not installable
perl : Depends: perl-modules-5.28 (>= 5.28.1-6+deb10u1) but it is not going to be installed
Depends: libperl5.28 (= 5.28.1-6+deb10u1) but it is not going to be installed
pve-cluster : Depends: perlapi-5.24.1 but it is not installable
python-rgw : Depends: python-rados (= 12.2.13-pve1~bpo9) but 12.2.11+dfsg1-2.1+b1 is to be installed
python2.7 : Depends: python2.7-minimal (= 2.7.16-2+deb10u1) but 2.7.13-2+deb9u6 is to be installed
Depends: libpython2.7-stdlib (= 2.7.16-2+deb10u1) but 2.7.13-2+deb9u6 is to be installed
python3-cephfs : Depends: python3-ceph-argparse (= 15.2.17-pve1~bpo10) but it is not installable
python3-rbd : Depends: librbd1 (>= 15.2.17-pve1~bpo10) but 12.2.11+dfsg1-2.1+b1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
Hmm, you are trying to install package versions from stretch, not buster... https://packages.debian.org/stretch/perlapi-5.24.1

Can you try to reinstall the proxmox-ve meta package apt install proxmox-ve? First remove the python3-cephfs python3-rbd packages
 
Thanks for your help Chris!! after changing the base-perl to 5.28.1 I have manually downloaded and installed all the packages needed.
After that I could do a apt dist-upgrade

It's running now (27%). I'll let you know the result.

Lot of work but fulfilling.
 
Glad to hear that it worked out in the end! Please mark the thread as solved.