Apt/Synaptic needs to reinstall package but can't find the archive for it












27














Running Synaptic I get the following error message:



E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.


Upon accepting the message, Synaptic quits.










share|improve this question




















  • 3




    What set of instructions / web site were you following and what problem were you having ?
    – Panther
    Dec 17 '11 at 5:29










  • Related: Fix half-installed package, How to fix “Package is in a very bad inconsistent state” error?
    – Eliah Kagan
    Oct 13 '17 at 13:21
















27














Running Synaptic I get the following error message:



E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.


Upon accepting the message, Synaptic quits.










share|improve this question




















  • 3




    What set of instructions / web site were you following and what problem were you having ?
    – Panther
    Dec 17 '11 at 5:29










  • Related: Fix half-installed package, How to fix “Package is in a very bad inconsistent state” error?
    – Eliah Kagan
    Oct 13 '17 at 13:21














27












27








27


8





Running Synaptic I get the following error message:



E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.


Upon accepting the message, Synaptic quits.










share|improve this question















Running Synaptic I get the following error message:



E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.


Upon accepting the message, Synaptic quits.







apt package-management synaptic






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 20 '17 at 17:02









Anwar

55.7k22143252




55.7k22143252










asked Dec 17 '11 at 5:07









David

146123




146123








  • 3




    What set of instructions / web site were you following and what problem were you having ?
    – Panther
    Dec 17 '11 at 5:29










  • Related: Fix half-installed package, How to fix “Package is in a very bad inconsistent state” error?
    – Eliah Kagan
    Oct 13 '17 at 13:21














  • 3




    What set of instructions / web site were you following and what problem were you having ?
    – Panther
    Dec 17 '11 at 5:29










  • Related: Fix half-installed package, How to fix “Package is in a very bad inconsistent state” error?
    – Eliah Kagan
    Oct 13 '17 at 13:21








3




3




What set of instructions / web site were you following and what problem were you having ?
– Panther
Dec 17 '11 at 5:29




What set of instructions / web site were you following and what problem were you having ?
– Panther
Dec 17 '11 at 5:29












Related: Fix half-installed package, How to fix “Package is in a very bad inconsistent state” error?
– Eliah Kagan
Oct 13 '17 at 13:21




Related: Fix half-installed package, How to fix “Package is in a very bad inconsistent state” error?
– Eliah Kagan
Oct 13 '17 at 13:21










3 Answers
3






active

oldest

votes


















56














Well we may need a few steps to fix this.





  1. Start with:



    sudo dpkg --remove --force-all hl1440lpr



  2. If that fails:



    sudo rm -i /var/lib/dpkg/info/hl1440lpr.*
    sudo dpkg --remove --force-remove-reinstreq hl1440lpr



  3. Confirm Apt is fixed. The following command should return no errors:



    sudo apt-get update







share|improve this answer























  • I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux.
    – dylan murphy
    Oct 23 '12 at 21:55






  • 1




    Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr.
    – v2r
    Dec 27 '14 at 20:01












  • Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server)
    – Shautieh
    Jul 31 '15 at 18:00










  • This is black magic and it works. Thanks!
    – jnylen
    Oct 15 at 4:25



















6














It turns out, this wouldn't repair using the regular commands because I had disabled the multiverse repository in the software and updates window, after installing the package.



I read to do this in a post somewhere else, and it wasn't until another post I read that had me double check to make sure it was ENABLED, then I realized I never should have disabled that in the first place.



Enabling the multiverse repository again enabled me to reinstall the package.





So, generally if this sorts of errors happen, make sure you haven't disabled the software source from which this package comes.






