执行“repo init -u https://android.googlesource.com/platform/manifest”命令提示“fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle”
详细如下:
解决方案:root@DESKTOP-MTL291U:~/workspace/android# repo init -u https://android.googlesource.com/platform/manifest
Downloading Repo source from https://gerrit.googlesource.com/git-repo
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 11] Resource temporarily unavailable
fatal: double check your --repo-rev setting.
fatal: cloning the git-repo repository failed, will remove '.repo/repo'
打开socks5相关代理,配置系统环境如下:
问题解决:export http_proxy="socks5://127.0.0.1:1080" export https_proxy="socks5://127.0.0.1:1080"
root@DESKTOP-MTL291U:~/workspace/android# export http_proxy="socks5://127.0.0.1:1080"
root@DESKTOP-MTL291U:~/workspace/android# export https_proxy="socks5://127.0.0.1:1080"
root@DESKTOP-MTL291U:~/workspace/android# repo init -u https://android.googlesource.com/platform/manifest
Downloading Repo source from https://gerrit.googlesource.com/git-repo
repo: Updating release signing keys to keyset ver 2.3Your identity is: huangyabin001
If you want to change this, please re-run 'repo init' with --config-nameTesting colorized output (for 'repo diff', 'repo status'):
black red green yellow blue magenta cyan white
bold dim ul reverse
Enable color display in this user account (y/N)? yrepo has been initialized in /root/workspace/android/
If this is not the directory in which you want to initialize repo, please run:
rm -r /root/workspace/android//.repo
and try again.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)