【问题标题】:How do I get Java 8 onto a Google Compute Debian 8 instance?如何将 Java 8 安装到 Google Compute Debian 8 实例上?
【发布时间】:2018-12-18 18:08:13
【问题描述】:

这个特定的实例是一个 Bitnami SVN/Trac 服务器,其中添加了 Tomcat 8,并且独立于 SVN 和 Trac 附带的 Apache 服务器运行。

我尝试了in this thread, 提供的内容,但没有成功。即使做了推荐

sudo apt-get install dirmngr       
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
sudo apt-get update
sudo apt-get install openjdk-8-jdk -y --allow-unauthenticated

我还是得到了

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openjdk-8-jdk : Depends: openjdk-8-jre (= 8u171-b11-1~bpo8+1) but it is not going to be installed
                 Depends: openjdk-8-jdk-headless (= 8u171-b11-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这是我之前得到的。

【问题讨论】:

    标签: java google-compute-engine debian-jessie


    【解决方案1】:

    刚从 Debian 列表中得到这个:

    apt-get install -t jessie-backports openjdk-8-jdk

    成功了。我现在有 Java 8。

    Debian 列表发布者还质疑 dirmngr 等的必要性,并建议应避免使用 --allow-unauthenticated。

    详情请参阅Debian List archives

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-24
      • 2016-04-05
      • 1970-01-01
      • 2016-05-09
      • 2016-09-13
      • 2015-07-11
      • 2021-04-13
      相关资源
      最近更新 更多