4

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

早些时候我问了一个问题并解决了,现在当我使用 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]

可能的解决方案是什么?

4

2 回答 2

0

该文档链接到一篇博客文章,该文章描述了如何设置 JHBuild 以使其使用 HTTP URL 而不是 git URL。从那里,您可以使用您的 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/'

让我也链接到这个答案,以正确维护相似主题之间的链接。

于 2016-07-19T09:54:17.057 回答
0

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

于 2020-09-01T08:45:14.793 回答