Unable to get exclusive lock, apt-get busy












2















Whenever I try a command, I get an error saying:



Unable to get exclusive lock


Also apt-get is busy, but I am not even running any other application.










share|improve this question

























  • Check if the answers on this question help: askubuntu.com/q/15433/52726

    – Alaa Ali
    Aug 29 '14 at 14:29











  • Thank you Mr,ALI , But its still confusing and I tried some of the steps but still not able to solve , I am not able to get used to these commands as well @AlaaAli

    – Schezan Mansuri
    Aug 29 '14 at 14:52













  • Pleàe restart the system and try again.

    – George Udosen
    Jan 18 at 10:05
















2















Whenever I try a command, I get an error saying:



Unable to get exclusive lock


Also apt-get is busy, but I am not even running any other application.










share|improve this question

























  • Check if the answers on this question help: askubuntu.com/q/15433/52726

    – Alaa Ali
    Aug 29 '14 at 14:29











  • Thank you Mr,ALI , But its still confusing and I tried some of the steps but still not able to solve , I am not able to get used to these commands as well @AlaaAli

    – Schezan Mansuri
    Aug 29 '14 at 14:52













  • Pleàe restart the system and try again.

    – George Udosen
    Jan 18 at 10:05














2












2








2


1






Whenever I try a command, I get an error saying:



Unable to get exclusive lock


Also apt-get is busy, but I am not even running any other application.










share|improve this question
















Whenever I try a command, I get an error saying:



Unable to get exclusive lock


Also apt-get is busy, but I am not even running any other application.







apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 29 '14 at 14:29









Alaa Ali

22.1k96894




22.1k96894










asked Aug 29 '14 at 14:24









Schezan MansuriSchezan Mansuri

30210




30210













  • Check if the answers on this question help: askubuntu.com/q/15433/52726

    – Alaa Ali
    Aug 29 '14 at 14:29











  • Thank you Mr,ALI , But its still confusing and I tried some of the steps but still not able to solve , I am not able to get used to these commands as well @AlaaAli

    – Schezan Mansuri
    Aug 29 '14 at 14:52













  • Pleàe restart the system and try again.

    – George Udosen
    Jan 18 at 10:05



















  • Check if the answers on this question help: askubuntu.com/q/15433/52726

    – Alaa Ali
    Aug 29 '14 at 14:29











  • Thank you Mr,ALI , But its still confusing and I tried some of the steps but still not able to solve , I am not able to get used to these commands as well @AlaaAli

    – Schezan Mansuri
    Aug 29 '14 at 14:52













  • Pleàe restart the system and try again.

    – George Udosen
    Jan 18 at 10:05

















Check if the answers on this question help: askubuntu.com/q/15433/52726

– Alaa Ali
Aug 29 '14 at 14:29





Check if the answers on this question help: askubuntu.com/q/15433/52726

– Alaa Ali
Aug 29 '14 at 14:29













Thank you Mr,ALI , But its still confusing and I tried some of the steps but still not able to solve , I am not able to get used to these commands as well @AlaaAli

– Schezan Mansuri
Aug 29 '14 at 14:52







Thank you Mr,ALI , But its still confusing and I tried some of the steps but still not able to solve , I am not able to get used to these commands as well @AlaaAli

– Schezan Mansuri
Aug 29 '14 at 14:52















Pleàe restart the system and try again.

– George Udosen
Jan 18 at 10:05





Pleàe restart the system and try again.

– George Udosen
Jan 18 at 10:05










2 Answers
2






active

oldest

votes


















1














You probably aborted an install at some time or another. The Following will release any lock you have. Just be sure you don't have software center open or are installing anything.



sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock 
sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock;sudo dpkg --configure -a





share|improve this answer
























  • Thank you sir @scottgoodname but even this does not help :( when i type the command 'sudo fuser -cuk /var/lib/dpkg/lock' I get an error saying specified file name doesnt exist

    – Schezan Mansuri
    Aug 29 '14 at 15:08













  • If the file dosen't exist, that is ok. It will only exist when it is locked. Did you try all the commands, one by one?

    – Scott Goodgame
    Aug 29 '14 at 15:15











  • Yes Sir, same issue everytime . @scottgoodname

    – Schezan Mansuri
    Aug 29 '14 at 15:23











  • I didn't need all of this, but it helped me to remove /var/lib/dpkg/lock.

    – dfrankow
    2 days ago



















0














apt-get could be busy downloading updates in the background, and will prevent you from doing any other package management action while it is doing so.



You could kill it and then try to recover the package database manually, using the following command. If any of the commands fail and reports errors - stop and read what they say and see if you can understand what to do - they usually give instructions on how to recover from an error:



sudo killall apt-get
sudo dpkg --configure -a
sudo apt-get install -f





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%2f517609%2funable-to-get-exclusive-lock-apt-get-busy%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









    1














    You probably aborted an install at some time or another. The Following will release any lock you have. Just be sure you don't have software center open or are installing anything.



    sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock 
    sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock;sudo dpkg --configure -a





    share|improve this answer
























    • Thank you sir @scottgoodname but even this does not help :( when i type the command 'sudo fuser -cuk /var/lib/dpkg/lock' I get an error saying specified file name doesnt exist

      – Schezan Mansuri
      Aug 29 '14 at 15:08













    • If the file dosen't exist, that is ok. It will only exist when it is locked. Did you try all the commands, one by one?

      – Scott Goodgame
      Aug 29 '14 at 15:15











    • Yes Sir, same issue everytime . @scottgoodname

      – Schezan Mansuri
      Aug 29 '14 at 15:23











    • I didn't need all of this, but it helped me to remove /var/lib/dpkg/lock.

      – dfrankow
      2 days ago
















    1














    You probably aborted an install at some time or another. The Following will release any lock you have. Just be sure you don't have software center open or are installing anything.



    sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock 
    sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock;sudo dpkg --configure -a





    share|improve this answer
























    • Thank you sir @scottgoodname but even this does not help :( when i type the command 'sudo fuser -cuk /var/lib/dpkg/lock' I get an error saying specified file name doesnt exist

      – Schezan Mansuri
      Aug 29 '14 at 15:08













    • If the file dosen't exist, that is ok. It will only exist when it is locked. Did you try all the commands, one by one?

      – Scott Goodgame
      Aug 29 '14 at 15:15











    • Yes Sir, same issue everytime . @scottgoodname

      – Schezan Mansuri
      Aug 29 '14 at 15:23











    • I didn't need all of this, but it helped me to remove /var/lib/dpkg/lock.

      – dfrankow
      2 days ago














    1












    1








    1







    You probably aborted an install at some time or another. The Following will release any lock you have. Just be sure you don't have software center open or are installing anything.



    sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock 
    sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock;sudo dpkg --configure -a





    share|improve this answer













    You probably aborted an install at some time or another. The Following will release any lock you have. Just be sure you don't have software center open or are installing anything.



    sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock 
    sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock;sudo dpkg --configure -a






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 29 '14 at 15:04









    Scott GoodgameScott Goodgame

    2,352720




    2,352720













    • Thank you sir @scottgoodname but even this does not help :( when i type the command 'sudo fuser -cuk /var/lib/dpkg/lock' I get an error saying specified file name doesnt exist

      – Schezan Mansuri
      Aug 29 '14 at 15:08













    • If the file dosen't exist, that is ok. It will only exist when it is locked. Did you try all the commands, one by one?

      – Scott Goodgame
      Aug 29 '14 at 15:15











    • Yes Sir, same issue everytime . @scottgoodname

      – Schezan Mansuri
      Aug 29 '14 at 15:23











    • I didn't need all of this, but it helped me to remove /var/lib/dpkg/lock.

      – dfrankow
      2 days ago



















    • Thank you sir @scottgoodname but even this does not help :( when i type the command 'sudo fuser -cuk /var/lib/dpkg/lock' I get an error saying specified file name doesnt exist

      – Schezan Mansuri
      Aug 29 '14 at 15:08













    • If the file dosen't exist, that is ok. It will only exist when it is locked. Did you try all the commands, one by one?

      – Scott Goodgame
      Aug 29 '14 at 15:15











    • Yes Sir, same issue everytime . @scottgoodname

      – Schezan Mansuri
      Aug 29 '14 at 15:23











    • I didn't need all of this, but it helped me to remove /var/lib/dpkg/lock.

      – dfrankow
      2 days ago

















    Thank you sir @scottgoodname but even this does not help :( when i type the command 'sudo fuser -cuk /var/lib/dpkg/lock' I get an error saying specified file name doesnt exist

    – Schezan Mansuri
    Aug 29 '14 at 15:08







    Thank you sir @scottgoodname but even this does not help :( when i type the command 'sudo fuser -cuk /var/lib/dpkg/lock' I get an error saying specified file name doesnt exist

    – Schezan Mansuri
    Aug 29 '14 at 15:08















    If the file dosen't exist, that is ok. It will only exist when it is locked. Did you try all the commands, one by one?

    – Scott Goodgame
    Aug 29 '14 at 15:15





    If the file dosen't exist, that is ok. It will only exist when it is locked. Did you try all the commands, one by one?

    – Scott Goodgame
    Aug 29 '14 at 15:15













    Yes Sir, same issue everytime . @scottgoodname

    – Schezan Mansuri
    Aug 29 '14 at 15:23





    Yes Sir, same issue everytime . @scottgoodname

    – Schezan Mansuri
    Aug 29 '14 at 15:23













    I didn't need all of this, but it helped me to remove /var/lib/dpkg/lock.

    – dfrankow
    2 days ago





    I didn't need all of this, but it helped me to remove /var/lib/dpkg/lock.

    – dfrankow
    2 days ago













    0














    apt-get could be busy downloading updates in the background, and will prevent you from doing any other package management action while it is doing so.



    You could kill it and then try to recover the package database manually, using the following command. If any of the commands fail and reports errors - stop and read what they say and see if you can understand what to do - they usually give instructions on how to recover from an error:



    sudo killall apt-get
    sudo dpkg --configure -a
    sudo apt-get install -f





    share|improve this answer




























      0














      apt-get could be busy downloading updates in the background, and will prevent you from doing any other package management action while it is doing so.



      You could kill it and then try to recover the package database manually, using the following command. If any of the commands fail and reports errors - stop and read what they say and see if you can understand what to do - they usually give instructions on how to recover from an error:



      sudo killall apt-get
      sudo dpkg --configure -a
      sudo apt-get install -f





      share|improve this answer


























        0












        0








        0







        apt-get could be busy downloading updates in the background, and will prevent you from doing any other package management action while it is doing so.



        You could kill it and then try to recover the package database manually, using the following command. If any of the commands fail and reports errors - stop and read what they say and see if you can understand what to do - they usually give instructions on how to recover from an error:



        sudo killall apt-get
        sudo dpkg --configure -a
        sudo apt-get install -f





        share|improve this answer













        apt-get could be busy downloading updates in the background, and will prevent you from doing any other package management action while it is doing so.



        You could kill it and then try to recover the package database manually, using the following command. If any of the commands fail and reports errors - stop and read what they say and see if you can understand what to do - they usually give instructions on how to recover from an error:



        sudo killall apt-get
        sudo dpkg --configure -a
        sudo apt-get install -f






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 18 at 9:48









        GussGuss

        2,27322135




        2,27322135






























            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%2f517609%2funable-to-get-exclusive-lock-apt-get-busy%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 did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局