我的介子在我的 Kubuntu 14.4 上不见了。如果我尝试安装它
sudo apt-get install muon
我收到消息
The following packages have unresolved dependencies:
muon : Depends on: apt-xapian-index but shall not be installed
E: Problems can not be corrected, you have retained defect packages.
(翻译成英文)
在包系统中执行命令被破坏。如何解决?在各种订单中多次(如答案所示)没有帮助。
所以我当时所做的就是执行
sudo apt-get install apt-xapian-index
哪个回答了
The following packages have unresolved dependencies:
apt-xapian-index : Depends on: python-xapian (>= 1.0.2) but shall not be installed.
Depends on: python-apt (>= 0.7.93.2) but shall not be installed.
Depends on: python-debian (>= 0.1.14) but shall not be installed.
Depends on: python:any (>= 2.7.1-0ubuntu2) but shall not be installed.
E: Problems can not be corrected, you have retained defect packages.
(翻译成英文)
就在那时我想起来了,我试图在我的 ubuntu 14.04(它本身只有 python 2.7.6)上安装 python 2.7.10。但是,我删除了和中的PATH
扩展名,这样~/.profile
~/.bashrc
$ python --version
Python 2.7.6
回来了。我仍然有 python 2.7.10/opt/python
并且没有改变我的效果
$ ln -s /opt/python/bin/python2.7 /usr/local/bin/python2.7.10
我在做什么?
解决方案是明确允许 apt 降级包:
答案是在https://unix.stackexchange.com/a/218955/122989上给我的