Update error :: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!

What can I say, I have the same problem and it looks like there is no workable solution yet.
Yes there are different workable solutions :
- 1 : wait a day or two if you have some prod or important servers and don't want to tinker, AFAIK there is no urge to upgrade those packages waiting (EDIT except maybe "libarchive13" that is from debian's "stable-security" repo, that _maybe_ can be upgraded "alone", not tested by myself)
- 2 : the thread I mentionned above have 2 solutions each with at least 2 variations and most are confirmed to work by community members at least, just be aware that some have side effect on what package is not upgraded ...

EDIT : typo + mention of "libarchive13" package
 
Last edited:
Same issue.
I enabled pve-test, updated and then switched it off again. I did on two nodes. No issues.
 
Code:
root@pve1:~# 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:
  fonts-font-logos libjs-sencha-touch proxmox-default-kernel
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  proxmox-ve pve-manager
The following NEW packages will be installed:
  proxmox-kernel-6.8.8-1-pve-signed
The following packages have been kept back:
  pve-container
The following packages will be upgraded:
  libpve-cluster-api-perl libpve-cluster-perl libpve-notify-perl libpve-rs-perl proxmox-kernel-6.8
5 upgraded, 1 newly installed, 2 to remove and 1 not upgraded.
Need to get 0 B/106 MB of archives.
After this operation, 575 MB of additional disk space will be used.
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
root@pve1:~# touch /please-remove-proxmox-ve
root@pve1:~# apt list --upgradeable
Listing... Done
libpve-cluster-api-perl/stable 8.0.7 all [upgradable from: 8.0.6]
libpve-cluster-perl/stable 8.0.7 all [upgradable from: 8.0.6]
libpve-notify-perl/stable 8.0.7 all [upgradable from: 8.0.6]
libpve-rs-perl/stable 0.8.9 amd64 [upgradable from: 0.8.8]
proxmox-kernel-6.8/stable 6.8.8-1 all [upgradable from: 6.8.4-3]
pve-container/stable 5.1.11 all [upgradable from: 5.1.10]
pve-manager/stable 8.2.4 amd64 [upgradable from: 8.2.2]
root@pve1:~# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libpve-cluster-api-perl libpve-cluster-perl libpve-notify-perl libpve-rs-perl proxmox-kernel-6.8
  pve-container pve-manager
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
root@pve1:~# apt-get install libpve-cluster-api-perl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-font-logos libjs-sencha-touch proxmox-default-kernel
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libpve-cluster-perl libpve-notify-perl libpve-rs-perl
The following packages will be REMOVED:
  proxmox-ve pve-manager
The following packages will be upgraded:
  libpve-cluster-api-perl libpve-cluster-perl libpve-notify-perl libpve-rs-perl
4 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
Need to get 0 B/2,430 kB of archives.
After this operation, 2,862 kB disk space will be freed.
Do you want to continue? [Y/n]
W: (pve-apt-hook) '/please-remove-proxmox-ve' exists, proceeding with removal of package 'proxmox-ve'
Reading changelogs... Done
(Reading database ... 59575 files and directories currently installed.)
Removing proxmox-ve (8.2.0) ...
Removing pve-manager (8.2.2) ...
(Reading database ... 59334 files and directories currently installed.)
Preparing to unpack .../libpve-notify-perl_8.0.7_all.deb ...
Unpacking libpve-notify-perl (8.0.7) over (8.0.6) ...
Preparing to unpack .../libpve-rs-perl_0.8.9_amd64.deb ...
Unpacking libpve-rs-perl (0.8.9) over (0.8.8) ...
Preparing to unpack .../libpve-cluster-api-perl_8.0.7_all.deb ...
Unpacking libpve-cluster-api-perl (8.0.7) over (8.0.6) ...
Preparing to unpack .../libpve-cluster-perl_8.0.7_all.deb ...
Unpacking libpve-cluster-perl (8.0.7) over (8.0.6) ...
Setting up libpve-rs-perl (0.8.9) ...
Setting up libpve-cluster-perl (8.0.7) ...
Setting up libpve-cluster-api-perl (8.0.7) ...
Setting up libpve-notify-perl (8.0.7) ...
Processing triggers for pve-ha-manager (4.0.5) ...
Processing triggers for man-db (2.11.2-2) ...
root@pve1:~# apt list --upgradeable
Listing... Done
proxmox-kernel-6.8/stable 6.8.8-1 all [upgradable from: 6.8.4-3]
pve-container/stable 5.1.11 all [upgradable from: 5.1.10]
root@pve1:~# apt-get 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:
  fonts-font-logos libjs-sencha-touch proxmox-default-kernel
