I'm trying to install Git with apt-get
:
$ apt-get install git-core
I get this error:
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?
I'm pretty sure that my account is the root, but I tried doing this anyway:
$ su -
After which I get a response:
su: must be run from a terminal
Also, running sudo tells me the program isn't installed. I also can't install it because of the above error (must be run from a terminal).
How can I fix this problem?