repo init -u错误处理

问题1

//执行
> repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
//报错
/usr/bin/env: ‘python’: No such file or directory

解决方案:修改~/bin/repo文件中:

修正前: #!/usr/bin/env python
修正后: #!/usr/bin/env python3

问题2

//执行
> repo init -u https://aosp.tuna.tsinghua.edu.cn/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 111] Connection refused
fatal: cloning the git-repo repository failed, will remove '.repo/repo'

解决方案:修改~/bin/repo文件中:

修正前: https://gerrit.googlesource.com/git-repo
修正后: https://mirrors.tuna.tsinghua.edu.cn/git/git-repo

问题3

//执行
> repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
//报错
...
...
...server certificate verification failed. CAfile: none CRLfile: none
...
...

解决方案:执行(还不知道为啥)

git config --global http.sslverify false
git config --global https.sslverify false

你可能感兴趣的:(程序人生,职场和发展,vscode)