我尝试安装 python-setuptools 但收到以下消息:您可能需要运行“apt-get -f install”来纠正这些问题:以下软件包具有未满足的依赖关系:
$ sudo apt-get install python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version.
python-setuptools set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
icedtea-7-jre-jamvm : Depends: openjdk-7-jre-headless (= 7u65-2.5.2-3~14.04) but 7u65-2.5.1-4ubuntu1~0.14.04.2 is to be installed
openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u65-2.5.2-3~14.04) but 7u65-2.5.1-4ubuntu1~0.14.04.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo easy-install virtualenv
sudo: easy-install: command not found
我也尝试更新(sudo apt-get update
),但它显示相同的消息。
答案1
仔细阅读此行
icedtea-7-jre-jamvm : Depends: openjdk-7-jre-headless (= 7u65-2.5.2-3~14.04) but 7u65-2.5.1-4ubuntu1~0.14.04.2 is to be installed
openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u65-2.5.2-3~14.04) but 7u65-2.5.1-4ubuntu1~0.14.04.2 is to be installed
您所需要的只是重新安装openjdk
软件包,因为您的某个软件包依赖于它的较低版本。