sudo apt-get install sun-java-jre sun-java6-plugin sun-java6-fonts Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package sun-java-jre

Asked by keith jacob on 2011-04-20

when i try to install jdk 6
i get this error
sudo apt-get install sun-java-jre sun-java6-plugin sun-java6-fonts
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package sun-java-jre

Question information

Language:
Spanish (Spain) Edit question
Status:
Solved
For:
Ubuntu sun-java6 Edit question
Assignee:
No assignee Edit question
Solved by:
Eliah Kagan
Solved:
2011-04-20
Last query:
2011-04-20
Last reply:
2011-04-20
keith jacob (kertsjacs) said : #1

am trying to install jdk 6 for netbeans 6.9.1 to install using this command :
sudo apt-get install sun-java-jre sun-java6-plugin sun-java6-fonts

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package sun-java-jre

pliz help

Can you give the output of:

lsb_release -a

Thanks

keith jacob (kertsjacs) said : #3

the output of lsb_release -a is
as follows:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

thanks

(Or, you might just be able to install sun-java6-jre instead of sun-java-jre, since sun-java-jre is not a correct package name bug sun-java6-jre is.)

(Correction: "...bug sun-java6-jre is" --> "...BUT sun-java6-jre is")

keith jacob (kertsjacs) said : #7

Thanks Eliah Kagan, that solved my question.