I've always wondered about this but never got around to asking the question. So here goes...
My example comes from Kubuntu 26.04. The behavior is the same in Kubuntu 26.10 and other versions I have tried recently to my memory.
I update Kubuntu in the terminal 'sudo apt update' followed by 'sudo apt full-upgrade'
The first time running 'sudo apt update' followed by 'sudo apt full-upgrade'.
The kernel and modules are updated
I reboot.
The second time running 'sudo apt update' followed by 'sudo apt full-upgrade' the following are removed:
REMOVING:
linux-headers-7.0.0-38-generic linux-main-modules-zfs-7.0.0-38-generic linux-modules-nvidia-580-7.0.0-38-generic linux-signatures-nvidia-7.0.0-38-generic
linux-image-7.0.0-38-generic linux-modules-7.0.0-38-generic linux-objects-nvidia-580-7.0.0-38-generic linux-tools-7.0.0-38-generic
I reboot.
When I run 'sudo apt autoremove', the following are removed:
REMOVING:
linux-headers-7.0.0-38 linux-tools-7.0.0-38
Is there a reason why everything, kernel headers, image, ...etc. are not removed all at once the next time I run sudo apt full-upgrade or sudo apt autoremove?
My example comes from Kubuntu 26.04. The behavior is the same in Kubuntu 26.10 and other versions I have tried recently to my memory.
I update Kubuntu in the terminal 'sudo apt update' followed by 'sudo apt full-upgrade'
The first time running 'sudo apt update' followed by 'sudo apt full-upgrade'.
The kernel and modules are updated
I reboot.
The second time running 'sudo apt update' followed by 'sudo apt full-upgrade' the following are removed:
REMOVING:
linux-headers-7.0.0-38-generic linux-main-modules-zfs-7.0.0-38-generic linux-modules-nvidia-580-7.0.0-38-generic linux-signatures-nvidia-7.0.0-38-generic
linux-image-7.0.0-38-generic linux-modules-7.0.0-38-generic linux-objects-nvidia-580-7.0.0-38-generic linux-tools-7.0.0-38-generic
I reboot.
When I run 'sudo apt autoremove', the following are removed:
REMOVING:
linux-headers-7.0.0-38 linux-tools-7.0.0-38
Is there a reason why everything, kernel headers, image, ...etc. are not removed all at once the next time I run sudo apt full-upgrade or sudo apt autoremove?









Comment