gpt4 book ai didi

java - 无法从 Docker 中提取 Java 8 镜像

转载 作者:行者123 更新时间:2023-11-30 06:26:38 29 4
gpt4 key购买 nike

我无法从 Docker 中提取 Java 8 镜像,这个问题发生在昨天晚上,可能 Oracle 已经更改了 Java 8 的存储库,我是没有把握。我收到以下错误:

Downloading Oracle Java 8...
--2017-11-02 09:48:41-- http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 93.186.137.138, 93.186.137.153
Connecting to download.oracle.com (download.oracle.com)|93.186.137.138|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz [following]
--2017-11-02 09:48:41-- https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.86.229.143, 2a02:26f0:c00:4bd::2d3e, 2a02:26f0:c00:48f::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.86.229.143|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1509616242_c2c10a584fa09bff72a90cbe16357500 [following]
--2017-11-02 09:48:42-- http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1509616242_c2c10a584fa09bff72a90cbe16357500
Reusing existing connection to download.oracle.com:80.
HTTP request sent, awaiting response... 404 Not Found
2017-11-02 09:48:45 ERROR 404: Not Found.

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

这是我的Dockerfile:

FROM ubuntu:15.04

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update && \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y oracle-java8-installer && \
apt-get clean
......

最佳答案

Ubuntu 版本是有问题的部分,所以我更改为 16.04 并且它有效。最好拥有最新 Ubuntu 版本。

关于java - 无法从 Docker 中提取 Java 8 镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47072208/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com