在ubuntu 12.04上安装python-software-properties

use*_*178 3 ubuntu apt-get

我想在ubuntu 12.04机器上安装python-software-properties软件包.我一直在:

The following packages have unmet dependencies:
python-software-properties : Depends: python (< 2.7) but 2.7.3-0ubuntu2 is to be installed
                          Depends: python-pycurl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

Aptitude显示它尝试安装的版本是0.75.10.3.当然,我已经运行了apt-get update.我需要这个来为我的回购列表添加一个ppa.

ger*_*ijk 7

评论中的这两行完美地概括了您的问题:

我看到了许多清晰的线条.实际上,整个sources.list文件看起来都属于lucid.

我被告知它正在运行12.04.

它在某种程度上,但不是全部.如果不是太多工作,我建议在新安装中重新开始.

或者,

  1. 重新生成APT源并将其放入/etc/apt/sources.list.
  2. 确保仅precise列出/配置了源(包括/etc/apt/sources.list.d目录中的文件).
  3. sudo apt-get cleansudo apt-get update.
  4. 更新/升级所有包(例如sudo apt-get dist-upgrade)

但是,这并不能确保所有软件包都处于干净状态,因此您可能会再遇到麻烦.