解决Android源码下载“fatal: Cannot get https:gerrit.googlesource.comgit-repoclone.bundle”

解决Android源码下载“fatal: Cannot get https:gerrit.googlesource.comgit-repoclone.bundle”,第1张

问题描述:

执行“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.3

Your identity is: huangyabin001
If you want to change this, please re-run 'repo init' with --config-name

Testing 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)? y

repo 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.

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/992532.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存