[Seek Help] 卸载不用的内核报错
Tofloor
poster avatar
readmy
deepin
2022-05-13 17:00
Author

使用sudo apt-get purge linux-image-5.17.5-amd64-desktop linux-headers-5.17.5-amd64-desktop卸载一个内核报错,提示找不到软件包,使用sudo apt remove --purge linux-modules-5.17.5-amd64-desktop也提示类似的内容,找不到软件包。

使用sudo apt install***更新的内核可以使用以上命令来卸载内核,而按照https://bbs.deepin.org/zh/post/235043这里教程升级的内核使用以上命令好像都会报错,要怎样才能卸载掉自己更新的内核

image.png

Reply Favorite View the author
All Replies
liwl
deepin
2022-05-13 17:27
#1

sudo dpkg -l|egrep "linux-headers|linux-image"

找到5.17的,然后sudo apt purge xxx

Reply View the author
readmy
deepin
2022-05-13 17:32
#2
liwl

sudo dpkg -l|egrep "linux-headers|linux-image"

找到5.17的,然后sudo apt purge xxx

这里只显示有5.10.101,没有5.17.5,这个时安装系统时的那个内核吧

image.png

Reply View the author
liwl
deepin
2022-05-13 17:36
#3
readmy

这里只显示有5.10.101,没有5.17.5,这个时安装系统时的那个内核吧

image.png

那就说明,已经没有5.17的内核了,那个目录可以直接删掉的,用root删除就可以了

你这个目录下的5.17.5.18都可以删除了

Reply View the author
readmy
deepin
2022-05-13 17:41
#4
liwl

那就说明,已经没有5.17的内核了,那个目录可以直接删掉的,用root删除就可以了

你这个目录下的5.17.5.18都可以删除了

5.17.5 和5.18是可以启动的,直接删除不会有影响吗

image.png

Reply View the author
liwl
deepin
2022-05-13 18:10
#5
readmy

5.17.5 和5.18是可以启动的,直接删除不会有影响吗

image.png

有,还是别删了

Reply View the author
readmy
deepin
2022-05-13 18:12
#6

那该如何卸载掉这个不用内核,太占空间了

Reply View the author
qq8645
deepin
2022-05-14 17:28
#7

用新立德删除试试吧

Reply View the author
readmy
deepin
2022-05-18 00:10
#8
qq8645

用新立德删除试试吧

新立德?这是什么东东

Reply View the author