我当前的git版本1.7.9.5 ...

我需要至少升级到git 1.7.10才能使git clone命令正常工作

我尝试使用sudo add-apt-repository ppa:git-core/ppa进行升级,但结果如下:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 125, in <module>
    ppa_info = get_ppa_info_from_lp(user, ppa_name)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp
    curl.perform()
pycurl.error: (7, "couldn't connect to host")

我应该怎么做才能安装最新的git(以进行升级)?

最佳答案

Ubuntu git maintainers team has a PPA只是为了

ppa:git-core/ppa

做就是了:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

如果找不到add-apt-repository命令,请先使用
sudo apt-get install software-properties-common python-software-properties

08-26 20:42