Gnome-shell 无法安装-软件包损坏

Gnome-shell 无法安装-软件包损坏

我正在尝试安装gnome-shell但它显示一个错误:

$ sudo apt-get install gnome-shell

...

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: gnome-settings-daemon (>= 3.4.0) but it is not going to be installed
               Recommends: gnome-control-center but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

OP 的原始截图


sudo apt-get update && sudo apt-get upgrade

在此处输入图片描述

sudo apt-get -f install

在此处输入图片描述

sudo apt-get install gnome-shell

在此处输入图片描述

来自评论:

$ sudo apt-get install -f gnome-shell gnome-control-center gnome-settings-daemon
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gnome-settings-daemon : Depends: gnome-settings-daemon-schemas (= 3.12.2-0ubuntu1~trusty3) but 3.8.6.1-0ubuntu11.2 is to be installed
E: Unable to correct problems, you have held broken packages.

答案1

安装

请执行以下操作。打开终端并开始:

sudo apt-get clean

其次是

sudo apt get update && sudo apt-get upgrade

如果出现错误,请继续

sudo apt-get -f install

最后完成

sudo apt-get install gnome-shell

登录到 Gnome

我假设你正在使用 lightdm

如果可行,请注销并在登录管理器中为下一个登录会话选择“Gnome”,然后再次登录。

在此处输入图片描述

答案2

打开终端并运行

sudo apt-get install gnome-shell gnome-control-center gnome-settings-daemon

相关内容