Upgrading 6.x to 7.1 something strange happening

proqress

New Member
Jan 31, 2022
4
0
1
40
I'm stuck at upgrade. It asks to remove pve. Also WebGUI is giving login failed error.

It should be a simple fix but couldn't find how. Would you point it out please :)

Output of 'apt dist-upgrade':
Bash:
root@pve ~ # apt dist-upgrade
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:
  apache2-data apache2-utils avahi-daemon libavahi-compat-libdnssd1 libavahi-core7 libconfig-inifiles-perl libdaemon0 libdouble-conversion1 libdouble-conversion3 libnss-mdns
  libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5network5 libqt5sql5 libqt5sql5-sqlite libqt5xml5 libzeroc-ice3.7 php7.3-common python-pyicu python-urwid python3-future python3-netifaces
  qttranslations5-l10n
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libldb1 libpolkit-backend-1-0 libpve-access-control libpve-cluster-api-perl libpve-guest-common-perl libpve-storage-perl libpve-u2f-server-perl libpython2.7 librados2-perl netplan.io
  proxmox-ve pve-cluster pve-container pve-firewall pve-ha-manager pve-manager python-chardet python-newt python-requests python-talloc python3-yaml python3.7 qemu-server
The following NEW packages will be installed:
  alsa-topology-conf alsa-ucm-conf atop libbpf0 libc-devtools libcrypt-dev libdeflate0 libdouble-conversion3 libfcgi-bin libfcgi0ldbl libicu67 libinih1 libip4tc2 libip6tc2 libldb2
  libleveldb1d liblinear4 liblttng-ust-ctl4 liblttng-ust0 libmpdec3 libnl-genl-3-200 libnsl-dev libnss-nis libnss-nisplus liboath0 libperl5.32 libprocps8 libpython3.9
  libpython3.9-minimal libpython3.9-stdlib librabbitmq4 librdkafka1 librgw2 libtirpc-dev lua-lpeg mailcap manpages-dev media-types perl-modules-5.32 python-ceph-argparse python-rgw
  python3-icu python3-ldb python3-newt python3-psutil python3-talloc python3-urwid python3.9 python3.9-minimal shared-mime-info systemd-timesyncd
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
The following packages will be upgraded:
  apache2-bin apache2-data apache2-utils apg bsdextrautils bsdutils byobu ceph-common ceph-fuse ebtables eject fdisk gawk gdisk gir1.2-glib-2.0 groff-base hollywood htop iftop iproute2
  iptables libanyevent-perl libappstream4 libapt-pkg-perl libasound2 libasound2-data libauthen-pam-perl libblkid1 libbrotli1 libc-bin libc-dev-bin libc6 libc6-dev libcairo2 libcephfs2
  libclone-perl libcommon-sense-perl libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl libdbd-mariadb-perl libdbi-perl
  libfcgi-perl libfdisk1 libfilesys-df-perl libflac8 libgd3 libgfortran5 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libgoogle-perftools4 libgstreamer-plugins-base1.0-0
  libgstreamer1.0-0 libhtml-parser-perl libhttp-message-perl libio-pty-perl libiptc0 libjemalloc2 libjson-xs-perl liblinux-inotify2-perl liblocale-gettext-perl libmount1
  libnet-dbus-perl libnet-ssleay-perl libnewt0.52 libnspr4 libnss-systemd libnss3 libopus0 libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libpng16-16
  libpolkit-agent-1-0 libpolkit-gobject-1-0 libpulse0 libpython3-stdlib libqt5core5a libqt5dbus5 libqt5network5 libqt5sql5 libqt5sql5-sqlite libqt5xml5 librados2 libradosstriper1
  librbd1 librrd8 librrds-perl libsdl1.2debian libsensors5 libslang2 libsmartcols1 libsmbclient libsndfile1 libsqlite3-0 libsystemd0 libtcmalloc-minimal4 libtemplate-perl
  libterm-readkey-perl libterm-readline-gnu-perl libtext-charwidth-perl libtext-iconv-perl libtiff5 libudev1 libuuid-perl libuuid1 libvorbis0a libvorbisenc2 libwbclient0 libwebp6
  libxml-libxml-perl libxml-parser-perl libxslt1.1 libxtables12 libyaml-libyaml-perl linux-libc-dev locales mawk mime-support mount netbase nginx nmap nmap-common perl perl-base
  policykit-1 postfix procps pve-kernel-5.4.162-1-pve python-cephfs python-rados python-rbd python3 python3-apt python3-cffi-backend python3-chardet python3-dbus python3-distutils
  python3-gi python3-lib2to3 python3-minimal python3-netifaces python3-parsedatetime python3-pycurl python3-zope.hookable python3-zope.interface rsyslog samba-common samba-libs
  smbclient speedometer sqlite3 systemd udev unattended-upgrades util-linux whiptail xfsprogs
163 upgraded, 51 newly installed, 23 to remove and 9 not upgraded.
Need to get 0 B/192 MB of archives.
After this operation, 153 MB of additional disk space will be used.
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
root@pve ~ #

Code:
/etc/apt/sources.list.d/pve-install-repo.list

deb http://download.proxmox.com/debian/pve buster pve-no-subscription

Code:
/etc/apt/sources.list

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 bullseye-security main contrib

Code:
root@pve ~ # pve6to7 --full
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =

Checking for package updates..
WARN: updates for the following packages are available:
  fdisk, perl-base, libpolkit-gobject-1-0, python-six, libcrypt-ssleay-perl, libwebp6, libhttp-message-perl, libencode-perl, libradosstriper1, bsdextrautils, ceph-common, python-ceph-argparse, python-rgw, libleveldb1d, liboath0, librabbitmq4, librdkafka1, netplan.io, libnetplan0, libpangoft2-1.0-0, postfix, libicu67, librrds-perl, python3-zope.interface, libfdisk1, iptables, libip4tc2, libip6tc2, python3-distutils, libterm-readline-gnu-perl, libnet-ssleay-perl, linux-libc-dev, iftop, libgirepository-1.0-1, byobu, python3-newt, libc6-dev, libcrypt-dev, libnsl-dev, libwbclient0, libicu67, libbrotli1, libsystemd0, apg, libgd3, libpython2-stdlib, libpixman-1-0, libasound2-data, python2.7-minimal, libmount1, libcrypt-openssl-random-perl, libdbi-perl, libsqlite3-0, libcephfs2, python3-zope.hookable, hollywood, librbd1, liblttng-ust0, libqt5dbus5, libpython2.7, libfilesys-df-perl, python2.7, libfcgi-perl, libfcgi0ldbl, libqt5sql5-sqlite, libc6, netbase, util-linux, python3-netifaces, libuuid-perl, liblocale-gettext-perl, python2, python3, python3.9, gawk, libpolkit-agent-1-0, ebtables, udev, locales, mime-support, mailcap, media-types, libdbd-mariadb-perl, procps, libprocps8, python3-six, pve-kernel-5.4.162-1-pve, libterm-readkey-perl, apache2-data, libopus0, libanyevent-perl, libudev1, rsyslog, libjson-xs-perl, libqt5xml5, python-rados, htop, libnl-genl-3-200, libapt-pkg-perl, python3-pycurl, mount, samba-libs, libldb2, libpython3.9, python3-ldb, python3-talloc, sqlite3, libiptc0, libip4tc2, gdisk, libtcmalloc-minimal4, libblkid1, libtiff5, libdeflate0, groff-base, python3-minimal, libclone-perl, libc-bin, libpangocairo-1.0-0, libpulse0, gir1.2-glib-2.0, nmap, liblinear4, lua-lpeg, xfsprogs, libicu67, libinih1, python2-minimal, whiptail, libvorbisenc2, libnewt0.52, libnet-dbus-perl, libpython3-stdlib, libpython3.9-stdlib, python3-cffi-backend, libgfortran5, samba-common, mawk, libuuid1, librrd8, libglib2.0-bin, python-cephfs, python-ceph-argparse, ceph-fuse, libpam-systemd, libgstreamer-plugins-base1.0-0, libsndfile1, python3-lib2to3, python3-yaml, libgoogle-perftools4, libyaml-libyaml-perl, libcrypt-openssl-rsa-perl, speedometer, python3-psutil, python3-urwid, systemd, libip4tc2, systemd-timesyncd, libsdl1.2debian, libsmartcols1, libqt5core5a, shared-mime-info, libdouble-conversion3, libicu67, libcrypt-openssl-bignum-perl, libtemplate-perl, libauthen-pam-perl, eject, libio-pty-perl, libcommon-sense-perl, iproute2, libbpf0, libxml-libxml-perl, libsmbclient, smbclient, libjemalloc2, libnss-systemd, bsdutils, python3-dbus, libasound2, libxtables12, policykit-1, libc-dev-bin, python3-gi, libflac8, libpython2.7-minimal, unattended-upgrades, libnss3, apache2-bin, perl, perl-modules-5.32, libperl5.32, libappstream4, libxml-parser-perl, liblinux-inotify2-perl, libvorbis0a, libqt5network5, libcairo2, libpython2.7-stdlib, libtext-iconv-perl, apache2-utils, libpango-1.0-0, nmap-common, python3-parsedatetime, libhtml-parser-perl, libsensors5, python3-chardet, libgstreamer1.0-0, libglib2.0-0, librados2, liblttng-ust0, libnspr4, libqt5sql5, python3-apt, libxslt1.1, libtext-charwidth-perl, python-rbd, nginx, libslang2, libpng16-16

