![pantheon-files 依赖于 libhandy-1-0,但它无法安装在 Ubuntu 20.04 上](https://linux22.com/image/1175757/pantheon-files%20%E4%BE%9D%E8%B5%96%E4%BA%8E%20libhandy-1-0%EF%BC%8C%E4%BD%86%E5%AE%83%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E5%9C%A8%20Ubuntu%2020.04%20%E4%B8%8A.png)
安装 pantheon-files 时出现依赖性错误
$ sudo apt install pantheon-files
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:
pantheon-files : Depends: libhandy-1-0 (>= 0.82.0) but it is not installable
Recommends: exfat-fuse but it is not going to be installed
Recommends: tumbler-plugins-extra but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt-cache policy pantheon-files
pantheon-files:
Installed: (none)
Candidate: 4.5.0+r4099+pkg96~daily~ubuntu6.0.1
Version table:
4.5.0+r4099+pkg96~daily~ubuntu6.0.1 500
500 http://ppa.launchpad.net/elementary-os/daily/ubuntu focal/main amd64 Packages
答案1
答案2
Focal Fossa (20.04) 使用的是 libhandy-0.0-0,而 libhandy-1-0 则位于 Groovy Gorilla (20.10) 中,后者仍处于开发阶段。不过,您可以使用以下方式在 20.04 上下载并安装 libhandy-1-0 的 deb 文件:
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/libh/libhandy-1/libhandy-1-0_0.90.0-1_amd64.deb
sudo apt install ./libhandy-1-0_0.90.0-1_amd64.deb
完成后,重试安装 Pantheon Files。
答案3
对我来说非常有效的另一个选项是安装 Ubuntu 最新为 Ubuntu 20.10(Groovy)构建的版本,可以在这里的官方 PPA 中找到: https://launchpad.net/ubuntu/groovy/amd64/libhandy-1-0 最后一次构建是: https://launchpad.net/ubuntu/groovy/amd64/libhandy-1-0/1.0.0-2 实际上,可以通过按住 Shift 键并单击 .deb 文件的“可下载文件”来下载。
答案4
我找到了解决方案,实际上,最后一个答案也有效。但我也找到了一个新的解决方案。
我们缺少一些依赖项。我们需要先安装它们,然后重新启动电脑再次尝试安装此文件包。现在,您可以看到右键单击时颜色发生变化
我正在分享下面的命令。但请确保先检查最新的文件。
首先,你需要使用以下命令启用 Universe 存储库
sudo add-apt-repository universe
然后你可以手动下载并安装新版本的库
cd ~/Downloads wget http://mirrors.kernel.org/ubuntu/pool/universe/libc/libcloudproviders/libcloudproviders0_0.3.0-1_amd64.deb
sudo apt install ./libcloudproviders0_0.3.0-1_amd64.deb
然后使用以下命令安装 pantheon-files
Sudo apt-get install pantheon-files