首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jhbuild构建抛出407身份验证错误

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

Stack Overflow用户
提问于 2015-09-02 09:49:57
回答 1查看 174关注 0票数 1

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

代码语言:javascript
复制
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。如何找到解决此问题的方法?

EN

回答 1

Stack Overflow用户

发布于 2016-06-16 23:04:08

也许你的大学代理人有某种身份验证。通过添加以下内容将正确的代理设置放入环境中

代码语言:javascript
复制
export http_proxy="http://[username]:[password]@[proxy.server.com]:[port]"
export https_proxy="http://[username]:[password]@[proxy.server.com]:[port]"

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

代码语言:javascript
复制
 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。

代码语言:javascript
复制
 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中)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32343464

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档