repo init 出现504, 401 错误

来源:互联网 发布:淘宝日系女装店铺推荐 编辑:程序博客网 时间:2024/05/06 22:45

1. 执行repo init -u  http://shaasigit02/git/manifests/yocto.git -b bug-fix的时候出现如下错误:


fatal: Cannotget https://gerrit.googlesource.com/git-repo/clone.bundle

fatal: errorTunnel connection failed: 504 Proxy Timeout ( The connection timed out. )

原因:repo 文件中的URL链接不对

需要修改:REPO_URL tohttp://shaasigit02/git/android/tools/repo.git, 该链接不是固定的,需要改成各自对应的。


2. 执行repo init -u  http://shaasigit02/git/manifests/yocto.git -b bug-fix 的时候出现如下错误:

fatal: Cannot get http://shaasigit02/git/android/tools/repo.git/clone.bundle

fatal: HTTP error 401

原因: ~/.netrc的权限不对

需要将.netrc的权限改成600,即 chmod 600 ~/.netrc

0 0