Unable to remove old kernel after kernel upgrade from 5.15 to 5.19

tbxark

New Member
Dec 6, 2022
2
1
3
Code:
➜  ~ dpkg --list | grep pve-kernel                  
ii  pve-firmware                         3.5-6                          all          Binary firmware code for the pve-kernel
ii  pve-kernel-5.15                      7.2-14                         all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.15.74-1-pve             5.15.74-1                      amd64        Proxmox Kernel Image
ii  pve-kernel-5.19.7-1-pve              5.19.7-1                       amd64        Proxmox Kernel Image
ii  pve-kernel-helper                    7.2-14                         all          Function for various kernel maintenance tasks.

This prompt appears when I try to delete the 5.15 kernel. How can I safely delete the old kernel?

Code:
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
 
Last edited:
The 5.15 series is (and will remain) the default kernel for PVE 7.X - so the dependency will also remain in place.
The 5.19 is an opt-in for people running newer hardware (or running into other issues with the 5.15)

But the one kernel-package should really not use up too much diskspace -why bother trying to remove it in the first place?
 
  • Like
Reactions: tbxark and Moayad
The 5.15 series is (and will remain) the default kernel for PVE 7.X - so the dependency will also remain in place.
The 5.19 is an opt-in for people running newer hardware (or running into other issues with the 5.15)

But the one kernel-package should really not use up too much diskspace -why bother trying to remove it in the first place?
Thanks! Because I use a script that automatically deletes the old kernel, it always reports this error. I thought there was some bug that caused this to fail to be deleted.
 
  • Like
Reactions: Stoiko Ivanov