Try to do what helped me in similiar case:
- go to Oracle JDK 8 download page and download exactly same version of jdk that oracle-java8-installer tried to download. In your case it's
jdk-8u20-linux-x64.tar.gz
. So you should download from: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html - copy jdk-8u20-linux-x64.tar.gz to folder:
/var/cache/oracle-jdk8-installer/
-
try install oracle-java8-installer:
sudo apt-get install oracle-java8-installer
This should fix the problem.