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

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 '14 at 17:40

This question was marked as an exact duplicate of an existing 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 '14 at 16:31

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.