Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Unfortunately, if I try to install sun-java via apt-get, it's not found in the repositories.

# apt-get install sun-java6-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jre has no installation candidate

If I try to install it using the bin from Sun's website, here's the issue:

# ./jre-6u18-linux-i586.bin
(license agreement...)
Do you agree to the above license terms? [yes or no]
yes 
Unpacking...
Checksumming...
Extracting...
./jre-6u18-linux-i586.bin: 366: ./install.sfx.10648: not found
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.

Thanks for the help.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You need to enable the multiverse repository in Ubuntu: https://help.ubuntu.com/community/Repositories/Ubuntu

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.