【问题标题】:jhbuild repository cloning failedjhbuild 存储库克隆失败
【发布时间】:2015-02-13 21:53:21
【问题描述】:

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

早些时候我问了一个question,它已经解决了,现在当我使用 jhbuild 构建时出现了同样的问题(我想这是同样的问题),在代理后面它无法克隆有 git:// 的 repo在 URL 中,因为 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]

可能的解决方案是什么?

【问题讨论】:

    标签: git gnome jhbuild


    【解决方案1】:

    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 以正确维护相似主题之间的链接。

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-24
        • 2020-08-27
        • 1970-01-01
        • 1970-01-01
        • 2022-10-17
        相关资源
        最近更新 更多