[SOLVED] problem half dist-upgrade to pve9

Enrique Garcia Polo

Well-Known Member
Jun 29, 2018
43
1
48
43
Hi!
I have follow step to step upgrade guide and when I have run apt dist-upgrade I realized that I had done from novnc console so I stop the process by contrl+C.
Then I have connect to the server by ssh and I tried to re-run dist-upgrade and now crash:
Code:
# apt dist-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:
 db5.3-util : Depends: libdb5.3t64 (= 5.3.28+dfsg2-9) but it is not installed
 libanyevent-perl : Depends: perlapi-5.40.0
                    Recommends: libasync-interrupt-perl but it is not installed
                    Recommends: libguard-perl but it is not installed
 libc-bin : Depends: libc6 (< 2.37) but 2.41-12 is installed
 libc-dev-bin : Depends: libc6 (< 2.37) but 2.41-12 is installed
 libc6-dev : Depends: libc6 (= 2.36-9+deb12u13) but 2.41-12 is installed
 libc6-i386 : Depends: libc6 (= 2.36-9+deb12u13) but 2.41-12 is installed
 libnvpair3linux : Depends: libtirpc3t64 (>= 1.0.2) but it is not installed
 libtirpc-dev : Depends: libtirpc3t64 (= 1.3.6+ds-1) but it is not installed
 libzfs6linux : Depends: libssl3t64 (>= 3.0.0) but it is not installed
 locales : Depends: libc-bin (> 2.41) but 2.36-9+deb12u13 is installed
           Depends: libc-l10n (> 2.41) but 2.36-9+deb12u13 is installed
 nmap : Depends: nmap-common (= 7.93+dfsg1-1) but 7.95+dfsg-3 is installed
 zfsutils-linux : Depends: libssl3t64 (>= 3.0.0) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I tried 'apt --fix-broken install' but crash again:


Code:
...
...
113 upgraded, 66 newly installed, 65 to remove and 662 not upgraded.
31 not fully installed or removed.
Need to get 0 B/141 MB of archives.
After this operation, 228 MB of additional disk space will be used.
Do you want to continue? [Y/n]
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

Is ther any way to repair the upgrade?

Thanks a lot!
 
Last edited:
it sounds like you managed to hit C^C at a very bad time in the upgrade process... could you post the full output of "apt install -f"?
 
and also the full output of "apt update" and "grep '.*' -r /etc/apt/sources.list /etc/apt/sources.list.d" ?
 
