无法在 Ubuntu 上安装 Gnome-Control-Center

无法在 Ubuntu 上安装 Gnome-Control-Center

我今天在我的 ubuntu 上安装了 xfce4,然后删除了它并重新安装了 Gnome,但之后我遇到了无法打开设置的问题,我搜索了一下,发现gnome-control-center我的电脑里没有这个,然后我尝试安装它,结果出现了这个错误

$ sudo apt-get 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: gnome-control-center-data (< 1:3.37) but 1:3.38.3-1pop1~1625337172~20.04~bdcf8ad is to be installed
                        Recommends: gnome-online-accounts (>= 3.25.3) but it is not going to be installed
                        Recommends: gnome-control-center-faces but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

知道如何修复它吗?

编辑:运行命令后sudo apt-cache policy gnome-control-center-data gnome-control-center我得到以下输出:

gnome-control-center-data:
  Installed: 1:3.38.3-1pop1~1625337172~20.04~bdcf8ad
  Candidate: 1:3.38.3-1pop1~1625337172~20.04~bdcf8ad
  Version table:
 *** 1:3.38.3-1pop1~1625337172~20.04~bdcf8ad 100
        100 /var/lib/dpkg/status
     1:3.36.5-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
     1:3.36.1-1ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal/main i386 Packages
gnome-control-center:
  Installed: (none)
  Candidate: 1:3.36.5-0ubuntu2
  Version table:
     1:3.36.5-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     1:3.36.1-1ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

感谢@N0rbert,我意识到我已经gnome-control-center-data安装了1:3.38.3-1pop1~1625337172~20.04~bdcf8ad,我只是使用它将其删除sudo apt remove gnome-control-center-data,然后使用重新安装它sudo apt-get install gnome-control-center-data gnome-control-center,一切正常

答案1

要安装 GNOME 控制中心,您必须使用以下命令手动指定其版本:

sudo apt-get install gnome-control-center gnome-control-center-data=3.36.5-0ubuntu2

避免与以前安装的冲突3.38.3-1pop1~1625337172~20.04~bdcf8ad版本。


为了正确删除 PopOS! 的所有踪迹,您必须重新添加他们的 PPA然后清除它

sudo add-apt-repository ppa:system76/pop
sudo apt-get update
sudo apt-get install ppa-purge
sudo ppa-purge ppa:system76/pop

相关内容