所以我有一个非常令人沮丧的问题(Ubuntu 16.04),每当我尝试通过 apt-get 安装任何东西时,我都会收到错误消息,提示依赖项未满足。但它说它依赖于 python <2.8,但要安装 3.6.1-1。我没有得到这个,因为我已经有了 python 2.7.12。消息如下所示:
The following packages have unmet dependencies:
libnl-3-dev : Depends: libnl-3-200 (= 3.2.27-1ubuntu0.16.04.1) but 3.2.27-1 is to be installed
python-libxml2 : Depends: python (< 2.8) but 3.6.1-1 is to be installed
python-lzma : Depends: python (< 2.8) but 3.6.1-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-pycurl : Depends: python (< 2.8) but 3.6.1-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-rpm : Depends: python (< 2.8) but 3.6.1-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
python-sqlite : Depends: python (< 2.8) but 3.6.1-1 is to be installed
python-sqlitecachec : Depends: python (< 2.8) but 3.6.1-1 is to be installed
python-talloc : Depends: python (< 2.8) but 3.6.1-1 is to be installed
python-urlgrabber : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
virtualbox : Depends: python (< 2.8) but 3.6.1-1 is to be installed
Depends: python:any (>= 2.7.5-5~)
yum : Depends: python (< 2.8) but 3.6.1-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
如果可以的话请帮帮我,这个问题困扰了我一段时间。提前谢谢!
更新:当我运行:apt-cache policy python:
python:
Installed: 3.6.1-1
Candidate: 3.6.1-1
Version table:
*** 3.6.1-1 100
100 /var/lib/dpkg/status
2.7.11-1 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
更新:重新安装 python 也无济于事,apt-get -f install 也无济于事,我真的不知道该怎么办?
答案1
我终于做到了!
感谢一路上帮助过我的所有人,解决方案非常简单,我只需要更新 ubuntu(我点击了右上角的红白色图标)就可以了!我希望这也能帮助其他用户。