jhbuild构建抛出407身份验证错误

问题描述:

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

I'm trying to install jhbuild. When I give jhbuild build command it gives me error -

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.我如何找到解决此问题的方法?

I'm behind a college proxy and Ubuntu 14.04. How do I find a way around this problem?

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

Probably your college proxy has some kind of authentication. Put the correct proxy settings in environment by adding this

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

.bashrc或任何其他init配置文件中的

.即使显示相同的错误,我也遇到了一个很好的工具 proGY (中间代理身份验证器) . 另外,您还必须在git config中如上所述设置代理url

in your .bashrc or any other init configuration files. Even after if it shows the same error, I came across a good tool proGY (An intermediate proxy authenticator). Also you will have to set your proxy url as above in git config also

 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.

If you college doesn't have other open ports as git protocol uses it, you should explicitly say jhbuild to use http:// git clone urls instead of 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中)

in your jhbuildrc file (in ~/.config/jhbuildrc)