Why execute apt-get update get error?

Asked by ayongying

test@ubuntu:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the list directory

But after some minutes (about 10 minutes,I do nothing),I re-run this command,it can works.I don't know why get the error ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Soul-Sing
Solved:
Last query:
Last reply:
Revision history for this message
Best Soul-Sing (soulzing) said :
#1

sudo rm /var/lib/apt/lists/lock
sudo apt-get update

Revision history for this message
ayongying (jying-jying) said :
#2

I got it,Thanks very much

On Mon, Mar 1, 2010 at 4:28 PM, leoquant <
<email address hidden>> wrote:

> Your question #102796 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/102796
>
> Status: Open => Answered
>
> leoquant proposed the following answer:
> sudo rm /var/lib/apt/lists/lock
> sudo apt-get update
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.edge.launchpad.net/ubuntu/+question/102796/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.edge.launchpad.net/ubuntu/+question/102796
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
ayongying (jying-jying) said :
#3

Thanks leoquant, that solved my question.