![安装 gnome-tweak-tool 时出现问题 - Ubuntu 20.04](https://linux22.com/image/1023466/%E5%AE%89%E8%A3%85%20gnome-tweak-tool%20%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%20-%20Ubuntu%2020.04.png)
在上次 gnome-shell 更新后,gnome-tweak-tool 软件包被删除。当我尝试使用 appitute 命令进行安装时,系统提示我存在未满足的依赖项。但是,我无法恢复到所需的 gnome-shell 版本。
下面我介绍发出的命令:
以下是输出apt-cache policy gnome-shell-extensions gnome-tweak-tool gnome-shell
apt-cache policy gnome-shell-extensions gnome-tweak-tool gnome-shell
gnome-shell-extensions:
Installed: (none)
Candidate: 3.36.1-1
Version table:
3.36.1-1,500
500 http://pl.archive.ubuntu.com/ubuntu focal / universe amd64 Packages
500 http://en.archive.ubuntu.com/ubuntu focal / universe i386 Packages
gnome-tweak-tool:
Installed: (none)
Candidate: 3.34.0-2ubuntu1
Version table:
3.34.0-2ubuntu1 500
500 http://pl.archive.ubuntu.com/ubuntu focal / universe amd64 Packages
500 http://en.archive.ubuntu.com/ubuntu focal / universe i386 Packages
gnome-shell:
Installed: 3.36.9-0ubuntu0.20.04.2
Candidate: 3.36.9-0ubuntu0.20.04.2
Version table:
*** 3.36.9-0ubuntu0.20.04.2 500
500 http://en.archive.ubuntu.com/ubuntu focal-updates / main amd64 Packages
100 / var / lib / dpkg / status
3.36.4-1ubuntu1 ~ 20.04.2 500
500 http://en.archive.ubuntu.com/ubuntu focal-security / main amd64 Packages
3.36.1-5ubuntu1 500
500 http://en.archive.ubuntu.com/ubuntu focal / main amd64 Packages
我不是在服务器上工作,它是 ubuntu 20.04.2 桌面。
我sudo apt install gnome-tweaks
也试过了,没用。
sudo apt install gnome-tweaks
[sudo] user password rskowron:
Reading package lists ... Done
Building a dependency tree
Reading status information ... Done
Some packages could not be installed. This could mean
that an impossible situation was requested or an unstable distribution was used
in which some packages have not yet been created or moved
from the Incoming directory.
The following information may help resolve the situation:
The following packages have unmet dependencies:
gnome-tweaks: Requires: gnome-shell-extension-prefs but it will not be installed
E: Could not fix problems, corrupt packages stopped.
答案1
我有同样的问题。可能是由 ubuntu 更新引起的。我又试了几次,认为我发现了,这是因为 gnome-shell 和 gnome-shell-common 的版本不匹配:
~$ sudo apt install gnome-tweaks
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-tweaks : Depends: gnome-shell-extension-prefs but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
然后我尝试了这个
~$ sudo apt install gnome-shell-extension-prefs
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-extension-prefs : Depends: gnome-shell (= 3.36.4-1ubuntu1~20.04.2) but 3.36.9-0ubuntu0.20.04.2 is to be installed
Depends: gnome-shell-common (= 3.36.4-1ubuntu1~20.04.2) but 3.36.9-0ubuntu0.20.04.2 is to be installed
Recommends: chrome-gnome-shell but it is not going to be installed**
E: Unable to correct problems, you have held broken packages.
更新其他详细信息
你好
我尝试修复损坏的包裹,但它说没有损坏的包裹。
因此,如果你查看代码中的最后 4 个留置权,它表明我有 3.36.9-0ubuntu0.20.04.2 版本的 gnome-shell,但 gnome-shell-extension-prefs 需要旧版本 3.36.4-1ubuntu1~20.04.2。
我在 gnome-tweak-tool 存储库问题中搜索,发现有一个问题无法在最新的 gnome-shell 上安装调整。
我认为我们应该等到调整开发人员更新应用程序。:(
答案2
使用 aptitude 的解决方案:
$ sudo apt install -y aptitude
$ sudo aptitude install gnome-tweaks
...
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) gnome-shell-extension-prefs [Not Installed]
2) gnome-tweaks [Not Installed]
Accept this solution? [Y/n/q/?] n
...
The following actions will resolve these dependencies:
Downgrade the following packages:
1) gnome-shell [3.36.9-0ubuntu0.20.04.2 (now) -> 3.36.4-1ubuntu1~20.04.2 (focal-security)]
2) gnome-shell-common [3.36.9-0ubuntu0.20.04.2 (now) -> 3.36.4-1ubuntu1~20.04.2 (focal-security)]
Accept this solution? [Y/n/q/?] y
...
The following packages will be DOWNGRADED:
gnome-shell gnome-shell-common
The following NEW packages will be installed:
chrome-gnome-shell{a} gir1.2-handy-0.0{a} gnome-shell-extension-prefs{a} gnome-tweaks
0 packages upgraded, 4 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
Need to get 1,022 kB of archives. After unpacking 599 kB will be used.
Do you want to continue? [Y/n/?] y
然后您可以正常安装其他包,例如sudo apt install -y gnome-shell-extensions
。