[SOLVED] Can't remove old old Kernel

Gortosch

Member
Jan 13, 2022
15
2
8
44
Hello,

I might have a stupid question.
I would like to remove an old kernel from my proxmox installation.

Code:
dpkg -l |grep pve-kernel
ii  pve-firmware                         3.3-5                          all          Binary firmware code for the pve-kernel
ii  pve-kernel-5.13                      7.1-7                          all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.13.19-4-pve             5.13.19-9                      amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-5.15                      7.1-10                         all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.15.19-1-pve             5.15.19-1                      amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-helper                    7.1-10                         all          Function for various kernel maintenance tasks.

The kernel 5.13 is the one I would like to remove. But when I try to remove the kernel, I get the following message:
Code:
root@pve01:~# apt purge pve-kernel-5.13.19-4-pve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-ve* pve-kernel-5.13* pve-kernel-5.13.19-4-pve*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 328 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

How can I remove this kernel? Or should I not remove it?
Thank you very much for your help.


Grüße
Sven
 
How can I remove this kernel? Or should I not remove it?
As 5.13 is the current default kernel in PVE 7.1 the package management directly depends on it, so this isn't possible for now.
With PVE 7.2 we'll switch to 5.15 as new default and then it'll be possible. And while there'd be other workarounds for now, I'd rather suggest just waiting that out, as having one extra kernel installed shouldn't really hurt that much.
 
  • Like
Reactions: Gortosch
As 5.13 is the current default kernel in PVE 7.1 the package management directly depends on it, so this isn't possible for now.
With PVE 7.2 we'll switch to 5.15 as new default and then it'll be possible. And while there'd be other workarounds for now, I'd rather suggest just waiting that out, as having one extra kernel installed shouldn't really hurt that much.

maybe you can depend on pve-kernel-5.13 *or* pve-kernel-5.15

TIA
Bernd
 

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!