Upgrading PVE Tries to Remove proxmox-ve package

The reason and fix that worked for me :
I had Ceph Quincy (17.2.x) Python libs installed from bullseye backports.
Old Ceph (Quincy, bullseye) + Python < 3.10 requirement
→ conflicts with Bookworm Python 3.11
→ APT tries to drop ceph-common
→ which would drop pve-manager / pve-qemu-kvm
→ which would drop proxmox-ve (blocked by hook)
Fixing repo to Ceph Reef for Bookworm makes all deps satisfiable → upgrade proceeds cleanly.

FIX:

# fix the Ceph repo line
cat >/etc/apt/sources.list.d/ceph.list <<'EOF'
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
EOF


apt update
apt dist-upgrade
apt-cache policy ceph-common python3-rados python3-rbd python3-rgw python3-cephfs
 
Last edited:
am experiencing this wonderful classic, Upgrading PVE Tries to Remove proxmox-ve package
going from 8.4.21/bookworm to 9/trixie, no ceph, no subscription, no zfs boot (md boot, images in zfs), pve had been installed over the bookworm install
tried the apt remove linux-image-amd64 hack to no avail Package ’Package ‘linux-image-amd64’ is not installed, so not removed
tried
Code:
rm -rf /var/lib/apt/lists/*
apt clean
apt update
no love
a second test cluster successfully upgraded once i did the apt remove linux-image-amd64hack
 
Last edited:
please post:
- apt update
- apt-cache policy
- apt full-upgrade

the last one up to the "y/n" prompt ;)
 
Here apt update removes proxmox-backup-server. Seems to be the proxmox-mail-forward Package at Version 1.2.0. After downgrading to 1.1.0 Package Dependencies resolve and proxmox-backup-server can be (re)installed.


With proxmox-mail-forward Package at Version 1.2.0.
Code:
# apt -o Debug::pkgProblemResolver=yes install proxmox-backup-server=4.2.4-1
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) proxmox-mail-forward:amd64 < 1.2.0 @ii mK Ib >
Broken proxmox-mail-forward:amd64 Breaks on proxmox-backup-server:amd64 < none -> 4.2.4-1 @rc puN > (< 4.2.14-1)
  Conflicts//Breaks against version 4.2.12-1 for proxmox-backup-server but that is not InstVer, ignoring
  Conflicts//Breaks against version 4.2.11-1 for proxmox-backup-server but that is not InstVer, ignoring
  Conflicts//Breaks against version 4.2.10-1 for proxmox-backup-server but that is not InstVer, ignoring
  Conflicts//Breaks against version 4.2.9-1 for proxmox-backup-server but that is not InstVer, ignoring
  Conflicts//Breaks against version 4.2.8-1 for proxmox-backup-server but that is not InstVer, ignoring
  Conflicts//Breaks against version 4.2.7-1 for proxmox-backup-server but that is not InstVer, ignoring
  Conflicts//Breaks against version 4.2.6-1 for proxmox-backup-server but that is not InstVer, ignoring
  Conflicts//Breaks against version 4.2.5-1 for proxmox-backup-server but that is not InstVer, ignoring
  Considering proxmox-backup-server:amd64 9998 as a solution to proxmox-mail-forward:amd64 3
  Removing proxmox-mail-forward:amd64 rather than change proxmox-backup-server:amd64
Investigating (0) pve-manager:amd64 < 9.2.32 @ii mK Ib >
Broken pve-manager:amd64 Depends on proxmox-mail-forward:amd64 < 1.2.0 @ii mR > (>= 1.1.0)
  Considering proxmox-mail-forward:amd64 3 as a solution to pve-manager:amd64 2
  Removing pve-manager:amd64 rather than change proxmox-mail-forward:amd64
Investigating (1) proxmox-ve:amd64 < 9.2.0 @ii mK Ib >
Broken proxmox-ve:amd64 Depends on pve-manager:amd64 < 9.2.32 @ii mR > (>= 9.0~)
  Considering pve-manager:amd64 2 as a solution to proxmox-ve:amd64 2
  Removing proxmox-ve:amd64 rather than change pve-manager:amd64
 
that can only happen if you misconfigured your repositories - for example, mixing PVE no-sub and PBS enterprise.. or manual pinning..
 
unable to upgrade on fresh install proxmox 9.2.2...

Code:
apt update
Hit:1 http://download.proxmox.com/debian/pve trixie InRelease
20 packages can be upgraded. Run 'apt list --upgradable' to see them.

apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://download.proxmox.com/debian/pve trixie/pve-no-subscription amd64 Packages
     release o=Proxmox,a=stable,n=trixie,l=Proxmox Debian Repository,c=pve-no-subscription,b=amd64
     origin download.proxmox.com
Pinned packages:

apt full-upgrade
Upgrading:                       
  libproxmox-acme-perl   libpve-cluster-api-perl  libpve-common-perl   proxmox-mail-forward
  libpve-access-control  libpve-cluster-perl      libpve-storage-perl

Not upgrading:
  libproxmox-rs-perl  libpve-guest-common-perl  libpve-network-api-perl  libpve-network-perl  libpve-rs-perl  librrds-perl  pve-cluster  pve-firewall

REMOVING:
  libpve-notify-perl  proxmox-ve  pve-container  pve-ha-manager  pve-manager  qemu-server

Summary:
  Upgrading: 7, Installing: 0, Removing: 6, Not Upgrading: 8
  Download size: 1,218 kB
  Freed space: 9,666 kB

Continue? [Y/n] ^C
root@pve1:~#
 
you are missing the Debian Trixie repository
 
that can only happen if you misconfigured your repositories - for example, mixing PVE no-sub and PBS enterprise.. or manual pinning..
You're right. Mixed PBS Subsciption with PVE No-Subscription.
On this Server PBS is in Production, PVE only for Tests (maybe Emergency).

This happens very infrequently. So to overcome this we have to buy an PVE-Subscription. Right?
 
You're right. Mixed PBS Subsciption with PVE No-Subscription.
On this Server PBS is in Production, PVE only for Tests (maybe Emergency).

This happens very infrequently. So to overcome this we have to buy an PVE-Subscription. Right?
yes.
 
please post:
- apt update
- apt-cache policy
- apt full-upgrade

the last one up to the "y/n" prompt ;)
Code:
vm0.pdx.rg.net:/home/randy> sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease               
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease 
Hit:4 https://deb.debian.org/debian trixie InRelease                         
Hit:5 https://security.debian.org/debian-security trixie-security InRelease 
Hit:6 https://deb.debian.org/debian trixie-updates InRelease                 
Hit:7 http://download.proxmox.com/debian/pve trixie InRelease
Reading package lists... Done       
Building dependency tree... Done
Reading state information... Done
202 packages can be upgraded. Run 'apt list --upgradable' to see them.

vm0.pdx.rg.net:/home/randy> sudo apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://download.proxmox.com/debian/pve trixie/pve-no-subscription amd64 Packages
     release o=Proxmox,a=stable,n=trixie,l=Proxmox Debian Repository,c=pve-no-subscription,b=amd64
     origin download.proxmox.com
 500 https://security.debian.org/debian-security trixie-security/non-free-firmware amd64 Packages
     release v=13,o=Debian,a=stable-security,n=trixie-security,l=Debian-Security,c=non-free-firmware,b=amd64
     origin security.debian.org
 500 https://security.debian.org/debian-security trixie-security/main amd64 Packages
     release v=13,o=Debian,a=stable-security,n=trixie-security,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 https://deb.debian.org/debian trixie-updates/main amd64 Packages
     release v=13-updates,o=Debian,a=stable-updates,n=trixie-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 https://deb.debian.org/debian trixie/non-free-firmware amd64 Packages
     release v=13.8,o=Debian,a=stable,n=trixie,l=Debian,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 https://deb.debian.org/debian trixie/main amd64 Packages
     release v=13.8,o=Debian,a=stable,n=trixie,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm-updates/main amd64 Packages
     release v=12-updates,o=Debian,a=oldstable-updates,n=bookworm-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm/non-free-firmware amd64 Packages
     release v=12.15,o=Debian,a=oldstable,n=bookworm,l=Debian,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm/main amd64 Packages
     release v=12.15,o=Debian,a=oldstable,n=bookworm,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:

vm0.pdx.rg.net:/home/randy> sudo apt full-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:
  attr ceph-fuse cifs-utils conntrack corosync cpp-12 criu cstream dmeventd
  dtach ebtables faketime fontconfig fontconfig-config fonts-dejavu-core
  fonts-dejavu-mono fonts-font-awesome fonts-font-logos gcc-12 gdisk
  genisoimage glusterfs-client glusterfs-common hdparm ipset iptables libaio1
  libaio1t64 libanyevent-http-perl libanyevent-perl libappconfig-perl
  libapt-pkg-perl libasyncns0 libauthen-pam-perl libavahi-client3
  libavahi-common-data libavahi-common3 libbabeltrace1 libboost-context1.74.0
  libboost-filesystem1.74.0 libboost-iostreams1.74.0
  libboost-program-options1.74.0 libboost-thread1.74.0 libcairo2 libcbor0.8
  libcephfs2 libcfg7 libcmap4 libcompel1 libcorosync-common4 libcpg4
  libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl
  libcrypt-openssl-rsa-perl libdatrie1 libdbi1t64 libdevel-cycle-perl
  libdevmapper-event1.02.1 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm2
  libepoxy0 libfaketime libfdt1 libfile-chdir-perl libfile-readbackwards-perl
  libfilesys-df-perl libflac12 libflac14 libfmt9 libfontconfig1 libfuse2t64
  libfuse3-3 libgbm1 libgcc-12-dev libgfapi0 libgfchangelog0 libgfrpc0
  libgfxdr0 libglusterd0 libglusterfs0 libgoogle-perftools4 libgraphite2-3
  libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libharfbuzz0b libibverbs1
  libicu72 libinih1 libio-multiplex-perl libio-stringy-perl libip6tc2
  libipset13t64 libiscsi7 libjpeg62-turbo libjs-bootstrap5 libjs-extjs
  libjs-qrcodejs libjs-sencha-touch libjson-glib-1.0-0 libjson-glib-1.0-common
  libknet1t64 libldap-2.5-0 libldb2 liblinux-inotify2-perl libllvm19
  liblttng-ust-common1t64 liblttng-ust-ctl5t64 liblttng-ust1t64 liblua5.3-0
  liblvm2cmd2.03 liblzo2-2 libmp3lame0 libmpg123-0t64 libnbd0 libncurses6
  libnet-dbus-perl libnet-dns-perl libnet-ip-perl libnet-subnet-perl libnet1
  libnetaddr-ip-perl libnetfilter-conntrack3 libnetfilter-log1 libnfnetlink0
  libnl-3-200 libnl-route-3-200 libnozzle1t64 libnspr4 libnss3 libnuma1
  libogg0 libopus0 liborc-0.4-0t64 libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libpciaccess0 libperl5.36 libpixman-1-0
  libposix-strptime-perl libprotobuf32t64 libproxmox-acme-perl
  libproxmox-acme-plugins libproxmox-backup-qemu0 libproxmox-rs-perl libpulse0
  libpve-access-control libpve-apiclient-perl libpve-cluster-api-perl
  libpve-cluster-perl libpve-common-perl libpve-http-server-perl
  libpve-network-api-perl libpve-network-perl libpve-notify-perl
  libpve-rs-perl libpve-u2f-server-perl libpython3.11 libpython3.11-minimal
  libpython3.11-stdlib libqb-tools libqb100 libquorum5 librabbitmq4 librados2
  librados2-perl libradosstriper1 librbd1 librdmacm1t64 librrd8t64
  librrds-perl libslirp0 libsmbclient0 libsndfile1 libspice-server1
  libstatgrab10t64 libstring-shellquote-perl libsubid5 libtalloc2
  libtcmalloc-minimal4 libtdb1 libtemplate-perl libtevent0t64 libthai-data
  libthai0 libtpms0 libu2f-server0 libunwind8 liburing2 libuuid-perl
  libva-drm2 libva2 libvirglrenderer1 libvorbis0a libvorbisenc2 libvotequorum8
  libvulkan1 libwayland-server0 libwbclient0 libx11-xcb1 libxcb-dri3-0
  libxcb-present0 libxcb-randr0 libxcb-render0 libxcb-shm0 libxcb-sync1
  libxcb-xfixes0 libxml-libxml-perl libxml-twig-perl libxrender1 libxshmfence1
  libxslt1.1 libyaml-0-2 libyaml-libyaml-perl libz3-4 libzpool5linux
  linux-compiler-gcc-12-x86 linux-headers-6.1.0-56-amd64
  linux-headers-6.1.0-56-common linux-kbuild-6.1 lvm2 lxc-pve lxcfs lzop
  mesa-libgallium node-popper2 novnc-pve perl-modules-5.36
  proxmox-archive-keyring proxmox-backup-client proxmox-backup-file-restore
  proxmox-firewall-data proxmox-kernel-helper proxmox-mail-forward
  proxmox-mini-journalreader proxmox-termproxy proxmox-websocket-tunnel
  proxmox-widget-toolkit pve-cluster pve-docs pve-edk2-firmware-legacy
  pve-edk2-firmware-ovmf pve-firewall pve-i18n pve-lxc-syscalld
  pve-notify-worker pve-xtermjs python3-ceph-argparse python3-ceph-common
  python3-cephfs python3-jwt python3-pefile python3-prettytable
  python3-protobuf python3-rados python3-virt-firmware python3-wcwidth
  python3-yaml python3.11 python3.11-minimal qrencode rrdcached samba-common
  samba-libs smbclient socat sqlite3 swtpm swtpm-libs swtpm-tools
  thin-provisioning-tools uidmap vncterm xfsprogs xsltproc
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  ceph-common libarchive13 libasound2 libcurl3-gnutls libcurl4 libdb5.3
  libdbi1 libdw1 libefiboot1 libefivar1 libelf1 libevent-2.1-7
  libevent-core-2.1-7 libext2fs2 libfuse2 libgdbm-compat4 libgdbm6
  libglib2.0-0 libgnutls-dane0 libgnutls30 libhogweed6 libipset13 libisns0
  libknet1 libmagic1 libmpg123-0 libnettle8 libnozzle1 liboath0 liborc-0.4-0
  libpcap0.8 libpng16-16 libprotobuf32 libpsl5 libpve-guest-common-perl
  libpve-storage-perl librdmacm1 libreadline8 librrd8 libsmbclient libsnmp40
  libssh2-1 libssl3 libstatgrab10 libtevent0 libtirpc3 liburcu8
  libusbredirparser1 libuv1 libzfs4linux proxmox-ve pve-container
  pve-ha-manager pve-manager pve-qemu-kvm python3-distutils python3-lib2to3
  python3-rbd qemu-server spiceterm
The following NEW packages will be installed:
  conntrack dracut-install grub-efi-amd64-unsigned initramfs-tools-bin
  libapt-pkg7.0 libarchive13t64 libasound2t64 libcbor0.10 libcompel1
  libcurl4t64 libdb5.3t64 libdbi1t64 libdrm-amdgpu1 libdrm-intel1 libdw1t64
  libefiboot1t64 libefivar1t64 libelf1t64 libevent-2.1-7t64
  libevent-core-2.1-7t64 libext2fs2t64 libflac14 libfuse2t64
  libgdbm-compat4t64 libgdbm6t64 libglib2.0-0t64 libgnutls-dane0t64
  libgnutls30t64 libhiredis1.1.0 libhogweed6t64 libicu76 libipset13t64
  libisns0t64 libknet1t64 libldap2 libllvm19 liblsof0 liblttng-ust-common1t64
  liblttng-ust-ctl5t64 liblttng-ust1t64 libmagic1t64 libmpg123-0t64 libnbd0
  libnettle8t64 libnghttp3-9 libnozzle1t64 liborc-0.4-0t64 libpcap0.8t64
  libpciaccess0 libperl5.40 libpng16-16t64 libprotobuf32t64 libpsl5t64
  libpython3.13 libpython3.13-minimal libpython3.13-stdlib librdmacm1t64
  libreadline8t64 librrd8t64 libsmbclient0 libsnmp40t64 libssh2-1t64
  libssl3t64 libstatgrab10t64 libtevent0t64 libtirpc3t64 libtlsrpt0
  libtree-sitter0.22 liburcu8t64 libuv1t64 libwtmpdb0 libxcb-dri3-0
  libxcb-present0 libxcb-randr0 libxcb-sync1 libxcb-xfixes0 libxshmfence1
  libz3-4 libzfs7linux libzpool7linux linux-headers-6.12.118+deb13-amd64
  linux-headers-6.12.118+deb13-common linux-image-6.12.118+deb13-amd64
  linux-kbuild-6.12.118+deb13 mesa-libgallium openssl-provider-legacy pahole
  perl-modules-5.40 proxmox-firewall-data pve-notify-worker python3-bcrypt
  python3.13 python3.13-minimal shared-mime-info sqv
The following packages will be upgraded:
  apt apt-utils bind9-dnsutils bind9-host bind9-libs bsdutils ceph-fuse chrony
  coreutils corosync criu curl e2fsprogs efibootmgr emacs-bin-common
  emacs-common emacs-el emacs-nox fdisk file genisoimage glusterfs-client
  glusterfs-common gnutls-bin grub-common grub-efi-amd64 grub-efi-amd64-bin
  grub-efi-amd64-signed grub2-common initramfs-tools initramfs-tools-core
  ipmitool iproute2 ipset kmod libanyevent-perl libapt-pkg-perl
  libauthen-pam-perl libbabeltrace1 libbpf1 libcairo2 libcephfs2 libclone-perl
  libcommon-sense-perl libcrypt-openssl-bignum-perl
  libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl
  libcryptsetup12 libfido2-1 libfilesys-df-perl libfreetype6 libgbm1 libgfapi0
  libgfchangelog0 libgfrpc0 libgfxdr0 libglusterfs0 libgssapi-krb5-2
  libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libharfbuzz0b
  libhtml-parser-perl libiscsi7 libjson-glib-1.0-0 libjson-xs-perl
  libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 libldb2
  liblinux-inotify2-perl liblocale-gettext-perl libmagic-mgc libnet-dbus-perl
  libnet-ssleay-perl libnetaddr-ip-perl libnfsidmap1 libnsl2 libnss-systemd
  libnvpair3linux libpam-modules libpam-modules-bin libpam-runtime
  libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0
  libposix-strptime-perl libproxmox-acme-perl libproxmox-backup-qemu0
  libproxmox-rs-perl libpve-access-control libpve-cluster-api-perl
  libpve-cluster-perl libpve-common-perl libpve-network-api-perl
  libpve-network-perl libpve-notify-perl libpve-rs-perl libpve-u2f-server-perl
  libpython3-stdlib librabbitmq4 librados2 librados2-perl libradosstriper1
  librbd1 librrds-perl librtmp1 libsasl2-2 libsasl2-modules
  libsasl2-modules-db libslirp0 libsndfile1 libsocket6-perl libspice-server1
  libsqlite3-0 libsystemd-shared libsystemd0 libtemplate-perl
  libterm-readline-gnu-perl libtext-charwidth-perl libtext-iconv-perl libtpms0
  libu2f-server0 libudev1 libunbound8 libuuid-perl libxml-libxml-perl
  libxml-parser-perl libyaml-libyaml-perl linux-headers-amd64 lsof man-db
  mokutil nfs-common open-iscsi openssh-client openssh-server
  openssh-sftp-server openssl perl perl-base perl-openssl-defaults postfix
  procps proxmox-backup-client proxmox-backup-file-restore
  proxmox-mail-forward proxmox-websocket-tunnel pve-cluster pve-firewall
  pve-lxc-syscalld python3 python3-apt python3-ceph-argparse
  python3-ceph-common python3-cephfs python3-cffi-backend
  python3-charset-normalizer python3-cryptography python3-dbus python3-minimal
  python3-protobuf python3-rados python3-systemd python3-yaml qrencode rpcbind
  rrdcached rsync samba-common samba-libs smbclient snmpd socat sqlite3 sudo
  swtpm swtpm-libs swtpm-tools systemd systemd-sysv tcpdump udev unbound
  unbound-anchor vncterm wget xfsprogs zfsutils-linux
191 upgraded, 95 newly installed, 60 to remove and 0 not upgraded.
Need to get 0 B/382 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue? [Y/n]
and dpkg -l shows
Code:
un  linux-image-amd64                   <none>       <none>       (no description available)
 
Last edited: