Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently have Git installed but need to upgrade to (at least). I tried running:

sudo apt-get update
sudo apt-get upgrade

and also tried

sudo apt-get install git-core

but each time I get a message indicating that there is no later version of git available. I have the following software sources configured in /etc/apt/sources.list

deb lucid main restricted multiverse universe
deb lucid-security main restricted multiverse universe
deb lucid-updates main restricted multiverse universe
deb lucid partner
deb lucid main
deb-src lucid main
deb lucid multiverse universe
share|improve this question
what do I need to run on the command-line to add this? – Dónal Apr 8 '13 at 9:10
made it an answer. If this does not work please edit it into your question and Ill delete it. – Rinzwind Apr 8 '13 at 9:14

To install the latest stable from command line...

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

This should let you install 1.8.2-1~ppa0~lucid2.

share|improve this answer
Is it essential to install python-software-properties ? – Muhammad Gelbana Apr 5 '14 at 17:13
@MuhammadGelbana: Yes, if you don't already have add-apt-repository – Dennis Williamson Jul 10 '14 at 20:46

Please open the terminal using this shortcut


Then type these commands on terminal

sudo apt-get update

sudo apt-get install git

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.