[Bug 48627] Re: Poor resolution of "database locked" problem

Shirish Agarwal shirishag75 at gmail.com
Tue Apr 8 02:45:22 UTC 2008


Hi all, 
 Some comments. I have apt Version 0.7.9ubuntu15  

I was doing sudo aptitude update
While downloading the index one of the index files was corrupt or something. 
It did the whole cycle of the update. 
Then I tried to re-update the index & the following things came up :-

shirish at Mugglewille:~$ sudo aptitude update
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Couldn't lock list directory..are you root?
shirish at Mugglewille:~$ sudo fuser -vki /var/lib/dpkg/lock; sudo dpkg --configure -a
shirish at Mugglewille:~$ sudo aptitude update
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Couldn't lock list directory..are you root?
shirish at Mugglewille:~$ dpkg --configure -a
dpkg: requested operation requires superuser privilege
shirish at Mugglewille:~$ sudo dpkg --configure -a
shirish at Mugglewille:~$ sudo aptitude update
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Couldn't lock list directory..are you root?

As one can see none of the workarounds told above works/worked for me.  :(
Which means either I need to shutdown and/or restart the machine or 
do the 

sudo killall apt aptitude apt-get

Of course that's not the recommended thing but that's what works for me
most of the time.

-- 
Poor resolution of "database locked" problem
https://bugs.launchpad.net/bugs/48627
You received this bug notification because you are a member of Kubuntu
Team, which is a direct subscriber.




More information about the kubuntu-bugs mailing list