我安装了 Linux Mint 18.1 Serena,但它apt-get install ring
不起作用。它返回以下内容:
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:
ring : Depends: libedataserver-1.2-22 (>= 3.17) but it is not installable
Depends: libqt5core5a (>= 5.6.0~beta) but 5.5.1+dfsg-16ubuntu7.2 is to be installed
Depends: ring-daemon (= 20161228.1.49686a5~dfsg1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
然后我尝试:
apt-get clean & update
aptitude -f install ring
apt-get install ring --fix-broken
但是,这并没有帮助解决这个问题。怎么解决?
的输出apt-cache policy ring
:
ring:
Installed: (none)
Candidate: 20161228.1.49686a5~dfsg1-1
Version table:
20161228.1.49686a5~dfsg1-1 500
500 https://dl.ring.cx/ring-nightly/ubuntu_16.10 ring/main amd64 Packages
sudo aptitude
:
答案1
从本公告,“Linux Mint 18.1 支持到 2021 年,基于 Ubuntu16.04LTS”。
从你的命令结果来看apt-cache policy ring
,你的ring
包是为 Ubuntu 构建的16.10。那么ring
,您的系统上缺少某些依赖项(或者更确切地说,可用但不符合预期版本)就不足为奇了。
解决方案是安装ring
Ubuntu 16.04。您必须修改已设置的环存储库,方法是更改https://dl.ring.cx/ring-nightly/ubuntu_16.10
为https://dl.ring.cx/ring-nightly/ubuntu_16.04
答案2
我在使用 apt-get 安装软件包时也遇到过类似的问题。尝试凭借天赋
sudo aptutude
然后搜索您的软件包(输入“/”)并尝试安装它。当安装或依赖项出现问题时,aptitude 通常会提供更多解决方案。