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

 

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值