[Share Experiences] apt upgrade提示auto remove导致系统挂掉了
Tofloor
poster avatar
datacl
deepin
2024-09-09 15:15
Author

系统版本V20.9

今天闲来无事,执行apt update;然后执行apt upgrade,提示一大堆可以apt auto remove;没多想,就直接执行了。结果,可想而知,系统死掉了。无法启动图形界面,无法进去命令行界面,因为无法进行登录,授权(用户验证)服务都无法启动。

最后,通过在grub界面,高级选项,选中默认那个启动项,按"e"键,修改grub参数,其中linux那一行,ro以及它后面的内容改为,rw single init=/bin/bash;按F10保存并重启。

然后注意页面提示,让你输入root密码。如果进去了,恭喜你,像我一样还能救活。

进系统后,启动网络,systemctl start network-manager。

测试下网络,curl www.baidu.com,如果不行,研究下怎么才能启动网络。

然后 apt install libgtk-3-0,就是它被上面autoremove了。我安装了就reboot,正常启动了。

谁能告诉我,为什么会这样。。。。

Reply Favorite View the author
All Replies
sudo~
deepin
2024-09-09 15:38
#1

慎用 apt autoremove 呀
相当危险

Reply View the author
deepin
2024-09-09 15:55
#2

自从接触deepin,都是一键三连,没有什么问题啊

sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y

Reply View the author
caoyuUU
deepin
2024-09-09 16:14
#3

我都看它提示,要我autoremove 我就autoremove

Reply View the author
pzm9012
deepin
2024-09-09 16:19
#4

不建议使用autoremove,如果有软件包将依赖信息写错,autoremove可能会删除重要组件。或者,移除前确认这些软件包确实是不必要的。

Reply View the author
假设这是一个与用户名相似的昵称
deepin
2024-09-09 16:24
#5

自从之前用ubuntu用autoremove卸了桌面环境之后,我就再也没用过了shamed

Reply View the author
datacl
deepin
2024-09-09 16:34
#6
sudo~

慎用 apt autoremove 呀
相当危险

现在知道了agree

Reply View the author
乾豫恒益
deepin
2024-09-09 16:42
#7

学习了。。。

Reply View the author
zmqsybzc
deepin
2024-09-09 17:09
#8

autoremove能不用就不用,因为很有可能会把系统组件给干掉。

Reply View the author
sudo~
deepin
2024-09-09 17:13
#9
pzm9012

不建议使用autoremove,如果有软件包将依赖信息写错,autoremove可能会删除重要组件。或者,移除前确认这些软件包确实是不必要的。

对于一般用户来说,很难判断被移除的包,是否必要sweat

Reply View the author
ㅤ旭旭哥
deepin
2024-09-09 19:10
#10

我一在用autoremove, 没出过错

Reply View the author
catubibu
deepin
2024-09-10 09:21
#11

自从有个VPS的WP, 再也不敢autoremove了。

Reply View the author
月夜残云
deepin
2024-09-24 23:31
#12

自从接触deepin,都是一键三连,没有什么问题啊

sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y

我也是一键三连,没发现有问题呀

Reply View the author