0
mayank@mayank-Compaq-15-Notebook-PC:~$ apt-get install android-tools-adb
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Stefan Hamcke
  • 879
  • 1
  • 12
  • 29

1 Answers1

2
are you root?

Did you run the command with sudo before apt-get? Sudo allows you to launch commands with root privileges, which are needed to manage programs.

Your command should look something like this

sudo apt-get install

or

sudo apt-get remove
Leonardo Petrucci
  • 723
  • 2
  • 13
  • 28