微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

git clone 错误[错误:膨胀:数据流错误数据检查不正确]

如何解决git clone 错误[错误:膨胀:数据流错误数据检查不正确]

当我尝试从 git 下载但出现一些错误时..

我的 ubuntu 操作系统:Virtual Box(6.1.10.R138449) 上的 Ubuntu 16.04.7 LTS (xenial)

虚拟盒分配内存(9G) Virtual Box 分配的磁盘空间(200Gb) 英特尔酷睿 i7 9750H

 $> git clone --depth 1 https://github.com/bryanyjs/u-boot-socfpga.git

cloning into 'u-boot-socfpga'...
remote: Enumerating objects: 8387,done.
remote: Counting objects: 100% (8387/8387),done.
remote: Compressing objects: 100% (7815/7815),done.
error: inflate: data stream error (incorrect data check)
fatal: pack has bad object at offset 381928: inflate returned -3
fatal: index-pack Failed

Error Image @ Ubuntu 16.04.4

but i use Window 10 CMD(Command) Works well..

有人帮忙吗??

Virtual Box(Ubuntu 网速测试结果)

我认为互联网速度够快..

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Retrieving speedtest.net configuration...
Testing from Korea Telecom (210.113.72.51)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by _0rze (Fukuoka) [541.62 km]: 71.874 ms
Testing download speed................................................................................
Download: 48.84 Mbit/s
Testing upload speed...............................................................................................
.Upload: 47.17 Mbit/s

解决方法

错误:膨胀:

某些内容无法正确压缩/膨胀,请查看 this post

,

对我来说效果很好:

% git clone --depth 1 https://github.com/bryanyjs/u-boot-socfpga.git
Cloning into 'u-boot-socfpga'...
remote: Enumerating objects: 8387,done.
remote: Counting objects: 100% (8387/8387),done.
remote: Compressing objects: 100% (7815/7815),done.
remote: Total 8387 (delta 2183),reused 3697 (delta 422),pack-reused 0
Receiving objects: 100% (8387/8387),15.15 MiB | 3.81 MiB/s,done.
Resolving deltas: 100% (2183/2183),done.
Updating files: 100% (7613/7613),done.

所以github端没有腐败。您的机器上可能存在传输错误或其他一些错误。你再试一次吗?你可以在不同的机器上试一下吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。