意外从仿生海狸中删除了 gnome - ubuntu-desktop 无法安装

意外从仿生海狸中删除了 gnome - ubuntu-desktop 无法安装

大家好,我不小心自动删除了它,结果我的 gnome 桌面不知怎么的被彻底消灭了,只留下我可以通过 shell 访问我的 ubuntu 18.04 - 我正在尝试重新安装 ubuntu 桌面,但是它不起作用并且一直给我一个错误。

$ sudo apt-get install ubuntu-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ubuntu-desktop : Depends: ubuntu-session but it is not going to be installed
                  Recommends: gnome-software-plugin-snap but it is not going to be installed
                  Recommends: libreoffice-pdfimport but it is not going to be installed
                  Recommends: ubuntu-software but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试使用 taskel - 几乎任何方法,但都出现同样的错误。我已设法使用相同命令安装 kubuntu-desktop,但这里出了什么问题。我真的想找回我原来的桌面。请帮忙。

答案1

好吧,如果你没有很多重要文件,我会备份重要文件并重新安装。如果你想尝试恢复 gnome 桌面,请安装此包。它将提取所有需要的依赖项。sudo apt install ubuntu-gnome-desktop祝你好运。如果你正在寻找 unity,请安装此包sudo apt install ubuntu-unity-desktop

相关内容