我尝试在系统分区上腾出一些可用空间。我发现很多已安装的内核,我删除了一些。我有两个问题:
我仍然有内核 5.4.0.100 低延迟。使用程序发现 (Kubuntu) 的正常更新过程不应该自动将我的内核更新到较新的版本吗?还是我必须手动执行此操作?
有一些内核或者其中的一部分我无法删除:
$ 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
我怎样才能删除它们?
编辑:按照某人的回答后,似乎一切都清楚了:
$ 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
感谢大家的帮助。
答案1
您使用的内核较旧且不受支持,即5.11.0-46
...此外,您删除了每个内核的一些软件包,但没有正确删除内核;并且您也没有适用于 Ubuntu 20.04 的最新内核,即5.13
...
我建议运行以下命令来删除所有旧的和不受支持的内核:
dpkg -l | egrep "linux-(signed|modules|image|headers)" | grep -v $(uname -r | cut -d - -f 1) | awk {'print $2'} | xargs sudo apt purge -y
然后更新并安装最新的 HWE 内核(内核5.11
建议您使用 HWE 堆栈):
sudo apt update && sudo apt install --install-recommends linux-generic-hwe-20.04 --reinstall && sudo apt upgrade -y
如果你想释放空间,/boot
请参阅如何在 /boot 中释放更多空间?