首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jhbuild存储库克隆失败

jhbuild存储库克隆失败
EN

Stack Overflow用户
提问于 2015-02-14 05:53:22
回答 2查看 430关注 0票数 4

我目前使用的是Ubuntu 12.04和jhbuild版本3.12.0以及git版本1.7.9.5。

之前我问了一个question,它被解决了,现在当我使用jhbuild构建时,同样的问题(我猜也是同样的问题)出现了,在代理后面,它不能克隆URL中的git://的repo,因为URL需要是http://或https://之一。由于克隆过程是由jhbuild自动执行的,因此会导致如下错误:

代码语言:javascript
复制
$ 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]

可能的解决方案是什么?

EN

回答 2

Stack Overflow用户

发布于 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:

代码语言:javascript
复制
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,以便正确地维护相似主题之间的链接。

票数 0
EN

Stack Overflow用户

发布于 2020-09-01 16:45:15

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28509403

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档