[英]git clone: GnuTLS recv error (-9): A TLS packet with unexpected length was received
I'm trying to clone a git repository and I'm receiving following error while executing the command:我正在尝试克隆 git 存储库,但在执行命令时收到以下错误:
GnuTLS recv error (-9): A TLS packet with unexpected length was received.
My client machine is a Ubuntu 14.04.我的客户端机器是 Ubuntu 14.04。
如果你在中国,可能你应该为 git 设置代理,例如
git config --global https.proxy 'socks5://127.0.0.1:9999'
Your mileage may vary, but in my case I was suspecting two factors:您的里程可能会有所不同,但就我而言,我怀疑有两个因素:
So I decided to change Internet provider and pick a higher bandwidth.所以我决定更换互联网提供商并选择更高的带宽。 It's working fine now.它现在工作正常。 I'm not sure if only changing provider or picking a higher bandwidth would have been enough, so you'd have to try out.我不确定仅更改提供商或选择更高的带宽是否就足够了,因此您必须尝试一下。
Note: I used to use a workaround I mentioned in another question which is about shallow cloning, and that made me think that shorter connections may work.注意:我曾经使用我在另一个关于浅克隆的问题中提到的解决方法,这让我认为更短的连接可能有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.