2018-11-27 21:30:32 +08:00
|
|
|
# Ubuntu 安装和设置 Repo
|
|
|
|
|
|
|
|
## 安装
|
|
|
|
|
2020-07-23 10:37:37 +08:00
|
|
|
```bash
|
2022-04-29 13:20:16 +08:00
|
|
|
sudo apt install repo
|
2022-04-28 17:21:23 +08:00
|
|
|
# 手动安装
|
|
|
|
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
|
2020-07-23 10:37:37 +08:00
|
|
|
```
|
2018-11-27 21:30:32 +08:00
|
|
|
|
2020-07-23 10:37:37 +08:00
|
|
|
安装好后:
|
2018-11-27 21:30:32 +08:00
|
|
|
|
2020-07-23 10:37:37 +08:00
|
|
|
```bash
|
|
|
|
vim /usr/bin/repo
|
|
|
|
```
|
2018-11-27 21:30:32 +08:00
|
|
|
|
2020-07-23 10:37:37 +08:00
|
|
|
修改 REPO_URL 为如下值:
|
2019-07-25 13:29:09 +08:00
|
|
|
|
2020-07-23 10:37:37 +08:00
|
|
|
```bash
|
|
|
|
REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
|
|
|
|
```
|
2018-11-27 21:30:32 +08:00
|
|
|
|
2020-08-14 11:33:10 +08:00
|
|
|
## 外部参考资料
|
2018-11-27 21:30:32 +08:00
|
|
|
|
2020-08-14 11:33:10 +08:00
|
|
|
1. [repo init报错Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle](https://blog.csdn.net/feiniao8651/article/details/59178128)
|