Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to update Git on Ubuntu

Tags:

git

linux

ubuntu

I am trying to set up Git on an Ubuntu Machine (I'm using a Samsung Chromebook running Ubuntu 12.04).

When I entered "sudo apt-get install git" and it successfully installed Git 1.79

user@ChrUbuntu:~$ git --version git version 1.7.9.5 

I can't figure out what I am doing wrong here. Any suggestions?

like image 270
Vincent Avatar asked Jan 19 '13 00:01

Vincent


People also ask

How do I update my Git version?

Download the installation file from the Git website. Run the installation and follow the install wizard to update Git to the latest version. Note: Using the install wizard to update Git overwrites the current installation.

What is the latest version of Git for Ubuntu?

It is easiest to install Git on Linux using the preferred package manager of your Linux distribution. If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.37.

How do I update Git to a specific version of Linux?

Try this: sudo add-apt-repository -y ppa:git-core/ppa. sudo apt-get update. sudo apt-get install git -y.


1 Answers

For new installations of Ubuntu I would first try this to get the latest updates

sudo apt-get dist-upgrade 

For more info on this see https://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade

That should solve it but if not, add the repository from these guys https://launchpad.net/~git-core/+archive/ppa

sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git 

This way you don't have to build it, etc.

like image 71
haley Avatar answered Sep 19 '22 16:09

haley