【问题标题】:git clone error [ error: inflate: data stream error (incorrect data check) ]git clone 错误 [错误:inflate:数据流错误(数据检查不正确)]
【发布时间】:2021-04-19 08:18:37
【问题描述】:

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

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

虚拟盒分配 RAM(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

【问题讨论】:

    标签: git ubuntu clone inflate


    【解决方案1】:

    错误:膨胀:

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

    【讨论】:

    • 我试过“git config http.postBuffer 134217728 # =~ 128MB”,但还是一样的错误
    【解决方案2】:

    对我来说很好用:

    % 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 端没有损坏。您的机器上可能存在传输错误或其他错误。你再试一次吗?你可以在不同的机器上试试吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-06
      • 2021-12-03
      • 1970-01-01
      • 1970-01-01
      • 2016-04-05
      • 2015-09-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多