Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I run a server with Ubuntu 10.04 (Lucid Lynx) Minimal Server, on amd64 system. I 'd like to install the openjdk packages (jre and jdk), but when I try

sudo apt-get install openjdk-6-jdk

I get

Package openjdk-6-jdk 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 openjdk-6-jdk has no installation candidate

And I 'd like to install this package andI don't know how, while it seems to be available here

share|improve this question
1  
(1) Do you have lucid main in your sources.list? Run cat /etc/apt/sources.list and provide the output in your question. (2) What do you mean by "minimal" server? Did you use the official server image (ubuntu-10.04*-server-*.iso) from releases.ubuntu.com/lucid ? –  medigeek Feb 27 '12 at 16:15
    
Did you try a sudo apt-get update after changing your software mirrors? –  nitstorm Feb 27 '12 at 16:16
    
Ok I tried apt-get clean and apt-get update and it worked. Thank you very much :-) –  Paris Feb 27 '12 at 17:23
    
@bodhi.zazen Done :) –  nitstorm Feb 28 '12 at 3:42

2 Answers 2

up vote 2 down vote accepted

Please try a sudo apt-get clean && sudo apt-get update after changing your software mirrors :)

share|improve this answer

the error says "the package ....or is only available from another source"

Check your sources.list, see if it contains a non-standard ubuntu server.

share|improve this answer

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.