Git Command Not Found

April 6, 2014 4k views
I'm trying to follow the tutorials to use git ( on my droplet, but I can't 'git init' because it says git command not found. When I try to install git ( it says apt-get command not found. Why is this happening? Thanks!
3 Answers
Are you running on Ubuntu? Apt-Get is part of Ubuntu's core OS and there is no real way to uninstall it nor install it. It almost sounds as if you are running another OS. Could you run the follow and post it back

unmae -a
cat /etc/lsb-release
file apt-get
dpkg -l apt
echo $PATH
I think, you need "super user" to run "apt-get" command, for example:

sudo apt-get update

or run normaly as "root":

apt-get update

- To get "root" you can use command:

sudo su
This happens when the apt utility is not present in your machine.
1. install apt as a root user

2. then follow the command to install git
Have another answer? Share your knowledge.