使用vmware重装ubuntu 18.04虚拟机后,按照下面方法配置repo:
curl https://storage.googleapis.com/git-repo-downloads/repo > /bin/repo
chmod a+x /bin/repo
在同步代码时,出现下面问题:
root@ubuntu:/home/run/code# repo sync -l
  File "/home/run/code/.repo/repo/main.py", line 147
    except DownloadError, e:
                        ^
SyntaxError: invalid syntax
删除repo,使用apt-get重新安装repo,可同步代码。解决方法如下:
rm /bin/repo
apt-get install repo








网友评论