[英]Getting FileNotFoundException in Ubuntu 18.04 with Java
[英]oracle java 8 installer getting failed on ubuntu 18.04 through dockerfile
我正在通過Docker文件設置Java以安裝oracle java 8,但由於apt-get無法安裝java 8而失敗
嘗試了有關堆棧溢出的許多建議,這些建議指導更新許可證和其他方法
Unpacking sudo (1.8.9p5-1ubuntu1) ...
Setting up sudo (1.8.9p5-1ubuntu1) ...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package oracle-java8-installer
E: Unable to locate package oracle-java8-set-default
來自我的dockerfile之一的帶有oracle java的代碼片段。 我希望你可以使用相同的。
RUN \
apt-get update && \
apt-get install -y software-properties-common && \
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=${version} && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.