Ubuntu 22.04 Desktop
Whenever my system updates it always reinstalls an older kernel. This stops the update because of insufficient space on /boot.
Also apt autoremove does not remove my outdated kernels
My curent /boot kernel files look like this:
-rw------- 1 root root 6.0M Sep 5 16:31 System.map-5.15.0-84-generic
-rw------- 1 root root 7.6M Aug 18 12:38 System.map-6.2.0-32-generic
-rw------- 1 root root 7.7M Sep 7 10:11 System.map-6.2.0-33-generic
lrwxrwxrwx 1 root root 25 Sep 19 11:04 vmlinuz -> vmlinuz-5.15.0-84-generic
-rw------- 1 root root 12M Sep 5 19:57 vmlinuz-5.15.0-84-generic
-rw------- 1 root root 14M Aug 18 12:40 vmlinuz-6.2.0-32-generic
-rw------- 1 root root 14M Sep 7 11:18 vmlinuz-6.2.0-33-generic
lrwxrwxrwx 1 root root 24 Sep 19 11:04 vmlinuz.old -> vmlinuz-6.2.0-33-generic
I noticed that there are some earlier kernels marked as manual in apt. I switched them to auto and redid purge but 5.15 is still there.
Anyone have any ideas?
Thanks in advance
dpkg -l |grep linux-generic
but 5.15 will get re-install if either GA kernel stack was installed; OR you'd previously installed a 5.15 kernel. Ubuntu allows users to install multiple kernel stacks (and all will get upgrades if supported) – guiverc Sep 19 '23 at 11:54sudo apt autoremove linux-image-5.15.0-84-generic
. Read the output before agreeing to any removals. Reject the removal if the output says something unexpected. – user535733 Sep 19 '23 at 16:04dpkg -l | grep linux-image
please. – nobody Sep 19 '23 at 17:59linux-image-generic
andlinux-image-generic-hwe-22.04
plus various kernel packages installed; I'd not expect no results (there is no mention of OEM kernels in your directory listing). Ubuntu or Ubuntu flavor are still Ubuntu systems (you didn't specify Desktop or Server, but they'll be the same; I used a desktop system) – guiverc Sep 19 '23 at 22:09but I've already done that, removed the package and then it was reinstalled on the next kernel update.
I modified the original question to include the fact that it is a desktop system.
– David Kohen Sep 22 '23 at 19:22