Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Installation of JDK 6u45 fails on Ubuntu 16.04.2 LTS due to HTTP 404 Not Found

3472870May 24 2017 — edited May 25 2017

We are still using old JDK 6u45 for some legacy projects. The installation of the JDK is automated in Ubuntu 16.04.2 LTS VirtualBox virtual machine. Everything worked fine using the 'sudo apt-get install oracle-java6-installer' until yesterday.

Unfortunately, now the installation fails due to unsuccessful download of the binary from Oracle!

$ sudo apt-get install oracle-java6-installer

Reading package lists... Done

Building dependency tree      

Reading state information... Done

Suggested packages:

  binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho | ttf-sazanami-mincho ttf-arphic-uming

The following NEW packages will be installed:

  oracle-java6-installer

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

2 not fully installed or removed.

Need to get 0 B/21,0 kB of archives.

After this operation, 209 kB of additional disk space will be used.

Preconfiguring packages ...

(Reading database ... 214123 files and directories currently installed.)

Preparing to unpack .../oracle-java6-installer_6u45-0~webupd8~8_all.deb ...

Unpacking oracle-java6-installer (6u45-0~webupd8~8) ...

Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...

Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...

Rebuilding /usr/share/applications/bamf-2.index...

Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...

Processing triggers for mime-support (3.59ubuntu1) ...

Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...

Setting up gsfonts-x11 (0.24) ...

Setting up java-common (0.56ubuntu2) ...

Setting up oracle-java6-installer (6u45-0~webupd8~8) ...

Downloading Oracle Java 6...

--2017-05-24 08:32:15--  http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin

Resolving download.oracle.com (download.oracle.com)... 80.239.254.122, 80.239.254.120

Connecting to download.oracle.com (download.oracle.com)|80.239.254.122|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin [following]

--2017-05-24 08:32:15--  https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin

Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.126.165.247, 2a02:26f0:18:391::2d3e, 2a02:26f0:18:398::2d3e

Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.126.165.247|:443... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1495604053_36a4ead929f6ff0d6d4d7ce91fe260cf [following]

--2017-05-24 08:32:15--  http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin?AuthParam=1495604053_36a4ead929f6ff0d6d4d7ce91fe260cf

Connecting to download.oracle.com (download.oracle.com)|80.239.254.122|:80... connected.

HTTP request sent, awaiting response... 404 Not Found

2017-05-24 08:33:04 ERROR 404: Not Found.

download failed

Oracle JDK 6 is NOT installed.

dpkg: error processing package oracle-java6-installer (--configure):

subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:

oracle-java6-installer

E: Sub-process /usr/bin/dpkg returned an error code (1)

It is still possible to manually download the binary from Oracle site, but this is not a viable option for an automated environment setup.

Any ideas?

Comments

Alex Keh-Oracle

What is SQL Gate for Oracle?

You need to install an ODAC version with the Oracle Developer Tools for Visual Studio included with it. Here's a video on how to do it with the ODAC for ODT OUI version.

You can also use the MSI install for the Visual Studio version you are using, which is more streamlined.

If you are using Visual Studio Community Edition, you must download the most recent (April, 2018) MSI version as there was a bug in the earlier ODAC version that didn't allow it to work in Community.

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 22 2017
Added on May 24 2017
4 comments
13,266 views