1

我正在尝试安装 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。我如何找到解决此问题的方法?

4

1 回答 1

2

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

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

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

 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 中)

于 2016-06-16T15:04:07.963 回答