repo init或repo sync时出现404 Not Found

在 repo init 或者 repo sync时,显示如下日志log:

curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
首先,需要明确这些log不是致命ERROR,只是提醒 Server does not provide clone.bundle;

       只要repo done,还在运行,即可。

其实,为什么会出现此种log ?

       在通过Git的HTTP协议下载最新数据之前,Repo尝试下载预先打包的捆绑文件以引导每个git。

      原文:Repo attempts to download a prepackaged bundle file to bootstrap each git prior to downloading the most recent data via Git's HTTP protocol.

      如果捆绑文件不可用(如本例所示),Repo将忽略它并继续进行。换句话说,不要注意这一点。

      原文:If a bundle file isn't available (like in this case), Repo will ignore it and proceed anyway. In other words, don't pay any attention to this.

最后,如何取消download clone.bundle ?

      只需要在repo添加一个参数 --no-clone-bundle,如下

可通过 repo -h 获得参数–no-clone-bundle的说明

$ repo init --no-clone-bundle
$ repo sync --no-clone-bundle

参考链接:

repo init fails with “curl: (22) The requested URL returned error: 404”

What to do about curl clone.bundle error on AOSP repo sync

repo init may also have --no-clone-bundle options

转自:repo init或repo sync时出现404 Not Found

你可能感兴趣的:(工作学习遇到问题可搜专栏,linux,git,repo)