Checking proxmox-ve package version..
PASS: proxmox-ve package has version >= 6.4-1

Checking running kernel version..
PASS: expected running kernel '5.4.157-1-pve'.

= CHECKING CLUSTER HEALTH/SETTINGS =

SKIP: standalone node.

= CHECKING HYPER-CONVERGED CEPH STATUS =

SKIP: no hyper-converged ceph setup detected!

= CHECKING CONFIGURED STORAGES =

PASS: storage 'b1' enabled and active.
PASS: storage 'bigthin1' enabled and active.
PASS: storage 'local' enabled and active.

= MISCELLANEOUS CHECKS =

INFO: Checking common daemon services..
PASS: systemd unit 'pveproxy.service' is in state 'active'
PASS: systemd unit 'pvedaemon.service' is in state 'active'
PASS: systemd unit 'pvestatd.service' is in state 'active'
INFO: Checking for running guests..
WARN: 7 running guest(s) detected - consider migrating or stopping them.
INFO: Checking if the local node's hostname 'pve' is resolvable..
INFO: Checking if resolved IP is configured on local node..
PASS: Resolved node IP 'x.x.x.x' configured and active on single interface.
INFO: Checking backup retention settings..
WARN: storage 'local' - parameter 'maxfiles' is deprecated with PVE 7.x and will be removed in a future version, use 'prune-backups' instead.
INFO: checking CIFS credential location..
PASS: no CIFS credentials at outdated location found.
INFO: Checking custom roles for pool permissions..
INFO: Checking node and guest description/note legnth..
PASS: All node config descriptions fit in the new limit of 64 KiB
PASS: All guest config descriptions fit in the new limit of 8 KiB
INFO: Checking container configs for deprecated lxc.cgroup entries
PASS: No legacy 'lxc.cgroup' keys found.
INFO: Checking storage content type configuration..
PASS: no problems found
INFO: Checking if the suite for the Debian security repository is correct..
PASS: already using 'bullseye-security'

= SUMMARY =

TOTAL:    20
PASSED:   15
SKIPPED:  2
WARNINGS: 3
FAILURES: 0

ATTENTION: Please check the output for detailed information!
 
Your /etc/apt/sources.list.d/pve-install-repo.list also has to be updated to bullseye from buster.
 
Code:
root@pve ~ # apt update

Hit:1 http://security.debian.org/debian-security bullseye-security InRelease

