2015-07-03 98 views
0

我想在我的Debian Wheezy上安裝Python 2.7.9,我已經從Debian網站上下載了.deb文件。不幸的是我現在顯然已經造成的錯誤,這是我後apt-get的升級:Bug Debian Wheezy上的Python 2.7.7 VS 2.7.9

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,我不想這個。任何想法?

+0

您包括文本兩次? – TankorSmash

回答

0

固定是這樣的:因爲基本問題是

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

我已經下載了python版本2.7.3-6+deb7u2,並用一個簡單的dpkg -i我已經安裝了它。降級爲自動

0

使用Debian等發行版時的正確方法是使用官方軟件庫,即使用apt-get install而不是使用dpkg -i進行下載和安裝。

如果您直接使用dpkg,那麼apt所需的重要信息會丟失。

我給你的建議是你的變化通過在手動安裝

2-運行apt-get update

3-外表用於包帶APT-包使用dpkg -P這 -

1-撤消apt-cache search python=<version>或沒有版本。

4-如果你沒有找到想要的版本,你可以使用其他Debian官方倉庫(包括他們在你的APT源列表文件)

+0

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 –

+0

有什麼辦法降級Python的前一個? –

相關問題