apt-get package is not available but is referred to by another package - but cannot find that package











up vote
3
down vote

favorite












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




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

  2. Was it just removed altogether; or

  3. 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 '14 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 '14 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 '14 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 '14 at 21:26






  • 1




    You've done an apt-get update right? I've heard that message can show up when a package has been removed from a repo, but you're APT cache doesn't know it yet.
    – Xen2050
    Dec 12 '14 at 14:43















up vote
3
down vote

favorite












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




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

  2. Was it just removed altogether; or

  3. 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 '14 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 '14 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 '14 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 '14 at 21:26






  • 1




    You've done an apt-get update right? I've heard that message can show up when a package has been removed from a repo, but you're APT cache doesn't know it yet.
    – Xen2050
    Dec 12 '14 at 14:43













up vote
3
down vote

favorite









up vote
3
down vote

favorite











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




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

  2. Was it just removed altogether; or

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










share|improve this question















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




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

  2. Was it just removed altogether; or

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







apt package-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:24









Community

1




1










asked Jan 16 '14 at 17:30









Bob Hogg

71116




71116












  • I very rarely see that message.
    – user25656
    Jan 16 '14 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 '14 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 '14 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 '14 at 21:26






  • 1




    You've done an apt-get update right? I've heard that message can show up when a package has been removed from a repo, but you're APT cache doesn't know it yet.
    – Xen2050
    Dec 12 '14 at 14:43


















  • I very rarely see that message.
    – user25656
    Jan 16 '14 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 '14 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 '14 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 '14 at 21:26






  • 1




    You've done an apt-get update right? I've heard that message can show up when a package has been removed from a repo, but you're APT cache doesn't know it yet.
    – Xen2050
    Dec 12 '14 at 14:43
















I very rarely see that message.
– user25656
Jan 16 '14 at 17:38




I very rarely see that message.
– user25656
Jan 16 '14 at 17:38




1




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 '14 at 17:38






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 '14 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 '14 at 17:39






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 '14 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 '14 at 21:26




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 '14 at 21:26




1




1




You've done an apt-get update right? I've heard that message can show up when a package has been removed from a repo, but you're APT cache doesn't know it yet.
– Xen2050
Dec 12 '14 at 14:43




You've done an apt-get update right? I've heard that message can show up when a package has been removed from a repo, but you're APT cache doesn't know it yet.
– Xen2050
Dec 12 '14 at 14:43










2 Answers
2






active

oldest

votes

















up vote
0
down vote













I had this kind of errors when the universe repos were not enabled (it was a minimal server install). Enabling them solved the issue (the package were provided by such repos). HTH.






