The PackageKit Deamon has crashed












1















I can't update on Kubuntu 18.10. I have 20 packages, when updating from GUI i get:
The PackageKit Deamon has crashed



From terminal:
sudo apt-get update && sudo apt-get upgrade -y I get:



E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


I tried this without luck: https://itsfoss.com/could-not-get-lock-error/comment-page-5/



The day after i get:



E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.



Running: sudo dpkg --configure -a



Setting up snapd (2.37.1+18.10) ...
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.


systemctl status snapd.service



● snapd.service - Snappy daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; v
Active: deactivating (stop-sigterm) (Result: timeout)
Main PID: 22246 (snapd)
Tasks: 12 (limit: 4915)
Memory: 268.4M
CGroup: /system.slice/snapd.service
├─22246 /usr/lib/snapd/snapd
├─22319 apparmor_parser --replace --write-cache -O no
└─22320 apparmor_parser --replace --write-cache -O no

Feb 13 11:46:58 xxxx systemd[1]: Starting Snappy daemon...
Feb 13 11:46:58 xxxx snapd[22246]: AppArmor status: apparmor is
Feb 13 11:46:59 xxxx snapd[22246]: helpers.go:145: error trying
Feb 13 11:46:59 xxxx systemd[1]: snapd.service: Start operation


journalctl -xe



-- Subject: Unit snapd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit snapd.service has finished shutting down.
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: Starting Snappy daemon...


I can't run: sudo dpkg --configure -a
I get: dpkg: error: dpkg frontend is locked by another process



lsof /var/lib/dpkg/lock 


everything is dead.



I believe I have to reinstall a new lock, I don't know how to do so?



sudo touch /var/lib/dpkg/lock


not working.










