我想在Ubuntu 12.04機器上安裝python-software-properties包。我一直得到:在Ubuntu上安裝python-software-properties 12.04
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.
能力顯示它試圖安裝的版本是0.75.10.3。當然,我已經運行apt-get update。我需要這個將ppa添加到我的回購清單中。
你似乎沒有將所有的軟件庫更新爲使用Ubuntu 12.04,正如你可以看到[here](http ://packages.ubuntu.com/precise/python-software-properties)它取決於Python> = 2.7.1,你的版本取決於<2.7,並且似乎是從Ubuntu 10.04中看到的,正如你看到的[這裏](http: //packages.ubuntu.com/lucid/python-software-properties)。請提供'apt-cache show python-software-properties |的輸出grep^Version'。下一次,請在AskUbuntu上提問。 – gertvdijk
感謝您的回覆。運行上述命令給出:版本:0.75.10.3 \ n版本:0.75.10 – user1487178
然後檢查您的存儲庫設置 - 已損壞。這不會自行破壞。運行'grep -r lucid/etc/apt/sources.list *'來查看Lucid上仍然存在的內容。你從10.04升級了嗎?請說出有關您的存儲庫設置/配置的全部內容。 – gertvdijk