系统相关
首页 > 系统相关> > java-无法在Ubuntu 14上安装openjdk-7-jdk

java-无法在Ubuntu 14上安装openjdk-7-jdk

作者:互联网

我目前正在使用ubuntu 14作为操作系统.我想在Ubuntu上安装openjdk-7-jdk,但键入sudo apt-get install openjdk-7-jdk时出现错误.这是错误消息:

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-7-jdk : Depends: openjdk-7-jre (= 7u79-2.5.6-0ubuntu1.14.04.1) but it is not going to be installed
                  Recommends: libxt-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我试过sudo apt-get -f install openjdk-7-jdk但没有用.

请帮我.谢谢.

解决方法:

您有一些损坏的软件包,因此在安装openjdk之前.运行命令

sudo apt-get -f install

它将安装所有损坏的依赖项,然后运行命令

sudo apt-get install openjdk-7-jdk

它会工作

标签:ubuntu-14-04,openjdk,linux,java
来源: https://codeday.me/bug/20191119/2039984.html