天天看點

AOSP清華鏡像下載下傳錯誤解決

AOSP從清華鏡像下載下傳,遇到以下錯誤:

Downloading Repo source from https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
fatal: unable to access 'https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/': server certificate verification failed. 
CAfile: /etc/ssl/certs/ca-certificates.crt 
CRLfile: nonerepo: error: "git" failed with exit status 128
cwd: /home/abcd/share/android-12.1.0_r5/.repo/repo
cmd: ['git', 'fetch', '--quiet', '--progress', 'origin', '+refs/heads/*:refs/remotes/origin/*', '+refs/tags/*:refs/tags/*']
fatal: double check your --repo-rev setting.
fatal: cloning the git-repo repository failed, will remove '.repo/repo'
           

解決辦法:

export GIT_SSL_NO_VERIFY=1

參考:https://cynthiachuang.github.io/Git-Https-Server-Certificate-Verification-Failed-Solution/

作者簡介:https://shimo.im/docs/rp3OVwxle2fJn7Am/

上海徐彙

2022年6月26日