在oracle java8中进行新更新后,无法在java
系统上安装ubuntu
。它显示此错误
E: Package 'oracle-java8-installer' has no installation candidate
ERROR: Service 'app' failed to build:
The command '/bin/sh -c echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && add-apt-repository -y ppa:webupd8team/java && apt-get update && apt-get install -y oracle-java8-installer && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/oracle-jdk8-installer' returned a non-zero code: 100
我正在尝试将其安装到我的Docker
系统中。
我尝试在所有地方进行谷歌搜索,但在任何地方都找不到任何答案。所有答案都已过时。
答案 0 :(得分:1)
在oracle JAVA(JDK)8 Install PPA
停用之后,我面临ubuntu:bionic基本映像的相同问题,因此我安装了亚马逊Correcto openjdk8。
这是我的dockerfile中运行的Java RUN命令
RUN wget https://d3pxv6yz143wms.cloudfront.net/8.212.04.2/java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb && \
apt-get update && apt-get install java-common && apt-get install -y --no-install-recommends apt-utils && \
dpkg --install java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb
参考:https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/generic-linux-install.html