Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from Sep 25 '10 at 14:04

This question came from our site for professional and enthusiast programmers. 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

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

share|improve this answer

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.

share|improve this answer
Update the package index:

# sudo apt-get update

Install yui-compressor deb package:

# sudo apt-get install yui-compressor

i guess a lot of people wanted this enough they made a package for it... glad since java is a beast to maintain...

share|improve this answer
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. – kinokijuf Aug 19 '12 at 17:39

Your Answer


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.