Package operation failed

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite












When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:



Package operation failed. Installation or removal of package failed.


I have tried:



apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove






share|improve this question






















  • fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
    – bgoodr
    Jul 13 at 15:04











  • Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
    – vanadium
    Jul 13 at 15:17










  • Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
    – David Foerster
    Jul 14 at 18:35










  • It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
    – fixit7
    Jul 15 at 19:42














up vote
3
down vote

favorite












When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:



Package operation failed. Installation or removal of package failed.


I have tried:



apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove






share|improve this question






















  • fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
    – bgoodr
    Jul 13 at 15:04











  • Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
    – vanadium
    Jul 13 at 15:17










  • Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
    – David Foerster
    Jul 14 at 18:35










  • It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
    – fixit7
    Jul 15 at 19:42












up vote
3
down vote

favorite









up vote
3
down vote

favorite











When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:



Package operation failed. Installation or removal of package failed.


I have tried:



apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove






share|improve this question














When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:



Package operation failed. Installation or removal of package failed.


I have tried:



apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove








share|improve this question













share|improve this question




share|improve this question








edited Jul 13 at 22:00









Tim

18.8k1482133




18.8k1482133










asked Apr 24 at 20:18









fixit7

508318




508318











  • fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
    – bgoodr
    Jul 13 at 15:04











  • Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
    – vanadium
    Jul 13 at 15:17










  • Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
    – David Foerster
    Jul 14 at 18:35










  • It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
    – fixit7
    Jul 15 at 19:42
















  • fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
    – bgoodr
    Jul 13 at 15:04











  • Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
    – vanadium
    Jul 13 at 15:17










  • Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
    – David Foerster
    Jul 14 at 18:35










  • It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
    – fixit7
    Jul 15 at 19:42















fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
– bgoodr
Jul 13 at 15:04





fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
– bgoodr
Jul 13 at 15:04













Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
– vanadium
Jul 13 at 15:17




Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
– vanadium
Jul 13 at 15:17












Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
– David Foerster
Jul 14 at 18:35




Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
– David Foerster
Jul 14 at 18:35












It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
– fixit7
Jul 15 at 19:42




It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
– fixit7
Jul 15 at 19:42










4 Answers
4






active

oldest

votes

















up vote
1
down vote













First command is worth to run:



sudo dpkg --configure -a


Then step by step:



sudo apt autoclean
sudo apt clean
sudo rm /var/lib/apt/lists/* -vf
sudo apt update





share|improve this answer




















  • I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/… so I have not proceeded to do any repair yet, just listing what I have so far.
    – bgoodr
    Jul 16 at 13:32










  • I next tried sudo apt upgrade and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
    – bgoodr
    Jul 18 at 13:32










  • Tried sudo apt autoremove as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
    – bgoodr
    Jul 18 at 13:35

















up vote
1
down vote













I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:



dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):


and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.



Package operation failed is the result.



Now running Software Updater finishes successfully and is requiring a reboot.






share|improve this answer



























    up vote
    0
    down vote













    A few other things to try:



    sudo apt-get --fix-broken install


    That normally fixes partial or broken installations. If it fails, add the output messages to your original question.






    share|improve this answer




















    • I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running sudo apt autoremove at askubuntu.com/questions/1027919/… in the other answer).
      – bgoodr
      Jul 19 at 1:16


















    up vote
    0
    down vote













    This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.



    Try forcefully deleting and refreshing your package lists with new remote ones.



    sudo rm /var/lib/apt/lists/* -vf
    sudo apt update


    Once done, try cleaning and removing unnecessary files & packages.



    sudo apt autoclean
    sudo apt clean
    sudo apt autoremove


    Remove the package you are having trouble with.



    sudo apt remove <package>


    Next, try getting dpkg to resolve the issue on it's own.



    sudo dpkg --configure -a


    Next, try getting apt to resolve the issue on it's own.



    sudo apt -f install


    Last, try installing it again.



    sudo apt install <package>


    You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.






    share|improve this answer




















    • Earlier at askubuntu.com/questions/1027919/… I had done all steps up to, but not including, the sudo apt remove <package> step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
      – bgoodr
      Jul 19 at 1:21










    • I continued on with sudo dpkg --configure -a and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
      – bgoodr
      Jul 19 at 5:07










    • I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
      – bgoodr
      Jul 19 at 5:17











    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1027919%2fpackage-operation-failed%23new-answer', 'question_page');

    );

    Post as a guest






























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    First command is worth to run:



    sudo dpkg --configure -a


    Then step by step:



    sudo apt autoclean
    sudo apt clean
    sudo rm /var/lib/apt/lists/* -vf
    sudo apt update





    share|improve this answer




















    • I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/… so I have not proceeded to do any repair yet, just listing what I have so far.
      – bgoodr
      Jul 16 at 13:32










    • I next tried sudo apt upgrade and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
      – bgoodr
      Jul 18 at 13:32










    • Tried sudo apt autoremove as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
      – bgoodr
      Jul 18 at 13:35














    up vote
    1
    down vote













    First command is worth to run:



    sudo dpkg --configure -a


    Then step by step:



    sudo apt autoclean
    sudo apt clean
    sudo rm /var/lib/apt/lists/* -vf
    sudo apt update





    share|improve this answer




















    • I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/… so I have not proceeded to do any repair yet, just listing what I have so far.
      – bgoodr
      Jul 16 at 13:32










    • I next tried sudo apt upgrade and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
      – bgoodr
      Jul 18 at 13:32










    • Tried sudo apt autoremove as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
      – bgoodr
      Jul 18 at 13:35












    up vote
    1
    down vote










    up vote
    1
    down vote









    First command is worth to run:



    sudo dpkg --configure -a


    Then step by step:



    sudo apt autoclean
    sudo apt clean
    sudo rm /var/lib/apt/lists/* -vf
    sudo apt update





    share|improve this answer












    First command is worth to run:



    sudo dpkg --configure -a


    Then step by step:



    sudo apt autoclean
    sudo apt clean
    sudo rm /var/lib/apt/lists/* -vf
    sudo apt update






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jul 13 at 21:45









    Bob

    9419




    9419











    • I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/… so I have not proceeded to do any repair yet, just listing what I have so far.
      – bgoodr
      Jul 16 at 13:32










    • I next tried sudo apt upgrade and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
      – bgoodr
      Jul 18 at 13:32










    • Tried sudo apt autoremove as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
      – bgoodr
      Jul 18 at 13:35
















    • I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/… so I have not proceeded to do any repair yet, just listing what I have so far.
      – bgoodr
      Jul 16 at 13:32










    • I next tried sudo apt upgrade and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
      – bgoodr
      Jul 18 at 13:32










    • Tried sudo apt autoremove as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
      – bgoodr
      Jul 18 at 13:35















    I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/… so I have not proceeded to do any repair yet, just listing what I have so far.
    – bgoodr
    Jul 16 at 13:32




    I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/… so I have not proceeded to do any repair yet, just listing what I have so far.
    – bgoodr
    Jul 16 at 13:32












    I next tried sudo apt upgrade and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
    – bgoodr
    Jul 18 at 13:32




    I next tried sudo apt upgrade and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
    – bgoodr
    Jul 18 at 13:32












    Tried sudo apt autoremove as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
    – bgoodr
    Jul 18 at 13:35




    Tried sudo apt autoremove as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
    – bgoodr
    Jul 18 at 13:35












    up vote
    1
    down vote













    I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:



    dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):


    and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.



    Package operation failed is the result.



    Now running Software Updater finishes successfully and is requiring a reboot.






    share|improve this answer
























      up vote
      1
      down vote













      I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:



      dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):


      and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.



      Package operation failed is the result.



      Now running Software Updater finishes successfully and is requiring a reboot.






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:



        dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):


        and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.



        Package operation failed is the result.



        Now running Software Updater finishes successfully and is requiring a reboot.






        share|improve this answer












        I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:



        dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):


        and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.



        Package operation failed is the result.



        Now running Software Updater finishes successfully and is requiring a reboot.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 19 at 5:22









        bgoodr

        4931519




        4931519




















            up vote
            0
            down vote













            A few other things to try:



            sudo apt-get --fix-broken install


            That normally fixes partial or broken installations. If it fails, add the output messages to your original question.






            share|improve this answer




















            • I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running sudo apt autoremove at askubuntu.com/questions/1027919/… in the other answer).
              – bgoodr
              Jul 19 at 1:16















            up vote
            0
            down vote













            A few other things to try:



            sudo apt-get --fix-broken install


            That normally fixes partial or broken installations. If it fails, add the output messages to your original question.






            share|improve this answer




















            • I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running sudo apt autoremove at askubuntu.com/questions/1027919/… in the other answer).
              – bgoodr
              Jul 19 at 1:16













            up vote
            0
            down vote










            up vote
            0
            down vote









            A few other things to try:



            sudo apt-get --fix-broken install


            That normally fixes partial or broken installations. If it fails, add the output messages to your original question.






            share|improve this answer












            A few other things to try:



            sudo apt-get --fix-broken install


            That normally fixes partial or broken installations. If it fails, add the output messages to your original question.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 13 at 21:29









            Bernard Wei

            772313




            772313











            • I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running sudo apt autoremove at askubuntu.com/questions/1027919/… in the other answer).
              – bgoodr
              Jul 19 at 1:16

















            • I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running sudo apt autoremove at askubuntu.com/questions/1027919/… in the other answer).
              – bgoodr
              Jul 19 at 1:16
















            I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running sudo apt autoremove at askubuntu.com/questions/1027919/… in the other answer).
            – bgoodr
            Jul 19 at 1:16





            I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running sudo apt autoremove at askubuntu.com/questions/1027919/… in the other answer).
            – bgoodr
            Jul 19 at 1:16











            up vote
            0
            down vote













            This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.



            Try forcefully deleting and refreshing your package lists with new remote ones.



            sudo rm /var/lib/apt/lists/* -vf
            sudo apt update


            Once done, try cleaning and removing unnecessary files & packages.



            sudo apt autoclean
            sudo apt clean
            sudo apt autoremove


            Remove the package you are having trouble with.



            sudo apt remove <package>


            Next, try getting dpkg to resolve the issue on it's own.



            sudo dpkg --configure -a


            Next, try getting apt to resolve the issue on it's own.



            sudo apt -f install


            Last, try installing it again.



            sudo apt install <package>


            You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.






            share|improve this answer




















            • Earlier at askubuntu.com/questions/1027919/… I had done all steps up to, but not including, the sudo apt remove <package> step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
              – bgoodr
              Jul 19 at 1:21










            • I continued on with sudo dpkg --configure -a and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
              – bgoodr
              Jul 19 at 5:07










            • I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
              – bgoodr
              Jul 19 at 5:17















            up vote
            0
            down vote













            This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.



            Try forcefully deleting and refreshing your package lists with new remote ones.



            sudo rm /var/lib/apt/lists/* -vf
            sudo apt update


            Once done, try cleaning and removing unnecessary files & packages.



            sudo apt autoclean
            sudo apt clean
            sudo apt autoremove


            Remove the package you are having trouble with.



            sudo apt remove <package>


            Next, try getting dpkg to resolve the issue on it's own.



            sudo dpkg --configure -a


            Next, try getting apt to resolve the issue on it's own.



            sudo apt -f install


            Last, try installing it again.



            sudo apt install <package>


            You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.






            share|improve this answer




















            • Earlier at askubuntu.com/questions/1027919/… I had done all steps up to, but not including, the sudo apt remove <package> step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
              – bgoodr
              Jul 19 at 1:21










            • I continued on with sudo dpkg --configure -a and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
              – bgoodr
              Jul 19 at 5:07










            • I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
              – bgoodr
              Jul 19 at 5:17













            up vote
            0
            down vote










            up vote
            0
            down vote









            This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.



            Try forcefully deleting and refreshing your package lists with new remote ones.



            sudo rm /var/lib/apt/lists/* -vf
            sudo apt update


            Once done, try cleaning and removing unnecessary files & packages.



            sudo apt autoclean
            sudo apt clean
            sudo apt autoremove


            Remove the package you are having trouble with.



            sudo apt remove <package>


            Next, try getting dpkg to resolve the issue on it's own.



            sudo dpkg --configure -a


            Next, try getting apt to resolve the issue on it's own.



            sudo apt -f install


            Last, try installing it again.



            sudo apt install <package>


            You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.






            share|improve this answer












            This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.



            Try forcefully deleting and refreshing your package lists with new remote ones.



            sudo rm /var/lib/apt/lists/* -vf
            sudo apt update


            Once done, try cleaning and removing unnecessary files & packages.



            sudo apt autoclean
            sudo apt clean
            sudo apt autoremove


            Remove the package you are having trouble with.



            sudo apt remove <package>


            Next, try getting dpkg to resolve the issue on it's own.



            sudo dpkg --configure -a


            Next, try getting apt to resolve the issue on it's own.



            sudo apt -f install


            Last, try installing it again.



            sudo apt install <package>


            You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 13 at 22:01









            XDASyndicate

            11




            11











            • Earlier at askubuntu.com/questions/1027919/… I had done all steps up to, but not including, the sudo apt remove <package> step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
              – bgoodr
              Jul 19 at 1:21










            • I continued on with sudo dpkg --configure -a and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
              – bgoodr
              Jul 19 at 5:07










            • I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
              – bgoodr
              Jul 19 at 5:17

















            • Earlier at askubuntu.com/questions/1027919/… I had done all steps up to, but not including, the sudo apt remove <package> step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
              – bgoodr
              Jul 19 at 1:21










            • I continued on with sudo dpkg --configure -a and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
              – bgoodr
              Jul 19 at 5:07










            • I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
              – bgoodr
              Jul 19 at 5:17
















            Earlier at askubuntu.com/questions/1027919/… I had done all steps up to, but not including, the sudo apt remove <package> step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
            – bgoodr
            Jul 19 at 1:21




            Earlier at askubuntu.com/questions/1027919/… I had done all steps up to, but not including, the sudo apt remove <package> step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
            – bgoodr
            Jul 19 at 1:21












            I continued on with sudo dpkg --configure -a and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
            – bgoodr
            Jul 19 at 5:07




            I continued on with sudo dpkg --configure -a and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
            – bgoodr
            Jul 19 at 5:07












            I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
            – bgoodr
            Jul 19 at 5:17





            I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
            – bgoodr
            Jul 19 at 5:17


















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027919%2fpackage-operation-failed%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491