Upgrading PVE Tries to Remove proxmox-ve package

in /etc/default/grub and then ran update-grub to commit the changes to the boot config file.
Are you sure your system is actually using GRUB? See here to determine which bootloader is being used. For instance UEFI Systems installed with ZFS as the root filesystem do not use GRUB.
 
Are you sure your system is actually using GRUB? See here to determine which bootloader is being used. For instance UEFI Systems installed with ZFS as the root filesystem do not use GRUB.
ok thought is was still running grub and not systemd-boot. yep adding it to the entries file for systemd-boot resolves the issue. One issue though, unless there's a way to include that as a default value, it'll be required to manually add that every time a default kernel is changed (which includes installing new kernel versions).
 
One issue though, unless there's a way to include that as a default value
AFAIK assuming you followed the guidance of the official docs here, for "Editing the Kernel Commandline in Systemd-boot", your changes should persist.

Please also note, one can only hope that your issue/s will be corrected in future kernel updates, thus negating the necessity for you Commandline changes.
 
  • Like
Reactions: yuri1312
A GIANT THANK YOU to the Proxmox developers for the warning! It's scary to even think about the consequences...
another giant thank you. the solution (edit: to have to create a non-standard file for removal of the proxmox-ve package) also is very elegant. proxmox rocks.
 
Last edited:
Rafael thank for replay. but still I am getting error after apt-get install proxmox-ve and reboot

root@pve:~# apt-get install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
fonts-font-logos libjs-sencha-touch proxmox-default-kernel proxmox-firewall proxmox-kernel-helper
proxmox-mail-forward proxmox-offline-mirror-docs proxmox-offline-mirror-helper pve-container pve-manager
Suggested packages:
systemd-boot
The following packages will be REMOVED:
pve-kernel-5.15.30-2-pve
The following NEW packages will be installed:
fonts-font-logos libjs-sencha-touch proxmox-default-kernel proxmox-firewall proxmox-kernel-helper
proxmox-mail-forward proxmox-offline-mirror-docs proxmox-offline-mirror-helper proxmox-ve pve-manager
The following packages will be upgraded:
pve-container
1 upgraded, 10 newly installed, 1 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,880 kB of archives.
After this operation, 354 MB disk space will be freed.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 73713 files and directories currently installed.)
Removing pve-kernel-5.15.30-2-pve (5.15.30-3) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.15.30-2-pve /boot/vmlinuz-5.15.30-2-pve
update-initramfs: Deleting /boot/initrd.img-5.15.30-2-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.15.30-2-pve /boot/vmlinuz-5.15.30-2-pve
/etc/kernel/postrm.d/proxmox-auto-removal: 4: .: cannot open /usr/share/proxmox-kernel-helper/scripts/functions: No such file
run-parts: /etc/kernel/postrm.d/proxmox-auto-removal exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.15.30-2-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.15.30-2-pve (--remove):
installed pve-kernel-5.15.30-2-pve package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
pve-kernel-5.15.30-2-pve
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

And still I can't access http://server-pve:8006
I have Solved.

I have rename all files in /etc/kernel/postrm.d/

mv initramfs-tools initramfs-tools.bak
mv proxmox-auto-removal proxmox-auto-removal.bak
mv zz-proxmox-boot zz-proxmox-boot.bak
mv zz-update-grub zz-update-grub.bak


then
apt update
apt purge grub-common
apt install grub-pc
apt upgrade


Rename files in /etc/kernel/postrm.d/ to it original name
mv initramfs-tools.bak initramfs-tools
mv proxmox-auto-removal.bak proxmox-auto-removal
mv zz-proxmox-boot.bak zz-proxmox-boot
mv zz-update-grub.bak zz-update-grub

then install


apt install pve-kernel-helper
apt install pve-manager


after that no error.

and the web link worked http://server-pve:8006
 
Just tried the first half on one of my non important machines to test while I leave my production machines for a fix. It worked without any issues. I'll report back on the second half once the issues have been fixed.

I was able to update the system that I held packages on and now Proxmox is running the latest/fixed version from the no subscription repo.
 
Yesterday: apt-mark unhold proxmox-ve pve-manager
Today: apt-mark unhold proxmox-ve pve-manager
Then I ran the "Upgrade" via GUI, no more problems, no subscription repo.
 
3 x Mac mini 2018's each with a thunderbolt-connected QNAP QNA-T310G1S - no issues upgrading to 6.8.8 (thankfully)
 
I picked the wrong day to upgrade. Luckily, it was a secondary home cold storage machine.

