旧版本ubuntu使用ppa更新GIT

ubuntu 版本比较老了

1
2
$ cat /etc/issue
Ubuntu 10.04.4 LTS

无法正常使用apt-get,尝试使用ppa方式

1
2
3
4
5
# To get the very latest version of git, you need to add the PPA (Personal Package Archive) from the Ubuntu Git Maintainers Team to your Software Source list. Do that with the add-apt-repository command to add the PPA:
sudo add-apt-repository ppa:git-core/ppa
# Then update the source list and upgrade git:
sudo apt-get update
sudo apt-get install git

参考知识

Ubuntu之Git更新