Hola, me han surgido una serie de problemas al actualizar Proxmox entre las versiones mencionadas. En principio es lo que enseño a continuación más otras movidas más que he conseguido solucionar. He dado ya un gritón de vueltas y no sé si del estrés de la situación o que pero me siento bloqueado.
Los Proxmox son del trabajo, 4 de PRE y 4 de PRO. El tema está en que he seguido el mismo p*to procedimiento las 8 veces y hay 2 de PRE y 3 de PRO bien actualizados.
Tras hacer apt update y apt upgrade con los repos de Bullseye me encuentro esto:
root@preproxmox3:/# apt upgrade -y
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 : 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 installed
Depends: libpython3-stdlib (= 3.7.3-1) but 3.9.2-3 is installed
python3-cephfs : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed
python3-ldb : 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-talloc : Depends: python3 (>= 3.9~) but 3.7.3-1 is installed
python3-zmq : 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).
Si hago apt --fix-broken install me encuentro esto otro:
root@preproxmox3:/# 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 dctrl-tools distro-info-data libldb2 libleveldb1d libnorm1 libnvpair3linux liboath0 libpgm-5.2-0 libpython3.9 libqrencode4 librabbitmq4 librdkafka1 librgw2 libsodium23 libuutil3linux libzfs4linux libzmq5 libzpool4linux proxmox-archive-keyring proxmox-backup-client
proxmox-backup-file-restore proxmox-backup-restore-image pve-kernel-5.4.106-1-pve pve-kernel-5.4.73-1-pve pve-kernel-5.4.78-2-pve pve-kernel-5.4.98-1-pve qrencode
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
apt-listchanges ceph-common ceph-fuse cifs-utils glusterfs-client glusterfs-common ifupdown2 libpve-guest-common-perl libpve-storage-perl libsmbclient lsb-release lxc-pve proxmox-ve pve-container pve-ha-manager pve-manager pve-qemu-kvm python-cephfs python3 python3-apt
python3-ceph-argparse python3-ceph-common python3-cephfs python3-certifi python3-chardet python3-contextvars python3-croniter python3-dateutil python3-debconf python3-debian python3-debianbts python3-distro python3-httplib2 python3-idna python3-immutables python3-jinja2
python3-jwt python3-ldb python3-markupsafe python3-msgpack python3-natsort python3-pkg-resources python3-prettytable python3-psutil python3-pycryptodome python3-pycurl python3-pysimplesoap python3-rados python3-rbd python3-reportbug python3-requests python3-rgw python3-six
python3-systemd python3-talloc python3-tz python3-tzlocal python3-urllib3 python3-yaml python3-zmq qemu-server reportbug salt-common salt-minion samba-libs smbclient spiceterm xfsprogs zfs-initramfs zfs-zed zfsutils-linux
0 upgraded, 0 newly installed, 71 to remove and 0 not upgraded.
12 not fully installed or removed.
After this operation, 510 MB disk space will be freed.
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
Sobre Python y su paquetería, todos los nodos en /usr/bin tienen esto:
lrwxrwxrwx 1 root root 9 Jul 28 2021 python2 -> python2.7
-rwxr-xr-x 1 root root 3602816 Jul 14 2021 python2.7
lrwxrwxrwx 1 root root 9 Apr 5 2021 python3 -> python3.9
-rwxr-xr-x 2 root root 4877888 Jan 22 2021 python3.7
-rwxr-xr-x 2 root root 4877888 Jan 22 2021 python3.7m
-rwxr-xr-x 1 root root 5479736 Feb 28 2021 python3.9
pveversion y dpkg -l proxmox-ve en un nodo bien actualizado:
root@preproxmox1:~# dpkg -l proxmox-ve
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii proxmox-ve 7.2-1 all Proxmox Virtual Environment
root@preproxmox1:~# pveversion
pve-manager/7.2-3/c743d6c1 (running kernel: 5.4.157-1-pve)
pveversion y dpkg -l proxmox-ve en un nodo mal actualizado:
root@preproxmox3:~# dpkg -l proxmox-ve
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii proxmox-ve 7.2-1 all Proxmox Virtual Environment
root@preproxmox3:~# pveversion
pve-manager/6.4-14/15e2bf61 (running kernel: 5.15.35-1-pve)
Los repos:
/etc/apt/sources.list.d/pve-enterprise.list
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
/etc/apt/sources.list.d/pve-enterprise.list.dpkg-dist
deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
/etc/apt/sources.list
deb http://ftp.es.debian.org/debian bullseye main contrib
deb http://ftp.es.debian.org/debian bullseye-updates main contrib
deb http://security.debian.org bullseye-security main contrib
/etc/apt/sources.list.d/ceph.list
deb http://download.proxmox.com/debian/ceph-octopus bullseye main
En fin, seguro que me dejo algo por poner pero es que estoy ya saturated con este asunto. Si alguien puede arrojarme un poco de luz (o un machetazo) se lo agradeceré eternamente.
Saludos.