【问题标题】:jhbuild build throwing 407 authentication errorjhbuild build 抛出 407 身份验证错误
【发布时间】:2015-09-02 01:49:57
【问题描述】:

我正在尝试安装 jhbuild。当我发出jhbuild build 命令时,它给了我错误-

jhbuild build: could not download https://git.gnome.org/browse/jhbuild/plain/modulesets/gnome-apps-3.18.modules: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required>

我支持大学代理和 Ubuntu 14.04。我该如何解决这个问题?

【问题讨论】:

    标签: proxy jhbuild


    【解决方案1】:

    您的大学代理可能具有某种身份验证。通过添加这个将正确的代理设置放入环境中

    export http_proxy="http://[username]:[password]@[proxy.server.com]:[port]"
    export https_proxy="http://[username]:[password]@[proxy.server.com]:[port]"
    

    在您的 .bashrc 或任何其他初始化配置文件中。即使它显示相同的错误,我也遇到了一个很好的工具proGY(中间代理身份验证器)。 此外,您还必须在 git config 中设置您的代理网址

     git config --global http.proxy http://[username]:[password]@[proxy.server.com]:[port]
     git config --global https.proxy http://[username]:[password]@[proxy.server.com]:[port]
    

    如果你的大学没有其他开放端口,因为 git 协议使用它,你应该明确说 jhbuild 使用 http:// git clone urls 而不是 git:// clone URLS。

     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/'
    

    在您的 jhbuildrc 文件中(在 ~/.config/jhbuildrc 中)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-05
      • 2012-11-22
      • 2021-10-10
      • 1970-01-01
      相关资源
      最近更新 更多