Before running any administrative task: installing, removing, changing system wide preferences, etc. you need to be
root. This is specially true for
apt-get. The message itself tells you where the problem is:
are you root?
If you are not
install command will not work at all.
The way to fix this is using
sudo before the command:
➜ ~ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
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?
➜ ~ sudo apt-get update
Fetched 616 kB in 25s (23.9 kB/s)
As you can notice, it completed without problems when I used
sudo. If you have any
open (13: Permission denied) it is almost sure that you are not
root and need to use