debian: alternative method to install Java
http://download.oracle.com/otn-pub/java/jdk/8u144-b01/XXXXXXXXXXXXXXXXXXXX/jdk-8u144-linux-x64.tar.gz", "Resolving download.oracle.com (download.oracle.com)... 2.16.4.178, 2.16.4.176", "Connecting to download.oracle.com (download.oracle.com)|2.16.4.178|:80... connected.", "HTTP request sent, awaiting response... 302 Moved Temporarily", "Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/XXXXXXXXXXXXXXXXXXXXXX/jdk-8u144-linux-x64.tar.gz [following]", "--2017-10-18 07:24:42-- https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/XXXXXXXXXXXXXXXXXXXXXX/jdk-8u144-linux-x64.tar.gz", ... "Connecting to download.oracle.com (download.oracle.com)|2.16.4.178|:80... connected.", "HTTP request sent, awaiting response... 404 Not Found", "2017-10-18 07:24:43 ERROR 404: Not Found.", "", "download failed"
+1
@hangstl @olasundell there seems to be an issue with the command :
sudo apt-get install oracle-java8-installer
download.oracle.com does not seem to be responding properly, need to find another way to install as ansiblebit totally relies on apt-get installations !
if download from Oracle doesn't work how do you suppose any other type of installation will work better? curl the tarball will still fail, no?
the Oracle website is redirecting to an inexisting URL:
Connecting to download.oracle.com (download.oracle.com)|2.16.4.178|:80... connected.", "HTTP request sent, awaiting response... 302 Moved Temporarily
is there anything you expect me to do?
Installations through tar balls are only possible at the moment, you need to cURL fetch and manual install ! There can be a fallback mechanism for this task ?
@namitmr please provide the steps you used and I'll build the fallback mechanism this weekend.
Goal: provide a way for users to install Oracle JDK by performing a direct download, untar, etc as opposed to using the .dev package.
As you mentioned, this is clearly an issue with the webup8team oracle-java8-installer. I'm currently trying to get hold of Alin Andrei, the maintainer.
From some moment, from yesterday, you must register and have valid account for download the java packages. I'm solving that with my own repository.
@steenzout , @amazovec is correct you need to have some sort of a validAuthParam=XXXXXXX query param not an account specifically for getting the tar ball, still looking for a work around if possible. Will send you the steps or even better a merge request if possible !
No, you just need to set an extra cookie. If you add
.oracle.com TRUE / FALSE 1508402404 oraclelicense accept-securebackup-cookie
to your cookies, it works.
@namitmr you can see here the way to download directly from Oracle.
That should get you by the weekend.
Add the possibility of downloading the debian package from Oracle and installing the software through there.
If path is provided, the user will only need to copy the package over to the expected destination and ansible won't try to download it from Oracle.