it sounds like you managed to hit C^C at a very bad time in the upgrade process... could you post the full output of "apt install -f"?
Code:
root@dvall-prox06:/etc/apt/sources.list.d# apt install -f
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:
  ceph-fuse fdisk fonts-font-logos fonts-glyphicons-halflings idn javascript-common libabsl20220623 libalgorithm-c3-perl libapt-pkg6.0 libavif15 libb-hooks-endofscope-perl libb-hooks-op-check-perl libboost-context1.74.0
  libboost-filesystem1.74.0 libboost-iostreams1.74.0 libboost-program-options1.74.0 libboost-thread1.74.0 libc-devtools libclass-c3-perl libclass-c3-xs-perl libclass-data-inheritable-perl libclass-inspector-perl
  libclass-method-modifiers-perl libclass-singleton-perl libclass-xsaccessor-perl libcpanel-json-xs-perl libdata-optlist-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl libde265-0 libdevel-callchecker-perl
  libdevel-caller-perl libdevel-lexalias-perl libdevel-stacktrace-perl libdpkg-perl libdynaloader-functions-perl libeval-closure-perl libexception-class-perl libfile-fcntllock-perl libfile-find-rule-perl libfile-sharedir-perl
  libfile-which-perl libfmt9 libfuse2t64 libgav1-1 libgd3 libglusterd0 libheif1 libimport-into-perl libjs-bootstrap libjs-jquery libjs-qrcodejs libjs-sencha-touch libjson-glib-1.0-0 libjson-glib-1.0-common libmodule-implementation-perl
  libmodule-runtime-perl libmoo-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl libnet-ssh2-perl libnet-subnet-perl libnetaddr-ip-perl libnsl-dev libnumber-compare-perl libossp-uuid-perl libossp-uuid16
  libpackage-stash-perl libpackage-stash-xs-perl libparallel-forkmanager-perl libparams-classify-perl libparams-util-perl libparams-validationcompiler-perl libparse-edid-perl libposix-strptime-perl libproc-daemon-perl
  libproc-processtable-perl libproxmox-acme-plugins libpve-u2f-server-perl libpython3.11-minimal libpython3.11-stdlib libreadonly-perl libref-util-perl libref-util-xs-perl librole-tiny-perl libsocket-getaddrinfo-perl libspecio-perl
  libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-quote-perl libterm-readkey-perl libtext-glob-perl libtext-template-perl libtirpc-dev libtpms0 libu2f-server0
  libuniversal-require-perl libvariable-magic-perl libxpm4 libxstring-perl libyaml-libyaml-perl libyaml-perl libyaml-tiny-perl libyuv0 lua-lpeg net-tools proxmox-archive-keyring proxmox-backup-client proxmox-backup-file-restore
  proxmox-backup-restore-image proxmox-default-kernel proxmox-kernel-helper proxmox-mail-forward proxmox-mini-journalreader proxmox-offline-mirror-docs proxmox-offline-mirror-helper proxmox-websocket-tunnel pve-lxc-syscalld
  python3-certifi python3-charset-normalizer python3-debconf python3-jwt python3.11 python3.11-minimal qrencode swtpm swtpm-libs swtpm-tools usrmerge virtiofsd
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  apt apt-utils ceph-common curl init-system-helpers libaio1t64 libapt-pkg7.0 libatomic1 libauthen-pam-perl libb-hooks-op-check-perl libblkid1 libc-bin libc-dev-bin libc-l10n libc6-dev libc6-i386 libcephfs2 libclass-c3-xs-perl
  libclass-xsaccessor-perl libclone-perl libcommon-sense-perl libcpanel-json-xs-perl libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl libcurl3t64-gnutls libcurl4t64
  libdatetime-perl libdb5.3t64 libdbi1t64 libdevel-callchecker-perl libdevel-caller-perl libdevel-lexalias-perl libdouble-conversion3 libev-perl libexpat1 libfile-fcntllock-perl libfile-sync-perl libfilesys-df-perl libfuse2t64
  libgcrypt20 libgdbm-compat4t64 libgdbm6t64 libgfapi0 libgfchangelog0 libgfrpc0 libgfxdr0 libglib2.0-0t64 libglib2.0-data libglusterfs-dev libglusterfs0 libgmp10 libgnutls-dane0t64 libgnutls30t64 libgoogle-perftools4t64 libgpg-error0
  libhogweed6t64 libhtml-parser-perl libicu76 libjson-xs-perl libldap2 liblinux-inotify2-perl liblocale-gettext-perl liblttng-ust-common1t64 liblttng-ust-ctl5t64 liblttng-ust1t64 libmath-bigint-perl libmount1 libnbd0 libnet-dbus-perl
  libnet-dns-sec-perl libnet-libidn-perl libnet-ssh2-perl libnet-ssleay-perl libnetaddr-ip-perl libnettle8t64 libnghttp3-9 libngtcp2-16 libngtcp2-crypto-gnutls8 liboath0t64 libossp-uuid-perl libossp-uuid16 libp11-kit0
  libpackage-stash-xs-perl libpadwalker-perl libparams-classify-perl libparams-util-perl libpcap0.8t64 libpcre2-16-0 libperl5.40 libposix-strptime-perl libproc-processtable-perl libprotobuf32t64 libpsl5t64 libpve-u2f-server-perl
  libpython3-stdlib libpython3.13-minimal libpython3.13-stdlib libqt5core5t64 libqt5dbus5t64 libqt5network5t64 librados2 libradosstriper1 librbd1 librdkafka1 librdmacm1t64 libreadline8t64 libref-util-xs-perl librgw2 libsasl2-2
  libsasl2-modules-db libsnappy1v5 libsocket6-perl libssh2-1t64 libssl3t64 libstdc++6 libsub-identify-perl libsub-name-perl libtcmalloc-minimal4t64 libtemplate-perl libterm-readkey-perl libtext-charwidth-perl libtext-iconv-perl
  libthrift-0.19.0t64 libtirpc3t64 libuuid-perl libvariable-magic-perl libwtmpdb0 libxdp1 libxml-libxml-perl libxml-parser-perl libxml2 libxstring-perl libyaml-libyaml-perl lxc-pve nmap openssh-client openssh-server openssh-sftp-server
  openssl-provider-legacy perl perl-base perl-modules-5.40 publicsuffix python3 python3-apt python3-autocommand python3-ceph-argparse python3-ceph-common python3-cephfs python3-cffi-backend python3-debianbts python3-importlib-metadata
  python3-inflect python3-jaraco.context python3-jaraco.functools python3-jaraco.text python3-minimal python3-more-itertools python3-netifaces python3-openvswitch python3-pkg-resources python3-protobuf python3-pycurl python3-rados
  python3-rbd python3-rgw python3-setuptools python3-systemd python3-typeguard python3-typing-extensions python3-yaml python3-zipp python3.13 python3.13-minimal qttranslations5-l10n sqv xdg-user-dirs
