git clone GnuTLS recv 错误(-9):收到了长度意外的 TLS 数据包
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40195898/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git clone GnuTLS recv error (-9): A TLS packet with unexpected length was received
提问by Muhamed Cicak
I tried to clone my project on my linux server via git and suddenly got this error:
我试图通过 git 在我的 linux 服务器上克隆我的项目,但突然出现此错误:
GnuTLS recv error (-9): A TLS packet with unexpected length was received.
GnuTLS 接收错误 (-9):收到了长度意外的 TLS 数据包。
This is asked many times, but answered none.
这被问了很多次,但没有回答。
I am using bitbucket.
我正在使用 bitbucket。
采纳答案by Muhamed Cicak
It turns out you just need to 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
. Now install it again by typing sudo apt-get install git
. And then when you try your clone, it should work properly.
事实证明,您只需要删除 git withsudo apt-get purge git
但不是 withsudo apt-get --purge git
出于某种原因,如果您这样做,它将无法工作--purge
。现在通过键入再次安装它sudo apt-get install git
。然后当您尝试克隆时,它应该可以正常工作。