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?