[英]git error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function
I tried git submodule update --init --recursive
我试过git submodule update --init --recursive
and got following error并得到以下错误
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function. fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
My OS is window 10 and I'm using docker for windows.我的操作系统是窗口 10,我正在使用 docker for windows。 Docker
images is ubuntu:16.04
Docker
镜像是ubuntu:16.04
It's not exactly the same error code, but one response to this similar issue recommends setting large buffer sizes in the git global config settings;它不是完全相同的错误代码,但是对这个类似问题的一个响应建议在 git 全局配置设置中设置大缓冲区大小;
git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000
This worked for me to overcome a similar error as yours, trying to clone the cppcheck repo off GitHub;这有助于我克服与您类似的错误,尝试从 GitHub 克隆 cppcheck 存储库;
enter code here`remote: Counting objects: 100% (325/325), done.
remote: Compressing objects: 100% (159/159), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
看起来你缺少openssl包,因为另一种选择可能是网络问题。
For me uninstalling and reinstalling git again worked for me对我来说,再次卸载并重新安装 git 对我有用
Remove git with sudo apt-get purge git
but NOT with sudo apt-get --purge git
for some reason it wont work if you do --purge
.使用sudo apt-get purge git
删除 git 但不能使用sudo apt-get --purge git
,由于某种原因,如果你这样做--purge
。 Now install it again by typing sudo apt-get install git
.现在通过键入sudo apt-get install git
再次安装它。 And then when you try your clone, it should work properly.然后,当您尝试克隆时,它应该可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.