[Share Experiences] autoremove有坑啊,我再也不无视系统警告了
Tofloor
poster avatar
冰凤琉璃
deepin
2026-01-22 16:35
Author

从OpenSUSE跑回来deepin了,刚装好系统关掉磐石只读,我就更新一下然后去安装cockpit和tuned了,我刚装好启动服务。然后就去autoremove了卸载了一个包叫deepin-sound-theme,卸载的时候警告我这是系统组件,我看这名以为就是一个声音主题,感觉没什么问题,一重启发现登陆管理器炸了,我就想到,说不定登陆管理器就是这个主题,然后我就突发神奇脑回路去安装了sddm,禁用lightdm服务。这里我就不得不吐槽一手了,这些不都是标准systemd服务吗,怎么deepin这命令还用了一个路径,看起来像是systemd从rc过渡时期的东西,不像其他发行版统一的systemctl。

之后我sddm发现没法登陆,我就知道坏了,然后手动把那个主题包装上,dpkg-reconfigure lightdm也不行,只能选择重装,我再也不不听系统提示了。唉😮‍💨

Reply Favorite View the author
All Replies
deepin流云
Super Moderator
Community OP
2026-01-22 16:43
#1

现在警告的真是关键组件,不要删……tail

https://bbs.deepin.org.cn/post/294332
image.png

Reply View the author
穿西装的万斯在统亻言
deepin
Backbone of ecological co-construction group
2026-01-22 23:02
#2

磐石的重要性不就显现了吗🙂

Reply View the author
remyxo
deepin
2026-01-23 09:01
#3

debian从来不用担心autoremove、upgrade还是dist-upgrade。deepin该好好梳理一下内核依赖了!

Reply View the author
守望风雨
deepin
2026-01-23 16:41
#4

安全清理不需要的软件包

# 预览将要删除的软件包(安全检查)
sudo apt autoremove --dry-run
​
# 安全清理不需要的旧内核和缓存
sudo apt autoremove --purge && sudo apt autoclean

注意: 使用 sudo apt autoremove 时要小心,可能会删除系统关键软件包。建议先使用 --dry-run 参数预览。

Reply View the author