I tried to get some free space on my system partition. I found a lot of installed kernels and I deleted some. I have 2 questions:
I still have kernel 5.4.0.100 low latency. Shouldn't the normal update procedure using the program discover (Kubuntu) update my kernel to newer versions automatically? Or do I have to do this manually?
There are some kernels or parts of them that I can't get rid of:
$ dpkg -l | grep linux-'[g|i|m|h]'
ii binutils-x86-64-linux-gnu 2.34-6ubuntu1.3 amd64 GNU binary utilities, for x86-64-linux-gnu target
ii linux-headers-5.11.0-46-generic 5.11.0-46.51~20.04.1 amd64 Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
ii linux-headers-5.13.0-30-generic 5.13.0-30.33~20.04.1 amd64 Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii linux-headers-5.4.0-100 5.4.0-100.113 all Header files related to Linux kernel version 5.4.0
ii linux-headers-5.4.0-100-lowlatency 5.4.0-100.113 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii linux-headers-lowlatency 5.4.0.100.104 amd64 lowlatency Linux kernel headers
ii linux-hwe-5.11-headers-5.11.0-46 5.11.0-46.51~20.04.1 all Header files related to Linux kernel version 5.11.0
ii linux-hwe-5.13-headers-5.13.0-30 5.13.0-30.33~20.04.1 all Header files related to Linux kernel version 5.13.0
ii linux-image-5.4.0-100-lowlatency 5.4.0-100.113 amd64 Signed kernel image lowlatency
ii linux-image-lowlatency 5.4.0.100.104 amd64 lowlatency Linux kernel image
ii linux-modules-5.4.0-100-lowlatency 5.4.0-100.113 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
How can I delete them?
EDIT: After following Someone's answer, it seems to be all clean:
$ dpkg -l | grep linux-'[g|i|m|h]'
ii binutils-x86-64-linux-gnu 2.34-6ubuntu1.3 amd64 GNU binary utilities, for x86-64-linux-gnu target
ii linux-headers-5.13.0-30-lowlatency 5.13.0-30.33~20.04.1 amd64 Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii linux-headers-lowlatency-hwe-20.04 5.13.0.30.33~20.04.17 amd64 lowlatency Linux kernel headers
ii linux-hwe-5.13-headers-5.13.0-30 5.13.0-30.33~20.04.1 all Header files related to Linux kernel version 5.13.0
ii linux-image-5.13.0-30-lowlatency 5.13.0-30.33~20.04.1 amd64 Signed kernel image lowlatency
ii linux-image-lowlatency-hwe-20.04 5.13.0.30.33~20.04.17 amd64 lowlatency Linux kernel image
ii linux-modules-5.13.0-30-lowlatency 5.13.0-30.33~20.04.1 amd64 Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
Thank you all for your help.
You are having an old and unsupported kernel ie.
5.11.0-46
. Moreover, you have removed some of the packages of every kernel, but didn't remove the kernels properly; and you also don't have the latest kernel for Ubuntu 20.04 ie.5.13
.I recommend running the following command to remove all the old and unsupported kernels:
Then update and install the latest HWE kernel (the kernel
5.11
suggests you use the HWE stack):If you want to free up space in
/boot
then see How do I free up more space in /boot?