如何在 Ubuntu 20.04 上安装 gnome-control-center

如何在 Ubuntu 20.04 上安装 gnome-control-center

如果我尝试安装,我会遇到以下问题:

$ sudo apt install gnome-control-center
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-control-center : Depends: libcheese-gtk25 (>= 3.18.0) but it is not going to be installed
                        Depends: libcheese8 (>= 3.28.0) but it is not going to be installed
                        Depends: libgoa-backend-1.0-1 (>= 3.10.0) but it is not going to be installed
                        Recommends: gnome-online-accounts (>= 3.25.3) but it is not going to be installed
                        Recommends: gnome-user-docs but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

如果我继续安装依赖项,最终我会收到以下消息:

The following packages have unmet dependencies.
 libgl1-mesa-dri : Depends: libsensors4 (>= 1:3.0.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

如果我安装 libsensors4,然后尝试再次安装 gnome-control-center,我会得到以下信息:

$ sudo apt install gnome-control-center
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.
 libsane : Depends: libsnmp35 (>= 5.8+dfsg) but it is not going to be installed
           Recommends: sane-utils (>= 1.0.29-0ubuntu5)

安装 libsnmp35 似乎会卸载 libsensors4 并安装 libsensors5:

$ sudo apt install libsnmp35
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libsensors-config libsensors5
Suggested packages:
  lm-sensors
The following packages will be REMOVED
  libsensors4
The following NEW packages will be installed
  libsensors-config libsensors5 libsnmp35

我尝试按照在这里找到的方法来解决这个问题:libsensors5 或 libsensors-config 升级问题,但似乎没有帮助。

答案1

大多数情况下,当发生这种情况时,首先运行“apt update”以使您的存储库信息保持最新,即可解决问题。

相关内容