oracle-java icon indicating copy to clipboard operation
oracle-java copied to clipboard

debian: alternative method to install Java

Open hangstl opened this issue 8 years ago • 13 comments

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"

hangstl avatar Oct 18 '17 07:10 hangstl

+1

olasundell avatar Oct 18 '17 10:10 olasundell

@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 !

namitmr avatar Oct 18 '17 11:10 namitmr

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?

steenzout avatar Oct 18 '17 15:10 steenzout

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?

steenzout avatar Oct 18 '17 15:10 steenzout

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 avatar Oct 18 '17 15:10 namitmr

@namitmr please provide the steps you used and I'll build the fallback mechanism this weekend.

steenzout avatar Oct 19 '17 04:10 steenzout

Goal: provide a way for users to install Oracle JDK by performing a direct download, untar, etc as opposed to using the .dev package.

steenzout avatar Oct 19 '17 04:10 steenzout

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.

olasundell avatar Oct 19 '17 10:10 olasundell

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.

amazovec avatar Oct 19 '17 18:10 amazovec

@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 !

namitmr avatar Oct 19 '17 19:10 namitmr

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.

olasundell avatar Oct 20 '17 07:10 olasundell

@namitmr you can see here the way to download directly from Oracle.

That should get you by the weekend.

steenzout avatar Oct 20 '17 16:10 steenzout

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.

steenzout avatar Aug 19 '18 06:08 steenzout