我正在尝试安装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。如何找到解决此问题的方法?
发布于 2016-06-16 23:04:08
也许你的大学代理人有某种身份验证。通过添加以下内容将正确的代理设置放入环境中
export http_proxy="http://[username]:[password]@[proxy.server.com]:[port]"
export https_proxy="http://[username]:[password]@[proxy.server.com]:[port]"在您的.bashrc或任何其他初始化配置文件中。即使在它显示相同的错误之后,我也遇到了一个很好的工具proGY (一个中间代理验证器)。此外,您还必须设置您的代理url如上在git配置也
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克隆URLS而不是git://克隆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中)
https://stackoverflow.com/questions/32343464
复制相似问题