Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 1:07

This question was marked as an exact duplicate of an existing question.

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

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.