与 Python 3.4 相关的损坏软件包

与 Python 3.4 相关的损坏软件包

我最近尝试将 ubuntu-desktop 安装到之前只安装了 ubuntu 服务器的机器上。出于某种原因,我收到一条有关软件包损坏的消息。我尝试跟踪那些“不可能”满足依赖关系的软件包,结果似乎都指向了 python 3.4,但我已经卸载/重新安装了它,结果什么都没有改变,所以我可能错了。

现在各种各样的东西都无法安装,比如:

sudo apt-get install gedit
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:
 gedit : Depends: libpeas-1.0-0 (>= 1.1.0) but it is not going to be installed
     Depends: python3-gi (>= 3.0) but it is not going to be installed
     Depends: gir1.2-peas-1.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试了所有常用的建议,例如“自动移除”、清理、更新、升级等。但都无济于事。我该如何解决这个问题?

答案1

A最近的 SRU出了问题。它已经被撤下,但很多人已经升级到 python3.4 3.4.3。现在它已经被撤下,这可能是导致您依赖性问题的原因。

如果 aptitude 提供理智的降级计划到 3.2.0,继续执行。如果不是,我建议继续关注并监视该错误报告,以获取有关已修复的 SRU 更新可用的消息。

答案2

就我而言,这只是一个损坏的符号链接,这解决了该问题:

sudo ln -sf /usr/bin/python2.7 /usr/bin/python

然后我就可以安装新版本了

相关内容