msgbartop
MAC OS X, Linux, Windows and other IT Tips and Tricks
msgbarbottom

25 Sep 14 Unlocking dpkg database

Under Debian Squeeze I ran the command
dpkg -i bash_4.1-3+deb6u1_amd64.deb
and got the following error message:
dpkg: status database area is locked by another process

Solution:
1 – make sure you are not already runnning any package administration program in another bash session like with dpkg or apt-get or aptitude
2 – If no other package management program is concurrently running then delete the lock file with the following command:
rm /var/lib/dpkg/lock
You will then again be able to use package administration programs.

Reader's Comments

  1.    

    rm /var/lib/dpkg/lock
    dpkg –configure -a

    Reply to this comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: