By sarah563574
I’m trying to follow the tutorials to use git (https://www.digitalocean.com/community/articles/how-to-use-git-effectively) on my droplet, but I can’t ‘git init’ because it says git command not found. When I try to install git (https://www.digitalocean.com/community/articles/how-to-install-git-on-ubuntu-12-04) it says apt-get command not found. Why is this happening?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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 <br> <br>unmae -a <br>cat /etc/lsb-release <br>file apt-get <br>dpkg -l apt <br>echo $PATH
I think, you need “super user” to run “apt-get” command, for example: <br> <br>sudo apt-get update <br> <br>or run normaly as “root”: <br> <br>apt-get update <br> <br>- To get “root” you can use command: <br> <br>sudo su
This happens when the apt utility is not present in your machine. <br>1. install apt as a root user <br>http://askubuntu.com/questions/401876/apt-get-command-not-found <br> <br>2. then follow the command to install git
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.