Upgrading PVE Tries to Remove proxmox-ve package

It appears that 2 of the Debian repos are missing at your end:
Code:
http://ftp.debian.org/debian bookworm InRelease
http://ftp.debian.org/debian bookworm-updates InRelease
Go to your GUI & select them.
Great! So easy....thank you very much for your help :)
 
You should never run that on a PVE system.
Instead (as shown in the docs) try:
Code:
apt-get update
apt-get dist-upgrade

just to avoid possible confusion:

"apt full-upgrade" and "apt dist-upgrade" and "apt-get dist-upgrade" can all be used to upgrade PVE (or PBS or PMG) systems. there are very subtle differences in semantics, but they should not matter.

the commands which risk breaking a system (mostly in case some relation between package updates was overlooked during packaging work!) or not fully upgrading it are

"apt upgrade" or "apt-get upgrade"

those should not be run!
 
Hi guys,

I read the whole thread, but i'm not still not able to upgrade my Proxmox 7.4.18 to 8...
The apt dist-upgrade command still gives me the "Remove proxmox-ve package" issue:
Code:
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


Here is my Repo configuration:
1722537229999.png

I'm really not sure what I did wrong, and how I can fix it...
It would be amazing if somebody could help...

Thanks a lot guys! :)
 
So have you tried apt remove linux-image-amd64 before the upgrade as per the PVE wiki.
Yup. I just did it again to be sure. But originally I didn't because I didn't install Proxmox on top of Debian (as specified in the wiki), I installed the Proxmos distro directly.

Code:
root@proxmox:~# apt remove linux-image-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'linux-image-amd64' is not installed, so not removed
The following package was automatically installed and is no longer required:
  pve-kernel-5.11.22-5-pve
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 588 not upgraded.


Note: I did not do the apt autoremove, as I am not sure if I should.

And I still have the same problem with apt dist-upgrade :confused:
 
Last edited:
Looking at your repos, I see you've got ceph turned off, turn it back on.
You are right, but he has an old ceph version for bullseye/PVE7.

@GxFalcon Did you install ceph and used it at some point? If you did NOT (in that case you don't have to upgrade ceph), you can just add the ceph reef no-subscription repository. PVE8 needs an active ceph repo.

Code:
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
https://pve.proxmox.com/wiki/Package_Repositories#_ceph_reef_no_subscription_repository
 
After adding the repo & making a apt update, the apt dist-upgrade worked & allowed me to jump to version 8.2.4.

Big thanks guys! :)
 
You are right, but he has an old ceph version for bullseye/PVE7.

@GxFalcon Did you install ceph and used it at some point? If you did NOT (in that case you don't have to upgrade ceph), you can just add the ceph reef no-subscription repository. PVE8 needs an active ceph repo.

Code:
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
https://pve.proxmox.com/wiki/Package_Repositories#_ceph_reef_no_subscription_repository
Thanks guys. This worked for me.
 
PVE8 needs an active ceph repo.
WHAT!!! I am running Quincy just fine on my V7/Ceph cluster, but the upgrade to 8 fails still. I do NOT have a Ceph repo as this is the first time I've even heard about one, Can you add a link to those instructions please; nothing I've read before now has suggested this as a requirement.
 
You are right, but he has an old ceph version for bullseye/PVE7.

@GxFalcon Did you install ceph and used it at some point? If you did NOT (in that case you don't have to upgrade ceph), you can just add the ceph reef no-subscription repository. PVE8 needs an active ceph repo.

Code:
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
https://pve.proxmox.com/wiki/Package_Repositories#_ceph_reef_no_subscription_repository
This was issue on my node PVE 7 to go on PVE 8.
MY debian went on bookworm but PVE gave me the "meta-package proxmox-ve" warning.

I installed Ceph in the past, then uninstall it recently (with method suggested on forums), purged a ton of things, but the repo for ceph was not in source.list anymore.
I added
Code:
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
in my sources list and it worked with apt update + apt full-upgrade.

No more issue then.

Thank you all, fixed.
 
I installed Proxmox 8 via the ISO and am using the pvetest repo

I added
Code:
non-free non-free-firmware
because I think I need that for GPU sharing with containers on AMD:

Code:
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org/debian-security bookworm-security main contrib

The only other source I have enabled are:
Code:
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
deb http://download.proxmox.com/debian/pve bookworm pvetest

When I run `apt install firmware-amd-graphics` I get

Code:
# apt install firmware-amd-graphics

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-default-kernel proxmox-kernel-6.8 proxmox-ve pve-firmware
The following NEW packages will be installed:
  firmware-amd-graphics
0 upgraded, 1 newly installed, 4 to remove and 0 not upgraded.
Need to get 0 B/11.9 MB of archives.
After this operation, 306 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
Any ideas?
 
Last edited:
are you actually missing a firmware file? because:

Code:
$ dpkg -L pve-firmware | grep amdgpu | wc -l
595

we already ship pretty much all of firmware-amd-graphics in our firmware package, which is why ours conflicts with the stock Debian one..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!