-2

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?
saiarcot895
  • 10,917

1 Answers1

0

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
Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407
byaruhaf
  • 433