python 安装的问题

python 安装的问题

尝试在 Ubuntu 16.04 上安装任何应用程序时,它会在终端上显示此消息,我知道我犯了一个错误,错误地停止了 python 2.6.8,因此我尝试设置 python 2.7.12,但给了我相同的消息,如何解决这个问题?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
checkinstall is already the newest version (1.6.2-4ubuntu1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 playonlinux : Depends: python:any (>= 2.7.5-5~)
 python-apt : Depends: python (>= 2.7~) but 2.6.8-1 is to be installed
              Depends: python:any (>= 2.7.5-5~)
 python-minimal : Breaks: python (<= 2.7.3-1~) but 2.6.8-1 is to be installed
 python-pycurl : Depends: python (>= 2.7~) but 2.6.8-1 is to be installed
                 Depends: python:any (>= 2.7.5-5~)
 python-software-properties : Depends: python (>= 2.7) but 2.6.8-1 is to be installed
 python-talloc : Depends: python (>= 2.7~) but 2.6.8-1 is to be installed
 python-wxgtk3.0 : Depends: python (>= 2.7~) but 2.6.8-1 is to be installed
                   Depends: python:any (>= 2.7.5-5~)
 python-wxversion : Depends: python:any (< 2.8)
                    Depends: python:any (>= 2.7.5-5~)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

sudo apt-get -f install尝试按照消息建议运行命令。

相关内容