[problem help] 怎样卸载旧内核 Resolved
Tofloor
poster avatar
182******08
deepin
2023-08-12 04:40
Author

以前20.9使用的内核是5.18.17,使用升级工具升级到23之后使用的内核是6.1.32。那么怎样卸载旧内核呢?

image.png

Reply Favorite View the author
All Replies
jjcui8595
deepin
2023-08-12 04:43
#1

sudo apt purge linux-image-5.18* linux-headers-5.18*

Reply View the author
蔡EEPIN
deepin
2023-08-12 04:48
#2

sudo apt autoremove --purge '*5.18.17*'

Reply View the author
182******08
deepin
2023-08-12 04:49
#3
jjcui8595

sudo apt purge linux-image-5.18* linux-headers-5.18*

我运行的结果是这样的
image.png

Reply View the author
182******08
deepin
2023-08-12 04:50
#4
蔡EEPIN

sudo apt autoremove --purge '*5.18.17*'

运行结果是这样的
image.png

Reply View the author
璀璨星空
deepin
2023-08-12 05:04
#5

参考一下:https://bbs.deepin.org/post/254997

Reply View the author
蔡EEPIN
deepin
2023-08-12 05:09
#6
182******08

运行结果是这样的
image.png

看起来你已经卸载掉了,再 ls /boot 看看

Reply View the author
jjcui8595
deepin
2023-08-12 05:09
#7
182******08

我运行的结果是这样的
image.png

5.18.17没有安装啊

Reply View the author
182******08
deepin
2023-08-12 05:11
#8
璀璨星空

参考一下:https://bbs.deepin.org/post/254997

还是没有解决问题

Reply View the author
182******08
deepin
2023-08-12 05:17
#9
蔡EEPIN

看起来你已经卸载掉了,再 ls /boot 看看

还是有的
image.png

在开机启动项还有20.9版本的内容

3cb73d464247b52545efbb3375f1a90.jpg

Reply View the author
182******08
deepin
2023-08-12 05:18
#10
jjcui8595

5.18.17没有安装啊

在 /boot 路径下是可以看到关于5.18.17内核的文件

Reply View the author
北冥夜未央
deepin
Ecological co-builder
2023-08-12 05:38
#11

1、使用命令 dpkg --get-selections| grep linux 列出当前安装的内核

2、比如要卸载Linux5.1.9 则执行: sudo apt remove --purge linux-headers-5.1.9-050109

3、除了linux-header,还包括linux-modules和linux-image-unsigned,一并卸载

因为卸载linux-modules会自动同时卸载linux-image-unsigned

所以只需一个命令:sudo apt remove --purge linux-modules-5.1.9-050109-generic

这样就把Linux5.1.9卸载掉了.

Reply View the author
182******08
deepin
2023-08-12 05:39
#12

主要问题是/boot下没有多余空间。

参考 https://bbs.deepin.org/post/260648

使用Grub Customizer 程序删除多余启动项之后可以正常更新了。

Reply View the author