鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

获取子仓依赖时失败的解决办法

问题现象描述

获取子仓依赖时提示unexpected disconnect while reading sideband packet fatal。详细信息如下:

Cloning into '/path/to/pytorch/third_party/cub'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 1501 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF
fatal: fetch-pack: invalid index-pack output
fatal: clone of 'https://github.com/NVlabs/cub.git' into submodule path '/home/c30040584/pytorch/third_par ty/cub' failed
Failed to clone 'third party/cub'. Retry scheduled 

关键过程、根本原因分析

网络不稳定导致子仓下载失败。

结论、解决方案及效果

进入“path/to/pytorch”目录,重新获取子仓。

1
2
cd /path/to/pytorch
git submodule update --init --recursive