Ubuntu – Permission denied, are you root

apt

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.

Best Answer

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

Related Question