PDA

View Full Version : [ubuntu] dpkg : status database area is locked by another process while trying to install oper



Kizamime
December 18th, 2008, 11:25 PM
I had downloaded the opera web browser .deb file form their website, because it wasnt in synaptic. I tried to install it in terminal, and I get this: dpkg : status database area is locked by another process
Its really annoying, because it does that with every package I try to install. Apt-get isnt running. Nothing like that is. I need all you smart Ubuntu people to help TT_TT

aheckler
December 18th, 2008, 11:39 PM
That's odd. Try logging out, logging back in, and then installing the .deb file.

Kizamime
December 19th, 2008, 02:19 AM
Just did. Got me nowhere.

dpkg: status database area is locked by another process

I dont understand why its not letting me......

aheckler
December 19th, 2008, 02:31 AM
Paste the output of this please:


ps ax | grep dpkg

Kizamime
December 19th, 2008, 02:38 AM
Okay, nevermind. Got it fixed now ^^. Thanks for the idea, I resarted and fixed some broeken things.

fibrebiz
August 21st, 2010, 04:11 PM
Same problem, different cause.

Terminal was installing the linux mint deb packages but taking MUCH too long so I closed terminal.

ps ax | grep dpkg gives me the following:

4554 ? D 0:00 dpkg -i mint-common_1.0.5_all.deb mintmenu_4.9.9_all.deb mint-translations_2010.02.02_all.deb
4888 pts/1 S+ 0:00 grep --color=auto dpkg

nutellajunkie
August 21st, 2010, 07:47 PM
I have to say, I am getting this exact same problem recently! Has some update screwed around with settigns or something?

Please help us fix this!

fibrebiz
August 21st, 2010, 10:48 PM
Problem solved:

All it took was a simple restart.
After restarting, the lock disappeared, then I was able to remove the package that caused the lock and try installing it again (which worked the second time around).

Though the solution was simple, it's still annoying to have to restart to kill the lock.

agibby5
October 22nd, 2010, 11:04 PM
You could also run:

sudo rm /var/lib/dpkg/lock

Then:

sudo dpkg --configure -a

balaji31d
November 1st, 2010, 11:34 AM
@ agibby5 - Great! your solution worked like a charm :) Thanks!

aliasghar
April 4th, 2011, 08:34 AM
Thanks. removing lock file and reconfiguring dpkg solved the problem.

thunder63cs
June 8th, 2011, 05:10 PM
I am getting the same errors but have tried to clr them in the same way with out success. Here is what I get as a responce from the server:

sudo dpkg --configure -a
Setting up bind9 (1:9.7.3.dfsg-1ubuntu2.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing bind9 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bind9
praetorian@praetorian:~$ Setting up bind9 (1:9.7.3.dfsg-1ubuntu2.1) ...
-bash: syntax error near unexpected token `('
praetorian@praetorian:~$ debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing bind9 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bind9
No command 'debconf:' found, did you mean:
Command 'debconf' from package 'debconf' (main)
debconf:: command not found


any help to get this resolved would be wonderful... I have rebooted adn gives me the same thing after it tries to start updating then just hangs there not doing anything.

ronyv89
August 3rd, 2011, 02:02 AM
Worked for me !!!!!!!!

ikvat
October 9th, 2011, 03:05 PM
Me too Thx

thilinamadush
October 12th, 2011, 04:06 AM
You could also run:

sudo rm /var/lib/dpkg/lockThen:

sudo dpkg --configure -a

Thank you very much. It worked..

phynix123
December 3rd, 2011, 06:27 AM
I was using the server remotely using webmin. When i tried to install virtualbox 4.0 the error occured.
the following commands solved the trick for me:
1. ps axgrep dpkg ( gets the process list using dpkg)
2.sudo rm /var/lib/dpkg/lock ( removes the lock on dpkg database)
3. sudo dpkg --configure -a (configure all broken packages)
4. sudo apt-get update.
and i can continue with what i was doing.

leonbravo
March 15th, 2012, 08:50 PM
worked for me, cheers!


You could also run:

sudo rm /var/lib/dpkg/lock

Then:

sudo dpkg --configure -a

MyPod
May 8th, 2012, 01:41 AM
You could also run:

sudo rm /var/lib/dpkg/lock

Then:

sudo dpkg --configure -a
Do you run it on the iPod terminal. Cuz it doesn't work for me please help

bobjohnbowles
July 5th, 2012, 08:24 AM
Removing the lock file unlocks dpkg, but I still can't do anything, because when I run the configure command it re-starts the failed install at the point it left off, downloading a file at about 2 bytes/millennium. dpkg won't let me do anything til I re-type the configure command, which puts it back in the same place.
Is there anything I can do to stop this?

oldos2er
July 5th, 2012, 04:29 PM
Please start a new thread for your question.