curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repocp repo ~/binchmod a+x ~/bin/repo如果使用时报错, 切换ubuntu 到 python3 版本。gedit repo 修改repo默认链接地址:REPO_URL = "https://gerrit.googlesource.com/git-repo"修改为以下链接REPO_URL = "https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/"