Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 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) 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 ? – medigeek Feb 27 '12 at 16:15
Did you try a sudo apt-get update after changing your software mirrors? – Nitin Venkatesh 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 :) – Nitin Venkatesh Feb 28 '12 at 3:42
up vote 3 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


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.