sun-java6-jre problem

Asked by Karthi

when iam running sudo apt-get install sun-java6-jr the following mesage appear in teminal.

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

this is when i use the command: sudo apt-get install sun-java6-jre
I have read some other people asking questions about this but I could not use the same method because of the message above.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sun-java6 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ian Ace (iaculallad) said :
#1

You can try the steps below from the Terminal:

(Add the repository)
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
(Update the list)
sudo apt-get update
(Install the packages)
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

HTH.

Revision history for this message
Alpesh Bhavsar (alpeshbhavsar19841) said :
#2

Hi Karthi,

Try the following commands.

sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

Let me know if still not work.

Revision history for this message
Karthi (senti10) said :
#3

Hi Ian Ace,

I had tried the following commands given by you.

sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
(Update the list)
sudo apt-get update
(Install the packages)
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

But when i given the second package command the following message will appear

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

Still the problem continues,awaiting for answer

Revision history for this message
Cameron W (cwill747) said :
#4

Well, if you don't mind not having the official Sun product, you could run:
sudo apt-get install default-jre

And that will give you the open Java environment.

Can you help with this problem?

Provide an answer of your own, or ask Karthi for more information if necessary.

To post a message you must log in.