title: How to install oracle-java8-installer on docker debian:jessie
body: <p>I am trying to install java 8 through oracle-java8-installer on a debian:jessie docker container. The following is my Dockerfile:</p>
  
  <pre><code>FROM debian:jessie
  
  ENV JAVA_VERSION 1.8.0
  
  RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" &gt; /etc/apt/sources.list.d/webupd8team-java.list
  RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" &gt;&gt; /etc/apt/sources.list.d/webupd8team-java.list
  RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
  RUN echo "debconf shared/accepted-oracle-license-v1-1 select true" | /usr/bin/debconf-set-selections
  RUN apt-get update
  RUN apt-get install -y --force-yes vim
  RUN apt-get install -y --force-yes oracle-java8-installer
  </code></pre>
  
  <p>Yet this gives:</p>
  
  <pre><code>Connecting to download.oracle.com (download.oracle.com)|23.63.224.171|:80... connected.
  HTTP request sent, awaiting response... 404 Not Found
  2018-01-17 12:31:05 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)
  The command '/bin/sh -c apt-get install -y --force-yes oracle-java8-installer' returned a non-zero code: 100
  </code></pre>
  
  <p>I have found many similar issues described online, but none of the proposed solutions worked for me. Any idea?</p>