我目前使用的是Ubuntu 12.04和jhbuild版本3.12.0以及git版本1.7.9.5。
之前我问了一个question,它被解决了,现在当我使用jhbuild构建时,同样的问题(我猜也是同样的问题)出现了,在代理后面,它不能克隆URL中的git://的repo,因为URL需要是http://或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]可能的解决方案是什么?
发布于 2016-07-19 17:54:17
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,以便正确地维护相似主题之间的链接。
发布于 2020-09-01 16:45:15
我最近也遇到了这个问题。解决方案是VPN /代理。
https://stackoverflow.com/questions/28509403
复制相似问题