Suggested packages:
  apt-doc aptitude | synaptic | wajig dpkg-dev powermgmt-base ceph-base ceph-mds libc-devtools glibc-doc gcc | c-compiler rng-tools gdbm-l10n low-memory-monitor iwatch cryptsetup-bin uuid libscalar-number-perl luarocks
  libtemplate-plugin-gd-perl libtemplate-plugin-xml-perl ncat ndiff zenmap keychain libpam-ssh monkeysphere ssh-askpass molly-guard ufw perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libtap-harness-archive-perl
  python3-doc python3-tk python3-venv python-apt-doc python3-graphviz python3-unbound libcurl4-gnutls-dev python-pycurl-doc python-setuptools-doc python3.13-venv python3.13-doc binfmt-support
Recommended packages:
  libsasl2-modules xauth lsb-release python3-click python3-netaddr python3-rich
The following packages will be REMOVED:
  apt-listchanges dh-python glpi-agent glusterfs-client glusterfs-common libapt-pkg-perl libcurl3-gnutls libcurl4 libdb5.3 libdbi1 libfuse2 libgdbm-compat4 libgdbm6 libglib2.0-0 libgnutls-dane0 libgnutls-openssl27 libgnutls30
  libgnutlsxx30 libgoogle-perftools4 libhogweed6 libnet-cups-perl libnettle8 liboath0 libpcap0.8 libprotobuf32 libproxmox-acme-perl libproxmox-rs-perl libpsl5 libpve-access-control libpve-cluster-api-perl libpve-cluster-perl
  libpve-common-perl libpve-guest-common-perl libpve-http-server-perl libpve-network-api-perl libpve-network-perl libpve-notify-perl libpve-rs-perl libpve-storage-perl librados2-perl librdmacm1 libreadline8 librrds-perl libssh2-1
  libssl3 libtcmalloc-minimal4 libterm-readline-gnu-perl libtirpc3 proxmox-firewall proxmox-ve pve-cluster pve-container pve-esxi-import-tools pve-firewall pve-ha-manager pve-manager pve-nvidia-vgpu-helper python3-distutils
  python3-lib2to3 python3-pysimplesoap python3-pyvmomi python3-reportbug python3-requests qemu-server reportbug
The following NEW packages will be installed:
  libaio1t64 libapt-pkg7.0 libatomic1 libcurl3t64-gnutls libcurl4t64 libdb5.3t64 libdbi1t64 libdouble-conversion3 libfuse2t64 libgdbm-compat4t64 libgdbm6t64 libglib2.0-0t64 libglib2.0-data libgnutls-dane0t64 libgnutls30t64
  libgoogle-perftools4t64 libhogweed6t64 libicu76 libldap2 liblttng-ust-common1t64 liblttng-ust-ctl5t64 liblttng-ust1t64 libnbd0 libnettle8t64 libnghttp3-9 libngtcp2-16 libngtcp2-crypto-gnutls8 liboath0t64 libpcap0.8t64 libpcre2-16-0
  libperl5.40 libprotobuf32t64 libpsl5t64 libpython3.13-minimal libpython3.13-stdlib libqt5core5t64 libqt5dbus5t64 libqt5network5t64 librdkafka1 librdmacm1t64 libreadline8t64 libssh2-1t64 libssl3t64 libtcmalloc-minimal4t64
  libthrift-0.19.0t64 libtirpc3t64 libwtmpdb0 openssl-provider-legacy perl-modules-5.40 publicsuffix python3-autocommand python3-importlib-metadata python3-inflect python3-jaraco.context python3-jaraco.functools python3-jaraco.text
  python3-more-itertools python3-rgw python3-typeguard python3-typing-extensions python3-zipp python3.13 python3.13-minimal qttranslations5-l10n sqv xdg-user-dirs
