Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

when I'm trying to update through terminal I'm getting the following error:

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 am not sure if it is due to virus or any other reason.

share|improve this question

marked as duplicate by Eric Carvalho, karel, Warren Hill, waltinator, bain Jul 5 at 1:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Do you use sudo to get root rights? Like "sudo apt-get upgrade" –  Doka May 9 '13 at 7:19
2  
Did you have something like synaptics, or update manager open at the time? –  Mitch May 9 '13 at 7:21

1 Answer 1

Kill any programs like update-manager,software center. Still if the problem exists, remove the lock file. rm -f /var/lib/dpkg/lock and try the command you were trying again.

Also, surely there is no virus in your system, Keep Calm !!!

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.