The oracle-java9-installer, as of writing, has an old URL that doesn’t redirect properly to the right URL, which causes the installer to fail when it tries to download the binaries.
Setting up oracle-java9-installer (9b162-1~webupd8~0) ... Using wget settings from /var/cache/oracle-jdk9-installer/wgetrc Downloading Oracle Java 9... --2017-05-19 04:10:54-- http://www.java.net/download/java/jdk9/archive/162/binaries/jdk-9-ea+162_linux-x64_bin.tar.gz Resolving www.java.net (www.java.net)... 137.254.56.25 Connecting to www.java.net (www.java.net)|137.254.56.25|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://home.java.net/download/java/jdk9/archive/162/binaries/jdk-9-ea+162_linux-x64_bin.tar.gz [following] --2017-05-19 04:10:54-- https://home.java.net/download/java/jdk9/archive/162/binaries/jdk-9-ea+162_linux-x64_bin.tar.gz Resolving home.java.net (home.java.net)... 156.151.59.19 Connecting to home.java.net (home.java.net)|156.151.59.19|:443... connected. HTTP request sent, awaiting response... 302 Found Location: http://www.oracle.com/splash/java.net/maintenance/index.html [following] --2017-05-19 04:10:54-- http://www.oracle.com/splash/java.net/maintenance/index.html Resolving www.oracle.com (www.oracle.com)... 184.30.70.138, 2600:1408:10:184::2d3e, 2600:1408:10:185::2d3e Connecting to www.oracle.com (www.oracle.com)|184.30.70.138|:80... connected. HTTP request sent, awaiting response... 503 Service Unavailable 2017-05-19 04:10:54 ERROR 503: Service Unavailable. download failed Oracle JDK 9 is NOT installed.
You will need to manually install the binary and run dpkg to configure it. Change the URL from http://www.java.net/download/ to http://download.java.net/.
cd /var/cache/oracle-jdk9-installer sudo wget http://download.java.net/java/jdk9/archive/162/binaries/jdk-9-ea+162_linux-x64_bin.tar.gz sudo dpkg --configure -a
The commands are slighly incorrect. The first line should be “cd /var/cache/oracle-jdk9-installer” not java9 installer and the third command should be sudo dpkg –configure -a, not dkpg. Thank you though, this saved me quite a bit of time
Fixed. Thanks for catching that!
I get the same error when doing this.