jhbuild存储库克隆失败

时间:2015-02-13 21:53:22

标签: git gnome jhbuild

我目前正在使用Ubuntu 12.04和jhbuild ver 3.12.0以及git版本1.7.9.5。

早些时候我问question并且它已经解决了,现在同样的问题(我认为它是同样的问题)出现在我使用jhbuild构建时,在代理后面它无法克隆repo在URL中有git://因为URL要求是http:// OR https://。由于jhbuild会自动进行克隆过程,因此会产生如下错误 -

$ jhbuild build glib
W: Circular dependencies detected: glib -> gvfs -> glib
W: Circular dependencies detected: glib -> glib-networking -> glib
W: Circular dependencies detected: glib -> dconf -> glib
*** Checking out itstool *** [1/5]
*** Skipping itstool (package and dependencies not updated) *** [1/5]
*** Checking out yelp-xsl *** [2/5]
git clone git://git.gnome.org/yelp-xsl
Cloning into 'yelp-xsl'...
fatal: unable to connect to git.gnome.org:
git.gnome.org[0: 209.132.180.184]: errno=Connection timed out

*** Error during phase checkout of yelp-xsl: ########## Error running git clone git://git.gnome.org/yelp-xsl *** [2/5]

可能的解决办法是什么?

2 个答案:

答案 0 :(得分:0)

The documentation指向a blog post describing how to set up JHBuild such that it uses the HTTP URLs instead of the git ones的链接。从那里,您可以使用HTTP代理。

基本上,设置配置文件以替换存储库URL:

repos['git.gnome.org'] = 'https://git.gnome.org/browse/'  
repos['git.freedesktop.org'] = 'http://anongit.freedesktop.org/git/'  
repos['wayland.freedesktop.org'] = 'http://anongit.freedesktop.org/git/wayland'  
repos['gstreamer.freedesktop.org'] = 'http://anongit.freedesktop.org/git/gstreamer'  
repos['pulseaudio.freedesktop.org'] = 'http://anongit.freedesktop.org/git/pulseaudio'  
repos['telepathy.freedesktop.org'] = 'http://anongit.freedesktop.org/git/telepathy'  
repos['modemmanager.freedesktop.org'] = 'http://anongit.freedesktop.org/git/ModemManager'  
repos['git.savannah.nongnu.org'] = 'http://git.savannah.gnu.org/r/'  
repos['github.com'] = 'https://github.com/'

让我也链接到this answer以正确维护类似主题之间的链接。

答案 1 :(得分:0)

我最近也遇到了这个问题。 解决方案是VPN /代理。