安装“python-nautilus”时出错

安装“python-nautilus”时出错

当我尝试python-nautilus使用 Ubuntu 软件中心进行安装时,收到一条错误消息“无法解析软件包依赖项”。

详细信息部分显示以下输出:

Package dependencies cannot be resolved

The following packages have unmet dependencies:

python-nautilus: Depends: libc6 (>= 2.2.5) but 2.13-20ubuntu5 is to be installed
             Depends: libglib2.0-0 (>= 2.16.0) but 2.30.2-4ubuntu1~oneiric1 is to be installed
             Depends: libgtk-3-0 (>= 3.0.0) but 3.2.0-0ubuntu3 is to be installed
             Depends: libnautilus-extension1 (>= 1:2.91) but 1:3.2.1-0ubuntu3.2 is to be installed
             Depends: libpython2.7 (>= 2.7) but 2.7.2-5ubuntu1 is to be installed

这个输出对我来说毫无意义。取决于libpyhon2.7,并且版本2.7.2可用...这里出了什么问题?

python-nautilus接下来,我尝试从命令行安装:

username ~$ sudo apt-get install python-nautilus
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:
 python-nautilus : Depends: python-gobject but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

但是python-gobject已经安装了:

username ~$ sudo apt-get install python-gobject
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-gobject is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

在我看来,我的软件包索引肯定是彻底坏了。但是,我目前还没有遇到其他软件包的问题。我使用的是几乎全新的 Ubuntu 11.10 版本。我尝试执行“apt-get update && apt-get upgrade”,但这并没有改变任何东西。

任何关于如何解决此问题的提示我都会非常感激。

答案1

您的错误消息可能与您有Gnome-3 PPA已启用。

此 PPA 中最近的变化提倡使用 python-gobject,并弃用 python-nautilus。

基本上你不能安装 python-nautilus。

您有以下几种选择:

  1. 坚持使用 PPA,您将无法继续使用 nautilus-actions 等。
  2. ppa-purgeGnome-3 PPA 然后您将能够使用 nautilus-actions 等。

您或许应该在 Gnome-3 PPA 上发布一个错误报告,看看他们是否有关于将 nautilus-actions 从 Precise 反向移植到 Oneiric 的想法。

相关内容