错误信息:fatal: error [Errno 111] Connection refused
解决方法:
修改home 目录下的 .bashrc文件。
gedit ~/.bashrc
在文件的末尾添加如下命令:
export PATH=~/bin:$PATH
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
保存文件后运行命令,使更改生效:
source ~/.bashrc
搞定 附上官网教程初始化repo教程
https://source.android.com/source/downloading?hl=zh-cn