26 lines
477 B
Markdown
26 lines
477 B
Markdown
# Ubuntu 安装和设置 Repo
|
|
|
|
## 安装
|
|
|
|
```bash
|
|
sudo apt install repo
|
|
# 手动安装
|
|
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
|
|
```
|
|
|
|
安装好后:
|
|
|
|
```bash
|
|
vim /usr/bin/repo
|
|
```
|
|
|
|
修改 REPO_URL 为如下值:
|
|
|
|
```bash
|
|
REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
|
|
```
|
|
|
|
## 外部参考资料
|
|
|
|
1. [repo init报错Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle](https://blog.csdn.net/feiniao8651/article/details/59178128)
|