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,直到所有的代码同步完成即可。