repo clone curl 56 GnuTLS 问题总结

RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.  
fatal: The remote end hung up unexpectedly  
fatal: 过早的文件结束符(EOF)  
fatal: index-pack failed  
方法一:
git config --global http.postbuffer 524288000
//速度限制
git config --global http.lowspeedlimit 0
//时间限制
git config --global http.lowspeedtime 999999
经过验证失败!!!
方法二:
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000
方法三:
apt-get purge git
apt-get install git
验证失败!!!
方法四:
// Install the necessary dependencies and environment
sudo apt-get install build-essential fakeroot dpkg-dev
 // Create a directory and put the newly compiled git
mkdir ~/git-rectify
 / / Get git source code
cd ~/git-rectify
apt-get source git
 // Install git's dependencies
sudo apt-get build-dep git
 // install libcurl
sudo apt-get install libcurl4-openssl-dev
 // Go to the git directory, where the directory name depends on the version you installed.
cd git-2.7.4/
 // Recompile git after modifying two files
 Vim ./debian/control # Modify libcurl4-gnutls-dev to libcurl4-openssl-dev
 Vim ./debian/rules # Remove the entire line of TEST=test
sudo dpkg-buildpackage -rfakeroot -b
 / / Go back to the previous directory, install the compiled installation package
 Cd .. // is also in the ~/git-rectify directory
sudo dpkg -i git_2.7.4-0ubuntu0.4_amd64.deb
验证成功!!! 根源可能跟openssl有关

虽然通过上述命令,解决了56 GnuTLS recv error (-9)与(-54)问题,但是同时引出另外一个问题:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining

关于这个问题,网上说是增大http buffer缓冲区:

git config http.postBuffer 524288000

但是我改了之后并没有效果。

总结:其实不用关注这些错误,继续repo sync,直到所有的代码同步完成即可。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值