Ubuntu 24.04桌面环境损坏求助:安装并卸载KDE后系统异常
Ubuntu 24.04桌面环境损坏求助:安装并卸载KDE后系统异常
English is not my native language, so this post may contain some grammatical and spelling errors, but not limited to.
If you find any, please let me know in the comments and I will fix it as soon as possible.
各位好,我目前在用Ubuntu 24.04,前阵子装了KDE桌面环境,用了一阵还是习惯原来的桌面,就把KDE卸载了。当时看着好像卸载干净了,结果没过多久,笔记本就一直弹出提示:"The system has failed and could not be recovered. Please try logging out and logging back in."
我赶紧注销重新登录,结果还是弹出同样的提示,根本没法正常用。后来我翻了谷歌上的资料(可惜没记下具体链接),最后通过命令行操作解决了这个问题,这里把方法分享给大家:
- 首先进入命令行界面:在登录界面按
Ctrl + Alt + F3(不同机型可能是F2-F6之间的按键),输入用户名和密码登录。 - 先尝试修复已安装的软件包,执行命令:
sudo apt update && sudo apt install -f - 重新安装Ubuntu默认的GNOME桌面环境(卸载KDE可能误删了GNOME的依赖文件):
sudo apt install ubuntu-desktop --reinstall - 清理残留的无用包和配置文件:
sudo apt autoremove --purge sudo apt clean - 最后重启系统:
sudo reboot
如果重启后还是有问题,可以尝试重置GNOME的配置来恢复默认状态:
dconf reset -f /org/gnome/
备注:内容来源于stack exchange,提问作者UNBOUNDED




