我正在尝试安装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。我如何找到解决这个问题的方法?
可能你的大学代理有某种身份验证。通过添加
将正确的代理设置放入环境中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 Also
中设置你的代理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)