title: Ubuntu: Oracle JDK 8 is NOT installed
body: <p>I've installed oracle JDK-8 on ubuntu 14.04 manually. but whenever I want to install a package that needs jdk8, apt-get tries to install jdk 8 again. my country is restricted so oracle server won't allow me to download jdk8.</p>
  
  <pre><code>$java -version
  
  java version "1.8.0_45"
  Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
  Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
  </code></pre>
  
  <p>and the results of apt-get are:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>with this error, apt-get won't finish the installation.</p>