share|improve this answer































    3














    dpkg --remove --force-remove-reinstreq   broken---stuff


    (plus file erasing)



    works like a charm. synaptic should offer this function instead of dying and leaving people with a huge mess. synaptic is not user friendly.






    share|improve this answer



















    • 1




      you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop.
      – ravery
      Jul 5 '17 at 16:44











    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',
    autoActivateHeartbeat: false,
    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%2f88371%2fapt-synaptic-needs-to-reinstall-package-but-cant-find-the-archive-for-it%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    56














    Well we may need a few steps to fix this.





    1. Start with:



      sudo dpkg --remove --force-all hl1440lpr



    2. If that fails:



      sudo rm -i /var/lib/dpkg/info/hl1440lpr.*
      sudo dpkg --remove --force-remove-reinstreq hl1440lpr



    3. Confirm Apt is fixed. The following command should return no errors:



      sudo apt-get update







    share|improve this answer























    • I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux.
      – dylan murphy
      Oct 23 '12 at 21:55






    • 1




      Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr.
      – v2r
      Dec 27 '14 at 20:01












    • Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server)
      – Shautieh
      Jul 31 '15 at 18:00










    • This is black magic and it works. Thanks!
      – jnylen
      Oct 15 at 4:25
















    56














    Well we may need a few steps to fix this.





    1. Start with:



      sudo dpkg --remove --force-all hl1440lpr



    2. If that fails:



      sudo rm -i /var/lib/dpkg/info/hl1440lpr.*
      sudo dpkg --remove --force-remove-reinstreq hl1440lpr



    3. Confirm Apt is fixed. The following command should return no errors:



      sudo apt-get update







    share|improve this answer























    • I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux.
      – dylan murphy
      Oct 23 '12 at 21:55






    • 1




      Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr.
      – v2r
      Dec 27 '14 at 20:01












    • Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server)
      – Shautieh
      Jul 31 '15 at 18:00










    • This is black magic and it works. Thanks!
      – jnylen
      Oct 15 at 4:25














    56












    56








    56






    Well we may need a few steps to fix this.





    1. Start with:



      sudo dpkg --remove --force-all hl1440lpr



    2. If that fails:



      sudo rm -i /var/lib/dpkg/info/hl1440lpr.*
      sudo dpkg --remove --force-remove-reinstreq hl1440lpr



    3. Confirm Apt is fixed. The following command should return no errors:



      sudo apt-get update







    share|improve this answer














    Well we may need a few steps to fix this.





    1. Start with:



      sudo dpkg --remove --force-all hl1440lpr



    2. If that fails:



      sudo rm -i /var/lib/dpkg/info/hl1440lpr.*
      sudo dpkg --remove --force-remove-reinstreq hl1440lpr



    3. Confirm Apt is fixed. The following command should return no errors:



      sudo apt-get update








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Oct 15 at 8:22









    David Foerster

    27.7k1364109




    27.7k1364109










    answered Dec 17 '11 at 5:28









    Panther

    77.9k13156258




    77.9k13156258












    • I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux.
      – dylan murphy
      Oct 23 '12 at 21:55






    • 1




      Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr.
      – v2r
      Dec 27 '14 at 20:01












    • Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server)
      – Shautieh
      Jul 31 '15 at 18:00










    • This is black magic and it works. Thanks!
      – jnylen
      Oct 15 at 4:25


















    • I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux.
      – dylan murphy
      Oct 23 '12 at 21:55






    • 1




      Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr.
      – v2r
      Dec 27 '14 at 20:01












    • Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server)
      – Shautieh
      Jul 31 '15 at 18:00










    • This is black magic and it works. Thanks!
      – jnylen
      Oct 15 at 4:25
















    I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux.
    – dylan murphy
    Oct 23 '12 at 21:55




    I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux.
    – dylan murphy
    Oct 23 '12 at 21:55




    1




    1




    Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr.
    – v2r
    Dec 27 '14 at 20:01






    Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr.
    – v2r
    Dec 27 '14 at 20:01














    Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server)
    – Shautieh
    Jul 31 '15 at 18:00




    Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server)
    – Shautieh
    Jul 31 '15 at 18:00












    This is black magic and it works. Thanks!
    – jnylen
    Oct 15 at 4:25




    This is black magic and it works. Thanks!
    – jnylen
    Oct 15 at 4:25













    6














    It turns out, this wouldn't repair using the regular commands because I had disabled the multiverse repository in the software and updates window, after installing the package.



    I read to do this in a post somewhere else, and it wasn't until another post I read that had me double check to make sure it was ENABLED, then I realized I never should have disabled that in the first place.



    Enabling the multiverse repository again enabled me to reinstall the package.





    So, generally if this sorts of errors happen, make sure you haven't disabled the software source from which this package comes.






    share|improve this answer




























      6














      It turns out, this wouldn't repair using the regular commands because I had disabled the multiverse repository in the software and updates window, after installing the package.



      I read to do this in a post somewhere else, and it wasn't until another post I read that had me double check to make sure it was ENABLED, then I realized I never should have disabled that in the first place.



      Enabling the multiverse repository again enabled me to reinstall the package.





      So, generally if this sorts of errors happen, make sure you haven't disabled the software source from which this package comes.






      share|improve this answer


























        6












        6








        6






        It turns out, this wouldn't repair using the regular commands because I had disabled the multiverse repository in the software and updates window, after installing the package.



        I read to do this in a post somewhere else, and it wasn't until another post I read that had me double check to make sure it was ENABLED, then I realized I never should have disabled that in the first place.



        Enabling the multiverse repository again enabled me to reinstall the package.





        So, generally if this sorts of errors happen, make sure you haven't disabled the software source from which this package comes.






        share|improve this answer














        It turns out, this wouldn't repair using the regular commands because I had disabled the multiverse repository in the software and updates window, after installing the package.



        I read to do this in a post somewhere else, and it wasn't until another post I read that had me double check to make sure it was ENABLED, then I realized I never should have disabled that in the first place.



        Enabling the multiverse repository again enabled me to reinstall the package.





        So, generally if this sorts of errors happen, make sure you haven't disabled the software source from which this package comes.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 13 '16 at 9:49









        Anwar

        55.7k22143252




        55.7k22143252










        answered Jun 16 '14 at 3:15









        EmileBeaulieu

        7613




        7613























            3














            dpkg --remove --force-remove-reinstreq   broken---stuff


            (plus file erasing)



            works like a charm. synaptic should offer this function instead of dying and leaving people with a huge mess. synaptic is not user friendly.






            share|improve this answer



















            • 1




              you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop.
              – ravery
              Jul 5 '17 at 16:44
















            3














            dpkg --remove --force-remove-reinstreq   broken---stuff


            (plus file erasing)



            works like a charm. synaptic should offer this function instead of dying and leaving people with a huge mess. synaptic is not user friendly.






            share|improve this answer



















            • 1




              you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop.
              – ravery
              Jul 5 '17 at 16:44














            3












            3








            3






            dpkg --remove --force-remove-reinstreq   broken---stuff


            (plus file erasing)



            works like a charm. synaptic should offer this function instead of dying and leaving people with a huge mess. synaptic is not user friendly.






            share|improve this answer














            dpkg --remove --force-remove-reinstreq   broken---stuff


            (plus file erasing)



            works like a charm. synaptic should offer this function instead of dying and leaving people with a huge mess. synaptic is not user friendly.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 18 '15 at 21:50









            BuZZ-dEE

            9,085115169




            9,085115169










            answered Sep 18 '15 at 21:30









            synaptic non lover

            311




            311








            • 1




              you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop.
              – ravery
              Jul 5 '17 at 16:44














            • 1




              you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop.
              – ravery
              Jul 5 '17 at 16:44








            1




            1




            you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop.
            – ravery
            Jul 5 '17 at 16:44




            you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop.
            – ravery
            Jul 5 '17 at 16:44


















            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%2f88371%2fapt-synaptic-needs-to-reinstall-package-but-cant-find-the-archive-for-it%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

            Mont Emei

            Province de Neuquén

            Journaliste