Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Sep 25 '10 at 14:04

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

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

3 Answers 3

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

share|improve this answer
add comment

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
add comment
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
1  
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
add comment

Your Answer

 
discard

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.