I just installed Debian 5.0.6, 32 bit and just can't install Java.

I thought it was as simple as

# apt-get install sun-java6-jre

but this is the response I get:

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

Any ideas?

link|improve this question
serverfault.com question methinks – KARASZI István Sep 25 '10 at 12:31
@KARASZI, Superuser is probably the better fit, since it relates to a particular piece of software/hardware. Serverfault's more for sysadmin of large networks/corporate-size software-install/maintenance problems. – David Thomas Sep 25 '10 at 13:04
feedback

migrated from stackoverflow.com Sep 25 '10 at 14:04

This question came from our site for professional and enthusiast programmers.

2 Answers

They are in "non-free" which you need to enable.

link|improve this answer
feedback

makes sure you have the java repository configured in your apt respiratory list.

make sure to do an "apt-get update" before you try and install.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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