Ubuntu20.04无法使用apt安装repo,可以参考如下方法:

1,创建repo存放目录bin,并配置环境变量:

mkdir ~/bin
PATH=~/bin:$PATH


2,下载repo启动程序

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo