Ubuntu 14.04 依赖:python(

Ubuntu 14.04 依赖:python(

我尝试安装python3.5以下内容指示。

$ auto-apt run ./configure
$ make
# checkinstall

实际上python3.5运行良好。但在安装过程中,以前的版本被替换了。

# apt-get check 
The following packages have unmet dependencies:
 apt-xapian-index : Depends: python (< 2.8) but 3.5.0-1 is installed
                    Depends: python:any (>= 2.7.1-0ubuntu2)
 cloud-image-utils : Depends: python:any
 compizconfig-settings-manager : Depends: python (< 2.8) but 3.5.0-1 is installed
                                 Depends: python:any (>= 2.7.1-0ubuntu2)
 duplicity : Depends: python (< 2.8) but 3.5.0-1 is installed
             Depends: python:any (>= 2.7.1-0ubuntu2)
 euca2ools : Depends: python (< 2.8) but 3.5.0-1 is installed
             Depends: python:any (>= 2.7.1-0ubuntu2)
 gconf2 : Depends: python:any
 gimp : Depends: python:any (>= 2.7.1-0ubuntu2)
 hplip : Depends: python (< 2.8) but 3.5.0-1 is installed
 hplip-data : Depends: python:any (>= 2.7.1-0ubuntu2)
 ibus : Depends: python:any (>= 2.7.1-0ubuntu2)
 ibus-pinyin : Depends: python:any (>= 2.7.1-0ubuntu2)
 ...

还有更多。

# apt-get -f install
...
After this operation, 677 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] _

当我尝试删除 python 时也遇到了类似的问题,我仍然无法恢复所有已删除的包,因此:

好吧,我已经构建并安装了python2.7.6,但现在我遇到了其他问题

# apt-get upgrade | grep 'is installed'
 python-all : Depends: python (= 2.7.5-5ubuntu3) but 2.7.6-1 is installed
 python-all-dev : Depends: python (= 2.7.5-5ubuntu3) but 2.7.6-1 is installed
 python-dev : Depends: python (= 2.7.5-5ubuntu3) but 2.7.6-1 is installed
E: Unmet dependencies. Try using -f.

答案1

我已经下载了*.deb软件包2.7.5-5ubuntu3并使用dpkg而不是安装apt-get

$ sudo dpkg --install python_2.7.5-5ubuntu3_amd64.deb

相关内容