ubuntu Repo 安装
//进入repo临时下载存放目录
cd Downloads
//下载repo(从清华镜像网站)
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
//创建repo执行目录
mkdir ~/.bin
//copy repo到上述目录
cp /home/xxx/Downloads/repo ~/.bin/
//添加执行权限
sudo chmod a+x ~/.bin/repo
//配置环境
export PATH=~/.bin:$PATH
echo"export PATH=~/.bin:$PATH">> ~/.bashrc
//配置repo更新链接
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
echo"export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'">> ~/.bashrc