更新 Ubuntu 12.04 后 Gnome Shell 被删除

更新 Ubuntu 12.04 后 Gnome Shell 被删除

现在,当我尝试安装它时...它显示以下错误

sudo apt-get install gnome-shell
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:
 gnome-shell : Depends: libgcr-3-1 (>= 3.4.0) but 3.2.2-2ubuntu4 is to be installed
               Depends: gir1.2-gcr-3 but it is not installable
               Recommends: gnome-contacts but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

如何安装 GNOME-Shell?

答案1

sudo apt-get update
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell

我之前也遇到过同样的问题。这个问题是在我允许更新管理器中的“部分升级”后出现的,这导致 gnome-shell 被删除。我尝试了上述命令,然后 gnome-shell 就可以安装了。

答案2

只需按下键盘上的Ctrl+ Alt+T即可打开终端。打开后,运行以下命令。

sudo apt-get autoremove

sudo apt-get clean

sudo apt-get update

完成此操作后,您就可以运行:sudo apt-get install gnome-shell

相关内容