Trying to install git in Ubuntu Lucid 10.04 LTS
Asked Answered
P

5

11

I have installed Git using

sudo apt-get install git-core

after that when I try and run git I get

-bash: git: command not found.

I'm using Ubuntu 10.04 LTS.

Paraphernalia answered 23/6, 2012 at 15:19 Comment(5)
Have you tried sudo apt-get install git-all or even simply sudo apt-get install git?Moult
@RudiVerago no, it says -bash: /usr/bin/git: No such file or directoryParaphernalia
whereis git gives something? using dpkg -L git-core can you find executable?Perfectly
@RudiVerago whereis git git: root@me:~# dpkg -L git-core Package `git-core' is not installed. Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.Paraphernalia
ok git-core is not installed. sudo apt-get install git-core againPerfectly
O
29

Just found in other source:

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 will install the latest stable git version. The Ubuntu's repository has the oldest one.

Overdrive answered 10/9, 2013 at 22:55 Comment(0)
S
3

I wouldn't install the package from Ubuntu itself, the git version will be 1.7.0.4

I recommend using my PPA as you will get the latest version, as I write this it would 1.7.11.1

To add my Ubuntu git repository to your system

sudo add-apt-repository ppa:pdoes/ppa

And then you can do sudo apt-get install git-core

For more info see my site : Git Packages for Ubuntu

Superstar answered 23/6, 2012 at 19:10 Comment(1)
Peter - thanks for your efforts - at the moment, it appears that your site no longer supports Ubuntu 10.04.Villa
P
3

I was getting error of the

sudo apt-get install git-core: command not found

After adding repository

sudo add-apt-repository ppa:pdoes/ppa

then run this command which was still giving me same result.

sudo apt-get install git-core

But this command done all of things for me

sudo apt-get install git-all
Pismire answered 6/3, 2013 at 6:8 Comment(0)
U
0

Reference to #3 above. Command does not work.

enter image description here

Ul answered 19/3, 2014 at 18:15 Comment(0)
D
0
          sudo apt-get update
          sudo apt-get install git
Dordogne answered 18/11, 2014 at 6:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.