some other process automatically locks /var/lib/dpkg/lock for few minutes when restarting my system.












1














I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run



$ sudo reboot


it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -



$ sudo aptitude autoclean
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Freed 0 B of disk space


and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -



$ free -h
total used free shared buff/cache available
Mem: 7.7G 634M 6.3G 94M 726M 6.8G
Swap: 59G 0B 59G


and can't be the chip as it's a pretty new Skylake i5 5400










share|improve this question





























    1














    I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run



    $ sudo reboot


    it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -



    $ sudo aptitude autoclean
    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    Freed 0 B of disk space


    and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -



    $ free -h
    total used free shared buff/cache available
    Mem: 7.7G 634M 6.3G 94M 726M 6.8G
    Swap: 59G 0B 59G


    and can't be the chip as it's a pretty new Skylake i5 5400










    share|improve this question



























      1












      1








      1







      I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run



      $ sudo reboot


      it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -



      $ sudo aptitude autoclean
      E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
      E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
      Freed 0 B of disk space


      and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -



      $ free -h
      total used free shared buff/cache available
      Mem: 7.7G 634M 6.3G 94M 726M 6.8G
      Swap: 59G 0B 59G


      and can't be the chip as it's a pretty new Skylake i5 5400










      share|improve this question















      I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run



      $ sudo reboot


      it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -



      $ sudo aptitude autoclean
      E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
      E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
      Freed 0 B of disk space


      and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -



      $ free -h
      total used free shared buff/cache available
      Mem: 7.7G 634M 6.3G 94M 726M 6.8G
      Swap: 59G 0B 59G


      and can't be the chip as it's a pretty new Skylake i5 5400







      debian apt dpkg lock






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 19 '18 at 23:08









      Gilles

      530k12810621590




      530k12810621590










      asked Mar 19 '18 at 22:16









      shirishshirish

      3,68862983




      3,68862983






















          2 Answers
          2






          active

          oldest

          votes


















          3














          See what process has the file open with lsof /var/lib/dpkg/lock or fuser /var/lib/dpkg/lock.



          Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?






          share|improve this answer





























            -1














            This denotes that your package installer is being used by some another process.

            Simplest way to get rid of this is to kill the init process i.e.



            kill -9 -1



            Warning


            This will log you out killing all the processes, So Save for your current work
            Not a efficient method but works..






            share|improve this answer








            New contributor




            Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.


















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2funix.stackexchange.com%2fquestions%2f432197%2fsome-other-process-automatically-locks-var-lib-dpkg-lock-for-few-minutes-when-r%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









              3














              See what process has the file open with lsof /var/lib/dpkg/lock or fuser /var/lib/dpkg/lock.



              Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?






              share|improve this answer


























                3














                See what process has the file open with lsof /var/lib/dpkg/lock or fuser /var/lib/dpkg/lock.



                Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?






                share|improve this answer
























                  3












                  3








                  3






                  See what process has the file open with lsof /var/lib/dpkg/lock or fuser /var/lib/dpkg/lock.



                  Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?






                  share|improve this answer












                  See what process has the file open with lsof /var/lib/dpkg/lock or fuser /var/lib/dpkg/lock.



                  Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 19 '18 at 23:07









                  GillesGilles

                  530k12810621590




                  530k12810621590

























                      -1














                      This denotes that your package installer is being used by some another process.

                      Simplest way to get rid of this is to kill the init process i.e.



                      kill -9 -1



                      Warning


                      This will log you out killing all the processes, So Save for your current work
                      Not a efficient method but works..






                      share|improve this answer








                      New contributor




                      Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.























                        -1














                        This denotes that your package installer is being used by some another process.

                        Simplest way to get rid of this is to kill the init process i.e.



                        kill -9 -1



                        Warning


                        This will log you out killing all the processes, So Save for your current work
                        Not a efficient method but works..






                        share|improve this answer








                        New contributor




                        Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.





















                          -1












                          -1








                          -1






                          This denotes that your package installer is being used by some another process.

                          Simplest way to get rid of this is to kill the init process i.e.



                          kill -9 -1



                          Warning


                          This will log you out killing all the processes, So Save for your current work
                          Not a efficient method but works..






                          share|improve this answer








                          New contributor




                          Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          This denotes that your package installer is being used by some another process.

                          Simplest way to get rid of this is to kill the init process i.e.



                          kill -9 -1



                          Warning


                          This will log you out killing all the processes, So Save for your current work
                          Not a efficient method but works..







                          share|improve this answer








                          New contributor




                          Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer






                          New contributor




                          Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 2 days ago









                          Manas KinkarManas Kinkar

                          11




                          11




                          New contributor




                          Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Manas Kinkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • 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%2funix.stackexchange.com%2fquestions%2f432197%2fsome-other-process-automatically-locks-var-lib-dpkg-lock-for-few-minutes-when-r%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?

                              Is this a new Fibonacci Identity?

                              19世紀