Unable to uninstall snapd 2.34.2 in 16.04












0















I've been having problems with upgrading snapd with apt-get. I've tried running dpkg --configure -a and sudo apt-get install -f, but the system hangs indefinitely setting up snapd. I've also read numerous posts on how to resolve this issue, but unfortunately none of them have worked. Some posts seem promising, but my main problem is that I cannot uninnstall snapd because the subprocess new pre-removal script returned error exit status 1. Right before this error message, the system says the job for snapd.service and snapd.socket have been canceled. I have tried everything I know to try, and searched around the net, but would appreciate some insight from you all about this issue!



So far, I have tried: sudo apt purge snapd and sudo apt purge snapd ubuntu-core-launcher squashfs-tools, but I get the same results.










share|improve this question




















  • 1





    what version of Ubuntu is this?

    – George Udosen
    Jan 2 at 22:13











  • Hi, I'm using version 16.04

    – myselfesteem
    Jan 2 at 22:14











  • Try this sudo apt purge snapd ubuntu-core-launcher squashfs-tools seen here ubuntuforums.org/showthread.php?t=2328152

    – George Udosen
    Jan 2 at 22:15











  • I have indeed tried this! Same result

    – myselfesteem
    Jan 2 at 22:17











  • Stop it first with sudo systemctl stop snapd then disable sudo systemctl disable snapd then try to remove it!

    – George Udosen
    Jan 2 at 22:19
















0















I've been having problems with upgrading snapd with apt-get. I've tried running dpkg --configure -a and sudo apt-get install -f, but the system hangs indefinitely setting up snapd. I've also read numerous posts on how to resolve this issue, but unfortunately none of them have worked. Some posts seem promising, but my main problem is that I cannot uninnstall snapd because the subprocess new pre-removal script returned error exit status 1. Right before this error message, the system says the job for snapd.service and snapd.socket have been canceled. I have tried everything I know to try, and searched around the net, but would appreciate some insight from you all about this issue!



So far, I have tried: sudo apt purge snapd and sudo apt purge snapd ubuntu-core-launcher squashfs-tools, but I get the same results.










share|improve this question




















  • 1





    what version of Ubuntu is this?

    – George Udosen
    Jan 2 at 22:13











  • Hi, I'm using version 16.04

    – myselfesteem
    Jan 2 at 22:14











  • Try this sudo apt purge snapd ubuntu-core-launcher squashfs-tools seen here ubuntuforums.org/showthread.php?t=2328152

    – George Udosen
    Jan 2 at 22:15











  • I have indeed tried this! Same result

    – myselfesteem
    Jan 2 at 22:17











  • Stop it first with sudo systemctl stop snapd then disable sudo systemctl disable snapd then try to remove it!

    – George Udosen
    Jan 2 at 22:19














0












0








0








I've been having problems with upgrading snapd with apt-get. I've tried running dpkg --configure -a and sudo apt-get install -f, but the system hangs indefinitely setting up snapd. I've also read numerous posts on how to resolve this issue, but unfortunately none of them have worked. Some posts seem promising, but my main problem is that I cannot uninnstall snapd because the subprocess new pre-removal script returned error exit status 1. Right before this error message, the system says the job for snapd.service and snapd.socket have been canceled. I have tried everything I know to try, and searched around the net, but would appreciate some insight from you all about this issue!



So far, I have tried: sudo apt purge snapd and sudo apt purge snapd ubuntu-core-launcher squashfs-tools, but I get the same results.










share|improve this question
















I've been having problems with upgrading snapd with apt-get. I've tried running dpkg --configure -a and sudo apt-get install -f, but the system hangs indefinitely setting up snapd. I've also read numerous posts on how to resolve this issue, but unfortunately none of them have worked. Some posts seem promising, but my main problem is that I cannot uninnstall snapd because the subprocess new pre-removal script returned error exit status 1. Right before this error message, the system says the job for snapd.service and snapd.socket have been canceled. I have tried everything I know to try, and searched around the net, but would appreciate some insight from you all about this issue!



So far, I have tried: sudo apt purge snapd and sudo apt purge snapd ubuntu-core-launcher squashfs-tools, but I get the same results.







apt package-management dpkg snap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 23:00







myselfesteem

















asked Jan 2 at 21:58









myselfesteemmyselfesteem

1013




