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.

When I try to install a package with apt-get install, I'll occasionally see a message of the form

Package somePackage 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 somePackage has no installation candidate

Does anyone know how to find out what package(s) it is actually referring to?

Note:

I looked at "But is referred to by another package." - Finding that package and it suggested using apt-cache search to find the package that refers to it. Yet if I do this for somePackage, I won't get any output.

For example, apt-cache search openoffice.org-hunspell returns no output, but apt-cache search gcc returns several packages.

Edit:

There are several different packages that have caused the first part of the problem for me in the past, but the apt-cache search not turning anything up has (so far) only happened for the openoffice.org-hunspell package.

I guess that what I want to know the most is this: when I see the error message "Package somePackage has no installation candidate," I'd like to have a sure-fire way to know

a) Was it replaced with another package (in which case knowing what the new package name is would be helpful); or

b) Was it just removed altogether; or

c) Is there some problem with /etc/apt/sources.list that means I can't get it.

share|improve this question
    
I very rarely see that message. –  user25656 Jan 16 at 17:38
1  
Is there only one package this is happening to for you, or many? And if one, which package? (synaptic might be another possible tool for checking packages you want to install, as well) –  Jez W Jan 16 at 17:38
    
Bad Example - OpenOffice is now Third party, use Libreoffice instead. If you want to install it, see here. Anyway, what version of Ubuntu are you using? –  Wilf Jan 16 at 17:39
    
I'm on 12.04. So technically Libreoffice is already installed. Yet there doesn't seem to be a corresponding package with the libreoffice prefix. For example, there doesn't seem to be a package called "libreoffice-hunspell". –  Bob Hogg Jan 16 at 21:26
add comment

1 Answer 1

It means that some package may be dependency, suggestion or recommendation but the package itself it's not available. You should look for the replacement of the package, in case the package has been renamed, or forget about it, in case you are trying to get a package that was removed from the repositories for any motive.

share|improve this answer
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.