share|improve this answer




























    up vote
    -1
    down vote














    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




    It means that a package have dependency, suggestion or recommendation to "somePackage", but somePackage itself and any associated meta data is not available. You should look, by yourself, for the replacement of somePackage (if the package was in the official repositories, it's very likely that there's a empty package that points to the replacement), 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. There's simply no way to do this programmatically.






    share|improve this answer























    • This is effectively a restatement of part of the question -- the questioner is aware it indicates that a package has been removed, he's trying to find a general way to determine what package is depending on the one named in the error message.
      – Zeiss Ikon
      Dec 16 '16 at 12:37










    • @ZeissIkon This is effectively a restatement of the answer: you can't.
      – Braiam
      Dec 16 '16 at 12:40










    • May want to clarify that in your answer, then. I didn't get that from what you wrote.
      – Zeiss Ikon
      Dec 16 '16 at 13:11











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f406488%2fapt-get-package-is-not-available-but-is-referred-to-by-another-package-but-can%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I had this kind of errors when the universe repos were not enabled (it was a minimal server install). Enabling them solved the issue (the package were provided by such repos). HTH.






    share|improve this answer

























      up vote
      0
      down vote













      I had this kind of errors when the universe repos were not enabled (it was a minimal server install). Enabling them solved the issue (the package were provided by such repos). HTH.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I had this kind of errors when the universe repos were not enabled (it was a minimal server install). Enabling them solved the issue (the package were provided by such repos). HTH.






        share|improve this answer












        I had this kind of errors when the universe repos were not enabled (it was a minimal server install). Enabling them solved the issue (the package were provided by such repos). HTH.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 29 at 7:53









        Antonello Piemonte

        16613




        16613
























            up vote
            -1
            down vote














            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




            It means that a package have dependency, suggestion or recommendation to "somePackage", but somePackage itself and any associated meta data is not available. You should look, by yourself, for the replacement of somePackage (if the package was in the official repositories, it's very likely that there's a empty package that points to the replacement), 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. There's simply no way to do this programmatically.






            share|improve this answer























            • This is effectively a restatement of part of the question -- the questioner is aware it indicates that a package has been removed, he's trying to find a general way to determine what package is depending on the one named in the error message.
              – Zeiss Ikon
              Dec 16 '16 at 12:37










            • @ZeissIkon This is effectively a restatement of the answer: you can't.
              – Braiam
              Dec 16 '16 at 12:40










            • May want to clarify that in your answer, then. I didn't get that from what you wrote.
              – Zeiss Ikon
              Dec 16 '16 at 13:11















            up vote
            -1
            down vote














            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




            It means that a package have dependency, suggestion or recommendation to "somePackage", but somePackage itself and any associated meta data is not available. You should look, by yourself, for the replacement of somePackage (if the package was in the official repositories, it's very likely that there's a empty package that points to the replacement), 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. There's simply no way to do this programmatically.






            share|improve this answer























            • This is effectively a restatement of part of the question -- the questioner is aware it indicates that a package has been removed, he's trying to find a general way to determine what package is depending on the one named in the error message.
              – Zeiss Ikon
              Dec 16 '16 at 12:37










            • @ZeissIkon This is effectively a restatement of the answer: you can't.
              – Braiam
              Dec 16 '16 at 12:40










            • May want to clarify that in your answer, then. I didn't get that from what you wrote.
              – Zeiss Ikon
              Dec 16 '16 at 13:11













            up vote
            -1
            down vote










            up vote
            -1
            down vote










            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




            It means that a package have dependency, suggestion or recommendation to "somePackage", but somePackage itself and any associated meta data is not available. You should look, by yourself, for the replacement of somePackage (if the package was in the official repositories, it's very likely that there's a empty package that points to the replacement), 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. There's simply no way to do this programmatically.






            share|improve this answer















            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




            It means that a package have dependency, suggestion or recommendation to "somePackage", but somePackage itself and any associated meta data is not available. You should look, by yourself, for the replacement of somePackage (if the package was in the official repositories, it's very likely that there's a empty package that points to the replacement), 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. There's simply no way to do this programmatically.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 16 '16 at 13:16

























            answered Jan 16 '14 at 19:40









            Braiam

            51.2k20135219




            51.2k20135219












            • This is effectively a restatement of part of the question -- the questioner is aware it indicates that a package has been removed, he's trying to find a general way to determine what package is depending on the one named in the error message.
              – Zeiss Ikon
              Dec 16 '16 at 12:37










            • @ZeissIkon This is effectively a restatement of the answer: you can't.
              – Braiam
              Dec 16 '16 at 12:40










            • May want to clarify that in your answer, then. I didn't get that from what you wrote.
              – Zeiss Ikon
              Dec 16 '16 at 13:11


















            • This is effectively a restatement of part of the question -- the questioner is aware it indicates that a package has been removed, he's trying to find a general way to determine what package is depending on the one named in the error message.
              – Zeiss Ikon
              Dec 16 '16 at 12:37










            • @ZeissIkon This is effectively a restatement of the answer: you can't.
              – Braiam
              Dec 16 '16 at 12:40










            • May want to clarify that in your answer, then. I didn't get that from what you wrote.
              – Zeiss Ikon
              Dec 16 '16 at 13:11
















            This is effectively a restatement of part of the question -- the questioner is aware it indicates that a package has been removed, he's trying to find a general way to determine what package is depending on the one named in the error message.
            – Zeiss Ikon
            Dec 16 '16 at 12:37




            This is effectively a restatement of part of the question -- the questioner is aware it indicates that a package has been removed, he's trying to find a general way to determine what package is depending on the one named in the error message.
            – Zeiss Ikon
            Dec 16 '16 at 12:37












            @ZeissIkon This is effectively a restatement of the answer: you can't.
            – Braiam
            Dec 16 '16 at 12:40




            @ZeissIkon This is effectively a restatement of the answer: you can't.
            – Braiam
            Dec 16 '16 at 12:40












            May want to clarify that in your answer, then. I didn't get that from what you wrote.
            – Zeiss Ikon
            Dec 16 '16 at 13:11




            May want to clarify that in your answer, then. I didn't get that from what you wrote.
            – Zeiss Ikon
            Dec 16 '16 at 13:11


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f406488%2fapt-get-package-is-not-available-but-is-referred-to-by-another-package-but-can%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido