Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am having a problem to install sun-java6-jdk on Ubuntu 10.04.

I googled and tried all but none of them worked.

When I type

apt-get install sun-java6-jdk

, I get the following message.

Reading package lists...Done Building state information ...Done Package sun-java6-jdk 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-jdk has no installation candidate.

Could anyone tell me how to install sun-java6-jdk on Ubuntu 10.04 please?

Thanks in advance.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

try updating apt by issuning the command

sudo apt-get update

and then try the installation of sun-java6-jdk again.

share|improve this answer
    
Thanks. After that I used sudo apt-get install sun-java6-jdk then it is installed now. –  shinokada Sep 19 '10 at 20:03
add comment

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.