【发布时间】:2013-10-07 05:17:52
【问题描述】:
我当前的 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(升级)?
【问题讨论】:
-
从错误/回溯看来你有网络问题,你能在你的机器上做
sudo apt-get update还是在你的浏览器里去ppa.launchpad.net/git-core/ppa/ubuntu? -
在 sudo apt-get 中更新其“无法连接到 ppa.launchpad.net:http:”但我可以使用我的浏览器访问 ppa.launchpad.net/git-core/ppa/ubuntu