-1

I am getting permission denied errors while running apt-get install adb. This is what I'm getting:

enter image description here

Prior to these commands, two commands of update and upgrade ran successfully which were

sudo apt-get update
sudo apt-get dist-upgrade
Kulfy
  • 17,416
  • 26
  • 64
  • 103
Pallavi
  • 1
  • 1
  • 4
    Does this answer your question? [Permission denied, are you root?](https://askubuntu.com/questions/223484/permission-denied-are-you-root) The error in the screenshot has nothing to do with Android Studio or the device. It is related to APT and privileges. – Kulfy Dec 24 '19 at 10:20

2 Answers2

1

You need root privileges to install this package. Try:

sudo apt-get install adb
Kulfy
  • 17,416
  • 26
  • 64
  • 103
Ifly777
  • 123
  • 8
0

You need to kill the process that is blocking you from installing adb or other package. Try this:

$ sudo killall apt apt-get

After that, the problem should be solved. If it does not work, try some of the other methods described in details in this tutorial link