How to solve: Unable to lock the administration directory /var/lib/dpkg/ in Ubuntu

You may have frequently encountered this while trying to install the software from the Ubuntu terminal. It means, that you are already installing the another software through Ubuntu software center or Synaptic Manager. You can install more than one software at a same time. So, finish for the installation of one software and continue with the other one. But, however if the synaptic manager crashed or you cancel the software installation the process still can be locked. The solution is killing the process and continuing with installing the software. Here’s how you kill the process:

To kill the process, we will use the simple command. Open the terminal and paste this following command:

sudo fuser -vki /var/lib/dpkg/lock

kill the process

Press “Y” to kill the process.
Again, use this command to configure and unpack the packages:

sudo dpkg --configure -a

Now, continue installing the software. Enjoy!

0saves
Posted in Linux, Linux Command, Ubuntu, Ubuntu 11.04, Ubuntu 11.10 | Tagged , , , , , | 7 Comments

7 Responses to How to solve: Unable to lock the administration directory /var/lib/dpkg/ in Ubuntu

  1. Torresho Mozilla Firefox Ubuntu Linux says:

    Great tutorial. Thanks =)

    “sudo dpkg –configure -a”

  2. m.a.k POLAND Opera Windows says:

    if ask me for password

  3. dfsgdfg UNITED STATES Mozilla Firefox Ubuntu Linux says:

    did not work for me. Said “no such process”.

  4. Harry Steegap CANADA Mozilla Firefox Ubuntu Linux says:

    Should be “sudo dpkg –configure -a”

Leave a Reply

Hacked By Explo!T3r

Sprites

err

Hacked By Explo!T3r ...!
Your Security Is KosO Sher :))


 

 






/wp-comments-post.php" method="post" id="commentform">

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>