-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,757
  • 2
  • 36
  • 39

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
  • 169,590
byaruhaf
  • 443
  • 3
  • 21