1013








  • 1





    what version of Ubuntu is this?

    – George Udosen
    Jan 2 at 22:13











  • Hi, I'm using version 16.04

    – myselfesteem
    Jan 2 at 22:14











  • Try this sudo apt purge snapd ubuntu-core-launcher squashfs-tools seen here ubuntuforums.org/showthread.php?t=2328152

    – George Udosen
    Jan 2 at 22:15











  • I have indeed tried this! Same result

    – myselfesteem
    Jan 2 at 22:17











  • Stop it first with sudo systemctl stop snapd then disable sudo systemctl disable snapd then try to remove it!

    – George Udosen
    Jan 2 at 22:19














  • 1





    what version of Ubuntu is this?

    – George Udosen
    Jan 2 at 22:13











  • Hi, I'm using version 16.04

    – myselfesteem
    Jan 2 at 22:14











  • Try this sudo apt purge snapd ubuntu-core-launcher squashfs-tools seen here ubuntuforums.org/showthread.php?t=2328152

    – George Udosen
    Jan 2 at 22:15











  • I have indeed tried this! Same result

    – myselfesteem
    Jan 2 at 22:17











  • Stop it first with sudo systemctl stop snapd then disable sudo systemctl disable snapd then try to remove it!

    – George Udosen
    Jan 2 at 22:19








1




1





what version of Ubuntu is this?

– George Udosen
Jan 2 at 22:13





what version of Ubuntu is this?

– George Udosen
Jan 2 at 22:13













Hi, I'm using version 16.04

– myselfesteem
Jan 2 at 22:14





Hi, I'm using version 16.04

– myselfesteem
Jan 2 at 22:14













Try this sudo apt purge snapd ubuntu-core-launcher squashfs-tools seen here ubuntuforums.org/showthread.php?t=2328152

– George Udosen
Jan 2 at 22:15





Try this sudo apt purge snapd ubuntu-core-launcher squashfs-tools seen here ubuntuforums.org/showthread.php?t=2328152

– George Udosen
Jan 2 at 22:15













I have indeed tried this! Same result

– myselfesteem
Jan 2 at 22:17





I have indeed tried this! Same result

– myselfesteem
Jan 2 at 22:17













Stop it first with sudo systemctl stop snapd then disable sudo systemctl disable snapd then try to remove it!

– George Udosen
Jan 2 at 22:19





Stop it first with sudo systemctl stop snapd then disable sudo systemctl disable snapd then try to remove it!

– George Udosen
Jan 2 at 22:19










2 Answers
2






active

oldest

votes


















0














Try this solution:



sudo apt purge snapd ubuntu-core-launcher squashfs-tools


Found here.






