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?
Asked
Active
Viewed 266 times
0
Stefan Hamcke
- 879
- 1
- 12
- 29
-
try with `sudo apt-get install android-tools-adb` – kenn Sep 19 '18 at 13:04
1 Answers
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