share|improve this question





























    1















    I can't update on Kubuntu 18.10. I have 20 packages, when updating from GUI i get:
    The PackageKit Deamon has crashed



    From terminal:
    sudo apt-get update && sudo apt-get upgrade -y I get:



    E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
    E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


    I tried this without luck: https://itsfoss.com/could-not-get-lock-error/comment-page-5/



    The day after i get:



    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
    -a' to correct the problem.



    Running: sudo dpkg --configure -a



    Setting up snapd (2.37.1+18.10) ...
    snapd.failure.service is a disabled or a static unit, not starting it.
    snapd.snap-repair.service is a disabled or a static unit, not starting it.


    systemctl status snapd.service



    ● snapd.service - Snappy daemon
    Loaded: loaded (/lib/systemd/system/snapd.service; enabled; v
    Active: deactivating (stop-sigterm) (Result: timeout)
    Main PID: 22246 (snapd)
    Tasks: 12 (limit: 4915)
    Memory: 268.4M
    CGroup: /system.slice/snapd.service
    ├─22246 /usr/lib/snapd/snapd
    ├─22319 apparmor_parser --replace --write-cache -O no
    └─22320 apparmor_parser --replace --write-cache -O no

    Feb 13 11:46:58 xxxx systemd[1]: Starting Snappy daemon...
    Feb 13 11:46:58 xxxx snapd[22246]: AppArmor status: apparmor is
    Feb 13 11:46:59 xxxx snapd[22246]: helpers.go:145: error trying
    Feb 13 11:46:59 xxxx systemd[1]: snapd.service: Start operation


    journalctl -xe



    -- Subject: Unit snapd.service has finished shutting down
    -- Defined-By: systemd
    -- Support: http://www.ubuntu.com/support
    --
    -- Unit snapd.service has finished shutting down.
    Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
    Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
    Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
    Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
    Feb 13 11:47:47 xxxx systemd[1]: Starting Snappy daemon...


    I can't run: sudo dpkg --configure -a
    I get: dpkg: error: dpkg frontend is locked by another process



    lsof /var/lib/dpkg/lock 


    everything is dead.



    I believe I have to reinstall a new lock, I don't know how to do so?



    sudo touch /var/lib/dpkg/lock


    not working.










    share|improve this question



























      1












      1








      1








      I can't update on Kubuntu 18.10. I have 20 packages, when updating from GUI i get:
      The PackageKit Deamon has crashed



      From terminal:
      sudo apt-get update && sudo apt-get upgrade -y I get:



      E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
      E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


      I tried this without luck: https://itsfoss.com/could-not-get-lock-error/comment-page-5/



      The day after i get:



      E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
      -a' to correct the problem.



      Running: sudo dpkg --configure -a



      Setting up snapd (2.37.1+18.10) ...
      snapd.failure.service is a disabled or a static unit, not starting it.
      snapd.snap-repair.service is a disabled or a static unit, not starting it.


      systemctl status snapd.service



      ● snapd.service - Snappy daemon
      Loaded: loaded (/lib/systemd/system/snapd.service; enabled; v
      Active: deactivating (stop-sigterm) (Result: timeout)
      Main PID: 22246 (snapd)
      Tasks: 12 (limit: 4915)
      Memory: 268.4M
      CGroup: /system.slice/snapd.service
      ├─22246 /usr/lib/snapd/snapd
      ├─22319 apparmor_parser --replace --write-cache -O no
      └─22320 apparmor_parser --replace --write-cache -O no

      Feb 13 11:46:58 xxxx systemd[1]: Starting Snappy daemon...
      Feb 13 11:46:58 xxxx snapd[22246]: AppArmor status: apparmor is
      Feb 13 11:46:59 xxxx snapd[22246]: helpers.go:145: error trying
      Feb 13 11:46:59 xxxx systemd[1]: snapd.service: Start operation


      journalctl -xe



      -- Subject: Unit snapd.service has finished shutting down
      -- Defined-By: systemd
      -- Support: http://www.ubuntu.com/support
      --
      -- Unit snapd.service has finished shutting down.
      Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
      Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
      Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
      Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
      Feb 13 11:47:47 xxxx systemd[1]: Starting Snappy daemon...


      I can't run: sudo dpkg --configure -a
      I get: dpkg: error: dpkg frontend is locked by another process



      lsof /var/lib/dpkg/lock 


      everything is dead.



      I believe I have to reinstall a new lock, I don't know how to do so?



      sudo touch /var/lib/dpkg/lock


      not working.










      share|improve this question
















      I can't update on Kubuntu 18.10. I have 20 packages, when updating from GUI i get:
      The PackageKit Deamon has crashed



      From terminal:
      sudo apt-get update && sudo apt-get upgrade -y I get:



      E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
      E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


      I tried this without luck: https://itsfoss.com/could-not-get-lock-error/comment-page-5/



      The day after i get:



      E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
      -a' to correct the problem.



      Running: sudo dpkg --configure -a



      Setting up snapd (2.37.1+18.10) ...
      snapd.failure.service is a disabled or a static unit, not starting it.
      snapd.snap-repair.service is a disabled or a static unit, not starting it.


      systemctl status snapd.service



      ● snapd.service - Snappy daemon
      Loaded: loaded (/lib/systemd/system/snapd.service; enabled; v
      Active: deactivating (stop-sigterm) (Result: timeout)
      Main PID: 22246 (snapd)
      Tasks: 12 (limit: 4915)
      Memory: 268.4M
      CGroup: /system.slice/snapd.service
      ├─22246 /usr/lib/snapd/snapd
      ├─22319 apparmor_parser --replace --write-cache -O no
      └─22320 apparmor_parser --replace --write-cache -O no

      Feb 13 11:46:58 xxxx systemd[1]: Starting Snappy daemon...
      Feb 13 11:46:58 xxxx snapd[22246]: AppArmor status: apparmor is
      Feb 13 11:46:59 xxxx snapd[22246]: helpers.go:145: error trying
      Feb 13 11:46:59 xxxx systemd[1]: snapd.service: Start operation


      journalctl -xe



      -- Subject: Unit snapd.service has finished shutting down
      -- Defined-By: systemd
      -- Support: http://www.ubuntu.com/support
      --
      -- Unit snapd.service has finished shutting down.
      Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
      Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
      Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
      Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
      Feb 13 11:47:47 xxxx systemd[1]: Starting Snappy daemon...


      I can't run: sudo dpkg --configure -a
      I get: dpkg: error: dpkg frontend is locked by another process



      lsof /var/lib/dpkg/lock 


      everything is dead.



      I believe I have to reinstall a new lock, I don't know how to do so?



      sudo touch /var/lib/dpkg/lock


      not working.







      updates






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 14 at 15:04







      newcat1000

















      asked Feb 12 at 22:50









      newcat1000newcat1000

      2810




      2810






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I entered terminal as root via restore mode by holding shift down under startup and rebootet.
          sudo dpkg --configure -a worked from terminal afterwords.






          share|improve this answer























            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%2f1117778%2fthe-packagekit-deamon-has-crashed%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I entered terminal as root via restore mode by holding shift down under startup and rebootet.
            sudo dpkg --configure -a worked from terminal afterwords.






            share|improve this answer




























              0














              I entered terminal as root via restore mode by holding shift down under startup and rebootet.
              sudo dpkg --configure -a worked from terminal afterwords.






              share|improve this answer


























                0












                0








                0







                I entered terminal as root via restore mode by holding shift down under startup and rebootet.
                sudo dpkg --configure -a worked from terminal afterwords.






                share|improve this answer













                I entered terminal as root via restore mode by holding shift down under startup and rebootet.
                sudo dpkg --configure -a worked from terminal afterwords.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 13 at 20:58









                newcat1000newcat1000

                2810




                2810






























                    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%2f1117778%2fthe-packagekit-deamon-has-crashed%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

                    How to make a Squid Proxy server?

                    第一次世界大戦

                    Touch on Surface Book