Comment 29 for bug 48627

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

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@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@Mugglewille:~$ sudo fuser -vki /var/lib/dpkg/lock; sudo dpkg --configure -a
shirish@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@Mugglewille:~$ dpkg --configure -a
dpkg: requested operation requires superuser privilege
shirish@Mugglewille:~$ sudo dpkg --configure -a
shirish@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.