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/"