Cannot install java

Bug #192583 reported by Christer Solskogen
2
Affects Status Importance Assigned to Milestone
Nexenta Operating System
Fix Released
Medium
Unassigned

Bug Description

I cannot install java from sun, both jdk-6u4-solaris-i586.sh and jdk-6u4-solaris-x64.sh is not installable.
It complains about the checksum error. I have double checked and triple checked that the download was successful.

I tried installing it using the following command: sudo /sbin/sh jdk-6u4-solaris-i586.sh

The following error is displayed after showing the license terms.

The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.

Revision history for this message
tmetsch (tmetsch) wrote :

I can confirm this issue. Had the same problem. Not quite sure if this is a bug in the sum command...By manually unpacking the java sdk you can get this stuff to work.

Revision history for this message
Martin Man (mman) wrote : Re: [Bug 192583] Re: Cannot install java

This is i a known problem with known workaround, try this

$ export SUN_PERSONALITY=1
$ sh jdk-...

The trick is that Java installer invokes sum(1) from /usr/bin which is
in fact on Nexenta GNU sum(1) instead of Sun sum(1) which is relocated
in /usr/sun/bin/sum

let us know whether this helps,
Martin

tmetsch wrote:
> I can confirm this issue. Had the same problem. Not quite sure if this is a bug in the sum command...By manually unpacking the java sdk you can get this stuff to work.
>

Revision history for this message
Christer Solskogen (christer-solskogen) wrote :

Martin Man wrote:
> This is i a known problem with known workaround, try this
>
> $ export SUN_PERSONALITY=1
> $ sh jdk-...
>
> The trick is that Java installer invokes sum(1) from /usr/bin which is
> in fact on Nexenta GNU sum(1) instead of Sun sum(1) which is relocated
> in /usr/sun/bin/sum
>

I tried that, but still no go. (Dont running /sbin/sh do the same trick?)
I even tried 'sed -i -e "s;/usr/bin/sum;/usr/sun/bin/sum;g"
jdk-6u4-solaris-i586.sh' just to be sure.

I dont think the download is destroyed either, I've tried downloading
the same package on three different platforms, on three different
machines, just to be ~100% sure ;-)

--
chs

Revision history for this message
tmetsch (tmetsch) wrote :

The trick with SUN_PERSONALITY=1 did not work for me either. I really had to do all the stuff by hand. Have a look at the shell script. Reproduce the steps within it, that was the only way it worked for me.

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

For NCP1 see: http://timezra.blogspot.com/2007/10/installing-jdk-6-in-nexenta-zone.html
NCP2 has a port of the debian sun-java6 package but the above instructions should still apply.

Revision history for this message
Adam Smith (m04-a966-i95) wrote :

There seems to be a problem with the /usr/bin/sum program.

Verify that your download has the expected hash (e.g. download it from somewhere else to confirm), then do mv /usr/bin/sum /usr/bin/sum2, install java, then undo it with mv /usr/bin/sum2 /usr/bin/sum.

(The installer skips the checksum step if sum is missing.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.