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.

problem is that:

apt-get install default-jre
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?

before that i 've already run update command it was ok but at last i got this type of message:

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?
share|improve this question

marked as duplicate by Radu Rădeanu, chaskes, Eric Carvalho, Alvar, Jorge Castro Mar 19 at 17:40

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.

1  
In Ubuntu (not ubantu) people use sudo in front of apt-get command to get the right privileges to install something. –  Radu Rădeanu Mar 19 at 16:31

1 Answer 1

Make sure software center is not running

  1. ps -e|grep software-center

then use sudo with you apt-get command

  1. sudo apt-get update
  2. sudo apt-get install default-jre
share|improve this answer

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