Saturday, June 2, 2018

apt - Permission denied, are you root?



I get this error whenever I try to install programs using the terminal:



home@ubuntu:~$ apt-get install myunity
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?


Also I'm unable to install updates using the terminal.



The solution is to read the error message: are you root?. Use sudo to run a command with root privileges, like so: sudo apt-get update


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...