Hit:2 https://packages.sury.org/php bullseye InRelease                                                                                                                                   

Get:4 http://download.proxmox.com/debian/ceph-pacific bullseye InRelease [2,891 B]                                                                                                       

Hit:5 http://nginx.org/packages/mainline/debian bullseye InRelease                                                                                                                 

Hit:6 http://ftp.debian.org/debian bullseye InRelease                                                                                           

Hit:7 http://download.proxmox.com/debian/pve bullseye InRelease                                                         

Hit:8 http://ftp.debian.org/debian bullseye-updates InRelease                                     

Get:9 http://download.proxmox.com/debian/ceph-pacific bullseye/main amd64 Packages [46.7 kB]

Hit:10 https://downloads.mariadb.com/MariaDB/mariadb-10.5/repo/debian bullseye InRelease

Get:11 https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye InRelease [6,387 B]

Hit:3 https://downloads.mariadb.com/Tools/debian bullseye InRelease

Fetched 55.9 kB in 1s (60.1 kB/s)

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

261 packages can be upgraded. Run 'apt list --upgradable' to see them.

root@pve ~ # apt 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: python3-ceph-argparse (= 15.2.15-pve1) but it is not installed

 libc-bin : Depends: libc6 (< 2.29) but 2.31-13+deb11u2 is installed

 locales : Depends: libc-bin (> 2.31) but 2.28-10 is installed

 python3 : PreDepends: python3-minimal (= 3.7.3-1) but 3.9.2-3 is installed

           Depends: python3.7 (>= 3.7.3-1~) but it is not installable

           Depends: libpython3-stdlib (= 3.7.3-1) but 3.9.2-3 is installed

 python3-cephfs : Depends: python3-ceph-argparse (= 15.2.15-pve1) but it is not installed

                  Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

 python3-psutil : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

 python3-rados : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

 python3-rbd : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

 python3-rgw : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

 python3-urwid : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

 python3-zope.hookable : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

 python3-zope.interface : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

root@pve ~ #

I messed up the apt. Any idea on fixing this?
 
it was done for demonstration purposes. output is the same.

Code:
root@pve ~ # apt install python3-ceph-argparse libc-bin python3=3.9.2-3 python3-apt python3-cffi-backend python3-dbus python3-distutils python3-gi python3-lib2to3 python3-netifaces pyth
on3-pycurl python3-yaml=5.3.1-5 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin
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:
 python3-yaml : Breaks: libpython-stdlib (< 2.7.18) but 2.7.16-1 is to be installed
                Breaks: python (< 2.7.18)
                Breaks: python-minimal (< 2.7.18) but 2.7.16-1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I bent things on apt but stuck on this package. Any idea?

edit; lsb_release shows that system upgraded to bullseye but I think something happened while removing python2.7 so apt is broken. I couldn't fix it since posting.

final edit: it took some time but, reading apt output and giving what it asks, finally did the job :D
 
Last edited:
Sorry to drop in on this, but I do see all the repos were updated on mine, and it says
warning old suite 'buster' configured!

This has been there for a while and I finally decided to highlight that line and disable "buster" which then showed that everything was OK.

Is this the right thing to have done to get rid of the error?
Can I get rid of that line entirely?

Thanks!
 

Attachments

  • 27.05.2022_17.07.11_REC.png
    27.05.2022_17.07.11_REC.png
    58.9 KB · Views: 5
Last edited:
Sorry to drop in on this, but I do see all the repos were updated on mine, and it says
warning old suite 'buster' configured!

This has been there for a while and I finally decided to highlight that line and disable "buster" which then showed that everything was OK.

Is this the right thing to have done to get rid of the error?

Thanks!

While simply disabling the repository is okay, I would delete it (the file pmg-no-subscription.list) for the sake of cleanness, because other than the filename (doesn't matter for the function or so at all) suggests, there is not the no-subscription repo configured, but instead the already existing enterprise one, pointing to the old buster release as you mentioned.
 
  • Like
Reactions: MiamiJack