The following packages will be upgraded:
  apt apt-utils ceph-common curl init-system-helpers libauthen-pam-perl libb-hooks-op-check-perl libblkid1 libc-bin libc-dev-bin libc-l10n libc6-dev libc6-i386 libcephfs2 libclass-c3-xs-perl libclass-xsaccessor-perl libclone-perl
  libcommon-sense-perl libcpanel-json-xs-perl libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl libdatetime-perl libdevel-callchecker-perl libdevel-caller-perl
  libdevel-lexalias-perl libev-perl libexpat1 libfile-fcntllock-perl libfile-sync-perl libfilesys-df-perl libgcrypt20 libgfapi0 libgfchangelog0 libgfrpc0 libgfxdr0 libglusterfs-dev libglusterfs0 libgmp10 libgpg-error0
  libhtml-parser-perl libjson-xs-perl liblinux-inotify2-perl liblocale-gettext-perl libmath-bigint-perl libmount1 libnet-dbus-perl libnet-dns-sec-perl libnet-libidn-perl libnet-ssh2-perl libnet-ssleay-perl libnetaddr-ip-perl
  libossp-uuid-perl libossp-uuid16 libp11-kit0 libpackage-stash-xs-perl libpadwalker-perl libparams-classify-perl libparams-util-perl libposix-strptime-perl libproc-processtable-perl libpve-u2f-server-perl libpython3-stdlib librados2
  libradosstriper1 librbd1 libref-util-xs-perl librgw2 libsasl2-2 libsasl2-modules-db libsnappy1v5 libsocket6-perl libstdc++6 libsub-identify-perl libsub-name-perl libtemplate-perl libterm-readkey-perl libtext-charwidth-perl
  libtext-iconv-perl libuuid-perl libvariable-magic-perl libxdp1 libxml-libxml-perl libxml-parser-perl libxml2 libxstring-perl libyaml-libyaml-perl lxc-pve nmap openssh-client openssh-server openssh-sftp-server perl perl-base python3
  python3-apt python3-ceph-argparse python3-ceph-common python3-cephfs python3-cffi-backend python3-debianbts python3-minimal python3-netifaces python3-openvswitch python3-pkg-resources python3-protobuf python3-pycurl python3-rados
  python3-rbd python3-setuptools python3-systemd python3-yaml
113 upgraded, 66 newly installed, 65 to remove and 662 not upgraded.
31 not fully installed or removed.
Need to get 0 B/141 MB of archives.
After this operation, 228 MB of additional disk space will be used.
Do you want to continue? [Y/n]
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
 
and also the full output of "apt update" and "grep '.*' -r /etc/apt/sources.list /etc/apt/sources.list.d" ?

Code:
root@dvall-prox06:/etc/apt/sources.list.d# apt update
Hit:1 http://security.debian.org trixie-security InRelease
Hit:2 http://download.proxmox.com/debian/ceph-squid trixie InRelease
Hit:3 http://download.proxmox.com/debian/pve trixie InRelease
Hit:4 http://ftp.es.debian.org/debian trixie InRelease
Hit:5 http://ftp.es.debian.org/debian trixie-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
810 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@dvall-prox06:/etc/apt/sources.list.d#

Code:
root@dvall-prox06:/etc/apt/sources.list.d# grep '.*' -r /etc/apt/sources.list /etc/apt/sources.list.d
/etc/apt/sources.list:deb http://ftp.es.debian.org/debian trixie main contrib non-free non-free-firmware
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ftp.es.debian.org/debian trixie-updates main contrib non-free non-free-firmware
/etc/apt/sources.list:
/etc/apt/sources.list:# security updates
/etc/apt/sources.list:deb http://security.debian.org trixie-security main contrib non-free non-free-firmware
/etc/apt/sources.list:
/etc/apt/sources.list.d/pve-enterprise.list.dpkg-dist:deb https://enterprise.proxmox.com/debian/pve trixie pve-enterprise
/etc/apt/sources.list.d/pve-enterprise.list:#deb https://enterprise.proxmox.com/debian/pve trixie pve-enterprise
/etc/apt/sources.list.d/ceph.sources:Types: deb
/etc/apt/sources.list.d/ceph.sources:URIs: http://download.proxmox.com/debian/ceph-squid
/etc/apt/sources.list.d/ceph.sources:Suites: trixie
/etc/apt/sources.list.d/ceph.sources:Components: no-subscription
/etc/apt/sources.list.d/ceph.sources:Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
/etc/apt/sources.list.d/proxmox.sources:Types: deb
/etc/apt/sources.list.d/proxmox.sources:URIs: http://download.proxmox.com/debian/pve
/etc/apt/sources.list.d/proxmox.sources:Suites: trixie
/etc/apt/sources.list.d/proxmox.sources:Components: pve-no-subscription
/etc/apt/sources.list.d/proxmox.sources:Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
/etc/apt/sources.list.d/hp-mcp.list:#deb http://downloads.linux.hpe.com/SDR/repo/mcp trixie/current non-free