I started with an upgrade from 7.4 to 8.2 and it killed the host. (I was stupid and selected to uninstall pve :()
I did a fresh install from usb to the host, and still had the error on updates to remove pve

Here's what worked for me:

First: I did the first part of the hold reply:
Code:
apt-mark hold proxmox-ve pve-manager
apt update

Second:
Code:
apt dist-upgrade

Updates installed.

Third, the wget reply:

Code:
wget http://download.proxmox.com/debian/pve/dists/bookworm/pvetest/binary-amd64/proxmox-backup-client_3.2.5-1_amd64.deb
dpkg -i proxmox-backup-client_3.2.5-1_amd64.deb


Fourth, the "unhold":

Code:
apt-mark unhold proxmox-ve pve-manager

Finally:

Code:
apt update
apt dist-upgrade


Everything is working on the fresh install now. I also have a vm up and running.
 
  • Like
Reactions: forsalebypwner
Complete noob here - have been following this thread for a few days now after trying this update and have gone from no access through GUI to at least having access and VM now running but still can't resolve upgrade issues / keep getting dependency problems on packages.

Have tried numerous solution as listed here but to no avail. Can anyone offer any further assistance please.

root@GND:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 not fully installed or removed.
Need to get 0 B/103 MB of archives.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on proxmox-kernel-helper (>= 8.0.3); however:
Package proxmox-kernel-helper is not installed.

dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
proxmox-kernel-6.8 depends on proxmox-kernel-6.8.8-1-pve-signed | proxmox-kernel-6.8.8-1-pve; however:
Package proxmox-kernel-6.8.8-1-pve-signed is not installed.
Package proxmox-kernel-6.8.8-1-pve is not installed.
Package proxmox-kernel-6.8.8-1-pve-signed which provides proxmox-kernel-6.8.8-1-pve is not installed.

dpkg: error processing package proxmox-kernel-6.8 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
proxmox-default-kernel depends on proxmox-kernel-6.8; however:
Package proxmox-kernel-6.8 is not configured yet.

dpkg: error processing package proxmox-default-kernel (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.8.4-3-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
proxmox-ve
proxmox-kernel-6.8
proxmox-default-kernel
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Seems similar to this.


Edit: Searching around I've found on an Arch Linux forum site what appears to be the same Thunderbolt issue.
According to the advice given there adding the kernel parameter thunderbolt.host_reset=false appears to fix the issue.
Where do you add this parameter?
 
Complete noob here - have been following this thread for a few days now after trying this update and have gone from no access through GUI to at least having access and VM now running but still can't resolve upgrade issues / keep getting dependency problems on packages.

Have tried numerous solution as listed here but to no avail. Can anyone offer any further assistance please.

root@GND:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 not fully installed or removed.
Need to get 0 B/103 MB of archives.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on proxmox-kernel-helper (>= 8.0.3); however:
Package proxmox-kernel-helper is not installed.

dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
proxmox-kernel-6.8 depends on proxmox-kernel-6.8.8-1-pve-signed | proxmox-kernel-6.8.8-1-pve; however:
Package proxmox-kernel-6.8.8-1-pve-signed is not installed.
Package proxmox-kernel-6.8.8-1-pve is not installed.
Package proxmox-kernel-6.8.8-1-pve-signed which provides proxmox-kernel-6.8.8-1-pve is not installed.

dpkg: error processing package proxmox-kernel-6.8 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
proxmox-default-kernel depends on proxmox-kernel-6.8; however:
Package proxmox-kernel-6.8 is not configured yet.

dpkg: error processing package proxmox-default-kernel (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.8.4-3-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
proxmox-ve
proxmox-kernel-6.8
proxmox-default-kernel
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

that sounds like you did a partial remove of PVE - it might be best to open a new thread and post all the output there!
 
I tried the upgrade as stated in this post and now I am in the following situation. What is better to do now?

root@pve:~# 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 proxmox-default-kernel proxmox-firewall
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
libpve-notify-perl proxmox-ve pve-container pve-ha-manager pve-manager qemu-server
The following packages have been kept back:
libpve-rs-perl openssh-client openssh-server openssh-sftp-server pve-cluster ssh
The following packages will be upgraded:
libpve-cluster-api-perl libpve-cluster-perl proxmox-backup-client
3 upgraded, 0 newly installed, 6 to remove and 6 not upgraded.
Need to get 0 B/3,058 kB of archives.
After this operation, 4,897 kB 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
root@pve:~#
 
Thank you for your help.

However the problem is the same...

root@pve:~# apt-get dist-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 proxmox-default-kernel proxmox-firewall
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
libpve-notify-perl proxmox-ve pve-container pve-ha-manager pve-manager qemu-server
The following packages have been kept back:
libpve-rs-perl openssh-client openssh-server openssh-sftp-server pve-cluster ssh
The following packages will be upgraded:
libpve-cluster-api-perl libpve-cluster-perl proxmox-backup-client
3 upgraded, 0 newly installed, 6 to remove and 6 not upgraded.
Need to get 0 B/3,058 kB of archives.
After this operation, 4,897 kB 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
root@pve:~#
 
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.
 
  • Like
Reactions: chrispazz

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!