Install java JDK 8

January 17, 2018 664 views
Linux Basics CentOS

I am trying to install an IOTA full node and everything works fine until it tries to install the java jdk 8

TASK [iri : Download java jdk rpm] ********************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "dest": "/tmp/jdk-8u152-linux-x64.rpm", "failed": true, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "state": "absent", "status_code": 404, "url": "http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-linux-x64.rpm"}
        to retry, use: --limit @/opt/iri-playbook/site.retry

PLAY RECAP ********************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=1
1 comment
  • I'm also having problems installing java 8, it seams the installation process receives a redirect and the redirect returns a 404

1 Answer

Yes.

sing default oracle-java8-installer wgetrc settings for it.
Downloading Oracle Java 8...
--2018-01-18 20:26:53--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.45.100.92
Connecting to download.oracle.com (download.oracle.com)|23.45.100.92|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz [following]
--2018-01-18 20:26:53--  https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.109.81.24, 2a02:26f0:10:5a1::2d3e, 2a02:26f0:10:591::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.109.81.24|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1516300133_ed687729ba16f965f10e616e9e723d90 [following]
--2018-01-18 20:26:53--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1516300133_ed687729ba16f965f10e616e9e723d90
Connecting to download.oracle.com (download.oracle.com)|23.45.100.92|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-18 20:26:53 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)
Have another answer? Share your knowledge.