During an update from Proxmox 7 to 8 I had some problems during the update of Ceph. When running apt full-upgrade it suggested removing proxmox-ve which in turn would pretty much remove the function of the virtualised environment.
The error
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
Solution
In my case, it turned out that I was missing a correct reference in my apt sources AND that I needed to clean the apt cache before continuing.
Ensure that /etc/apt/sources.list contain the correct version of pve.
In the current case
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
If you are running an enterprise version you will find this in /etc/apt/sources.list.d/pve-enterprise.list
Since I'm using Ceph this file also had to be configured (/etc/apt/sources.list.d/ceph.list).
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
When saved, enter
apt clean apt update apt full-upgrade -y
One of the most important pieces of the above commands is to clean the caches. This wouldn't work for me if I didn't.
Good luck.