Use 'apt autoremove' to remove them.
The following packages have been kept back:
  proxmox-kernel-6.8 pve-container
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@pve1:~# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  fonts-font-logos libjs-sencha-touch proxmox-default-kernel
0 upgraded, 0 newly installed, 3 to remove and 2 not upgraded.
After this operation, 8,084 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 59331 files and directories currently installed.)
Removing fonts-font-logos (1.0.1-3) ...
Removing libjs-sencha-touch (2.4.2-1) ...
Removing proxmox-default-kernel (1.1.0) ...
root@pve1:~# apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Del libc6 2.36-9+deb12u6 [2,753 kB]
Del locales 2.36-9+deb12u6 [3,902 kB]
Del libc-bin 2.36-9+deb12u6 [607 kB]
Del libc-l10n 2.36-9+deb12u6 [675 kB]
root@pve1:~# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  proxmox-kernel-6.8 pve-container
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@pve1:~# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  proxmox-kernel-6.8.8-1-pve-signed
The following packages have been kept back:
  pve-container
The following packages will be upgraded:
  proxmox-kernel-6.8
1 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/103 MB of archives.
After this operation, 578 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
Selecting previously unselected package proxmox-kernel-6.8.8-1-pve-signed.
(Reading database ... 58940 files and directories currently installed.)
Preparing to unpack .../proxmox-kernel-6.8.8-1-pve-signed_6.8.8-1_amd64.deb ...
Unpacking proxmox-kernel-6.8.8-1-pve-signed (6.8.8-1) ...
Preparing to unpack .../proxmox-kernel-6.8_6.8.8-1_all.deb ...
Unpacking proxmox-kernel-6.8 (6.8.8-1) over (6.8.4-3) ...
Setting up proxmox-kernel-6.8.8-1-pve-signed (6.8.8-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.8-1-pve /boot/vmlinuz-6.8.8-1-pve
update-initramfs: Generating /boot/initrd.img-6.8.8-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 6.8.8-1-pve /boot/vmlinuz-6.8.8-1-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 6.8.8-1-pve /boot/vmlinuz-6.8.8-1-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 6.8.8-1-pve /boot/vmlinuz-6.8.8-1-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.8-1-pve
Found initrd image: /boot/initrd.img-6.8.8-1-pve
Found linux image: /boot/vmlinuz-6.8.4-3-pve
Found initrd image: /boot/initrd.img-6.8.4-3-pve
Found linux image: /boot/vmlinuz-6.8.4-2-pve
Found initrd image: /boot/initrd.img-6.8.4-2-pve
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
done
Setting up proxmox-kernel-6.8 (6.8.8-1) ...
root@pve1:~# apt-get update
Hit:1 http://download.proxmox.com/debian/pve bookworm InRelease                                           
Hit:2 http://ftp.debian.org/debian bookworm InRelease                                                     
Hit:3 http://security.debian.org bookworm-security InRelease                       
Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
root@pve1:~#


I am trying to upgrade cluster-perl,then full-upgrade success.
but the pve web is broken.
 
Please keep in mind enabling the "test" repo and doing update + dist-upgrade without other action will also jump your Qemu from v8.1.5 to v9, which is not in the "no-sub" repo at this time.

This could impact some VM's ...
 
  • Like
Reactions: Taylan
Please keep in mind enabling the "test" repo and doing update + dist-upgrade without other action will also jump your Qemu from v8.1.5 to v9, which is not in the "no-sub" repo at this time.

This could impact some VM's ...
i enable “test” repo and manual update except qemu
 
t seems that Proxmox has solved it in the meantime. I was able to upgrade my demo environment as usual. The message about uninstalling proxmox-ve no longer appeared.
 
Solved at repo side, do apt update && apt dist-upgrade and you're good to go. No need to enable test repo or any other shenanigans, just plain old patience. This ain't Arch in the end, you really do not have to have the system updated 27 times a day ^^
 

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!