share|improve this answer































    0














    Just to add more flesh to George's answer. I needed to




    1. cd /var/lib/dpkg/updates/

    2. sudo rm *

    3. sudo fuser -vki /var/lib/dpkg/lock (bc there was a lock on dpkg process)

    4. sudo systemctl stop snapd (stop the snapd process..if it's running)


    5. sudo rm -f /etc/apt/sources.list.d/* (solves: Internal Error no file name for snapd:amd64)

    6. sudo apt purge snapd ubuntu-core-launcher squashfs-tools


    I'm not sure if steps 1) and 2) are necessary, but at the end of the day, this is what worked for me. I'm not sure, but could my system still reinstall snapd when I do sudo apt-get update/upgrade?






    share|improve this answer


























    • Ok that it finally worked, run that update and upgrade command and let us know!

      – George Udosen
      Jan 3 at 6:33











    • update and upgrade works, no snapd problems!

      – myselfesteem
      Jan 4 at 1:46











    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%2f1106402%2funable-to-uninstall-snapd-2-34-2-in-16-04%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









    0














    Try this solution:



    sudo apt purge snapd ubuntu-core-launcher squashfs-tools


    Found here.






    share|improve this answer




























      0














      Try this solution:



      sudo apt purge snapd ubuntu-core-launcher squashfs-tools


      Found here.






      share|improve this answer


























        0












        0








        0







        Try this solution:



        sudo apt purge snapd ubuntu-core-launcher squashfs-tools


        Found here.






        share|improve this answer













        Try this solution:



        sudo apt purge snapd ubuntu-core-launcher squashfs-tools


        Found here.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 22:17









        George UdosenGeorge Udosen

        20.4k94367




        20.4k94367

























            0














            Just to add more flesh to George's answer. I needed to




            1. cd /var/lib/dpkg/updates/

            2. sudo rm *

            3. sudo fuser -vki /var/lib/dpkg/lock (bc there was a lock on dpkg process)

            4. sudo systemctl stop snapd (stop the snapd process..if it's running)


            5. sudo rm -f /etc/apt/sources.list.d/* (solves: Internal Error no file name for snapd:amd64)

            6. sudo apt purge snapd ubuntu-core-launcher squashfs-tools


            I'm not sure if steps 1) and 2) are necessary, but at the end of the day, this is what worked for me. I'm not sure, but could my system still reinstall snapd when I do sudo apt-get update/upgrade?






            share|improve this answer


























            • Ok that it finally worked, run that update and upgrade command and let us know!

              – George Udosen
              Jan 3 at 6:33











            • update and upgrade works, no snapd problems!

              – myselfesteem
              Jan 4 at 1:46
















            0














            Just to add more flesh to George's answer. I needed to




            1. cd /var/lib/dpkg/updates/

            2. sudo rm *

            3. sudo fuser -vki /var/lib/dpkg/lock (bc there was a lock on dpkg process)

            4. sudo systemctl stop snapd (stop the snapd process..if it's running)


            5. sudo rm -f /etc/apt/sources.list.d/* (solves: Internal Error no file name for snapd:amd64)

            6. sudo apt purge snapd ubuntu-core-launcher squashfs-tools


            I'm not sure if steps 1) and 2) are necessary, but at the end of the day, this is what worked for me. I'm not sure, but could my system still reinstall snapd when I do sudo apt-get update/upgrade?






            share|improve this answer


























            • Ok that it finally worked, run that update and upgrade command and let us know!

              – George Udosen
              Jan 3 at 6:33











            • update and upgrade works, no snapd problems!

              – myselfesteem
              Jan 4 at 1:46














            0












            0








            0







            Just to add more flesh to George's answer. I needed to




            1. cd /var/lib/dpkg/updates/

            2. sudo rm *

            3. sudo fuser -vki /var/lib/dpkg/lock (bc there was a lock on dpkg process)

            4. sudo systemctl stop snapd (stop the snapd process..if it's running)


            5. sudo rm -f /etc/apt/sources.list.d/* (solves: Internal Error no file name for snapd:amd64)

            6. sudo apt purge snapd ubuntu-core-launcher squashfs-tools


            I'm not sure if steps 1) and 2) are necessary, but at the end of the day, this is what worked for me. I'm not sure, but could my system still reinstall snapd when I do sudo apt-get update/upgrade?






            share|improve this answer















            Just to add more flesh to George's answer. I needed to




            1. cd /var/lib/dpkg/updates/

            2. sudo rm *

            3. sudo fuser -vki /var/lib/dpkg/lock (bc there was a lock on dpkg process)

            4. sudo systemctl stop snapd (stop the snapd process..if it's running)


            5. sudo rm -f /etc/apt/sources.list.d/* (solves: Internal Error no file name for snapd:amd64)

            6. sudo apt purge snapd ubuntu-core-launcher squashfs-tools


            I'm not sure if steps 1) and 2) are necessary, but at the end of the day, this is what worked for me. I'm not sure, but could my system still reinstall snapd when I do sudo apt-get update/upgrade?







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 3 at 3:26

























            answered Jan 3 at 2:35









            myselfesteemmyselfesteem

            1013




            1013













            • Ok that it finally worked, run that update and upgrade command and let us know!

              – George Udosen
              Jan 3 at 6:33











            • update and upgrade works, no snapd problems!

              – myselfesteem
              Jan 4 at 1:46



















            • Ok that it finally worked, run that update and upgrade command and let us know!

              – George Udosen
              Jan 3 at 6:33











            • update and upgrade works, no snapd problems!

              – myselfesteem
              Jan 4 at 1:46

















            Ok that it finally worked, run that update and upgrade command and let us know!

            – George Udosen
            Jan 3 at 6:33





            Ok that it finally worked, run that update and upgrade command and let us know!

            – George Udosen
            Jan 3 at 6:33













            update and upgrade works, no snapd problems!

            – myselfesteem
            Jan 4 at 1:46





            update and upgrade works, no snapd problems!

            – myselfesteem
            Jan 4 at 1:46


















            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106402%2funable-to-uninstall-snapd-2-34-2-in-16-04%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

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