Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .