【问题标题】:Cannot install openjdk-7-jdk on Ubuntu 14 [closed]无法在 Ubuntu 14 上安装 openjdk-7-jdk [关闭]
【发布时间】:2015-08-01 14:31:17
【问题描述】:

我目前使用 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,但没有成功。

请帮助我。谢谢。

【问题讨论】:

    标签: java linux ubuntu-14.04 openjdk


    【解决方案1】:

    你有一些损坏的包,所以在安装 openjdk 之前。运行命令

    sudo apt-get -f 安装

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

    sudo apt-get install openjdk-7-jdk

    会有用的

    【讨论】:

    • 作品,辉煌!
    猜你喜欢
    • 1970-01-01
    • 2014-10-20
    • 2014-03-25
    • 2021-05-05
    • 2015-04-05
    • 2012-04-15
    • 2022-06-21
    • 2017-12-31
    • 2020-08-30
    相关资源
    最近更新 更多