软件安装错误

软件安装错误

我已经安装了 Ubuntu 16.04 LTS,当我想要安装任何软件时遇到此错误:

sudo apt-get install openjdk-7-jre openjdk-6-jre
[sudo] password for ali: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
 openjdk-6-jre : Depends: openjdk-6-jre-headless (>= 6b24-1.11.1-4ubuntu2) but it is not going to be installed
                 Depends: libgif4 (>= 4.1.4) but it is not going to be installed
                 Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not going to be installed
                 Recommends: ttf-dejavu-extra but it is not going to be installed
                 Recommends: icedtea-netx but it is not going to be installed
 openjdk-7-jre : Depends: openjdk-7-jre-headless (>= 7~u3-2.1.1~pre1-1ubuntu2) but it is not going to be installed
                 Depends: libgif4 (>= 4.1.4) but it is not going to be installed
                 Depends: libgnome2-0 but it is not going to be installed
                 Depends: libgnomevfs2-0 but it is not going to be installed
                 Depends: libgconf2-4 but it is not going to be installed
                 Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not going to be installed
                 Recommends: ttf-dejavu-extra but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

我认为你的问题的答案就在这个帖子里:

如何安装 Java?

我知道安装您所要求的旧版本可能会出现问题,我认为这个线程至少可以解决安装问题。

相关内容