可能您的大学代理具有某种身份验证。通过添加将正确的代理设置放入环境中
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 中)