repo init或repo sync时出现404 Not Found

版权声明:本文为博主原创文章,转载需注明出处,谢谢合作 https://blog.csdn.net/QQ2010899751/article/details/81347599

在 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 <cmd> -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

猜你喜欢

转载自blog.csdn.net/QQ2010899751/article/details/81347599