从 ubuntu 14.04 安装 open jdk 时出现以下错误。我该如何解决?
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
default-jre : Depends: openjdk-7-jre (>= 7~u3-2.1.1)
openjdk-6-jre-lib : Depends: openjdk-6-jre-headless (>= 6b27)
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u95-2.6.4-0ubuntu0.14.04.1)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
您需要运行以下命令,以便安装 java 依赖项。
sudo apt-get install -f