Re: How to unlock apt-get?
On 2011-10-09 13:47 +0200, Matt Harrison wrote:
> On Sun, Oct 9, 2011 at 6:42 AM, Bill.M <bill3@uniserve.com> wrote:
>> Hi folks,
>>
>> I'm having a problem with apt-get. I seem to be locked out of
>> /var/lib/dpkg/lock and /var/lib/dpkg when I try to do an apt=get update ,
>> How can I clear these locks? And if there's another process using apt, how
>> can I discover what it is? I've rebooted without success.
>>
>> b.
>>
>> <snip>
>>
>> E: Some index files failed to download, they have been ignored, or old ones
>> used instead.
>> E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily
>> unavailable)
>> E: Unable to lock the administration directory (/var/lib/dpkg/), is another
>> process using it?
>
> Are you running apt-get as root? I don't have my box right in front
> of me, but the errors you describe sound like you are trying to run
> apt as your user account.
No, in that case he would get a (13: Permission denied) error. The dpkg
database is locked by another process, lsof should find out which one.
Sven
Reply to: