编译openharmony的时候,repo阶段碰到一个问题,建议不要通过 apt install安装,里面的源来自google
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ~/repo
chmod 755 ~/repo
执行类似这样的操作
repo init -u git@gitee.com:openharmony/manifest.git 。。。。。。
repo init时的遇到fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
修改/usr/bin/repo,将
REPO_URL = 'https://gerrit.googlesource.com/git-repo'
替换为
REPO_URL = 'https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
######
还有一种方案就是这样执行:
~/repo init -u git@gitee.com:openharmony/manifest.git 。。。。。。