【问题标题】:Bug Python 2.7.7 VS 2.7.9 on Debian WheezyDebian Wheezy 上的错误 Python 2.7.7 VS 2.7.9
【发布时间】:2015-07-04 09:19:31
【问题描述】:

我想在我的 Debian Wheezy 上安装 Python 2.7.9,我已经从 Debian 站点下载了 .deb 文件。不幸的是,现在我显然已经造成了一个错误,这是我在 apt-get 升级后得到的:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libpython2.7 : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
 python2.7 : Depends: python2.7-minimal (= 2.7.9-2) but 2.7.3-6+deb7u2 is installed
             Depends: libpython2.7-stdlib (= 2.7.9-2) but it is not installable
 python2.7-dev : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
E: Unmet dependencies. Try using -f.

如果我尝试使用'apt-get -f install',它会要求我从我的操作系统中删除超过 2GB 的空间,我不希望这样做。有什么想法吗?

【问题讨论】:

  • 你包含了两次文本?

标签: python debian apt-get


【解决方案1】:

使用 Debian 等发行版的正确方法是使用官方存储库进行两种操作,即使用 apt-get install 而不是使用 dpkg -i 下载和安装。

如果您直接与dpkg 合作,则缺少apt 需要的重要信息。

我给你的建议是——

1- 在手动安装的包上使用 dpkg -P 撤消更改

2- 运行apt-get update

3- 查找带有apt-apt-cache search python=<version>或没有版本的包。

4- 如果您没有找到想要的版本,您可以使用其他官方 Debian 存储库(将它们包含在您的 apt 源列表文件中)

【讨论】:

  • dpkg -P 不工作;但是 dpkg --configure libpython2.7 给出: dpkg: 依赖问题阻止配置 libpython2.7: libpython2.7 依赖于 python2.7 (= 2.7.3-6+deb7u2);然而:系统上python2.7的版本是2.7.9-2。 dpkg:错误处理libpython2.7(--configure):依赖问题 - 未配置处理时遇到错误:libpython2.7
  • 有没有办法将 Python 降级到上一个?
【解决方案2】:

这样解决:问题基本上是

python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed

我已经下载了 python 版本2.7.3-6+deb7u2 并使用简单的dpkg -i 安装了它。自动降级

【讨论】:

    猜你喜欢
    • 2015-10-23
    • 1970-01-01
    • 1970-01-01
    • 2015-03-19
    • 1970-01-01
    • 2014-07-17
    • 2014-07-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多