i can`t use of apt-get command

Asked by Amir on 2015-09-11

i can`t use of apt-get command

for example :
                         when type " apt-get upgrade "
i see :
           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?

i use this command by root user

this is friest my problem with " apt-get "

how can i fix this error ?

thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu xorg Edit question
Assignee:
No assignee Edit question
Last query:
2015-09-11
Last reply:
2015-09-11

Make sure software centre, updates or synaptic are not running. If they are not then reboot. If this doesn't help then run:

sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

Which should sort it

Can you help with this problem?

Provide an answer of your own, or ask Amir for more information if necessary.

To post a message you must log in.