11.23 git遭遇GnuTLS error https://scz.617.cn/unix/202202111414.txt Q: 在Win10 WSL1中 https_proxy=socks5://: git clone https://github.com/gaasedelen/lighthouse.git lighthouse 报错 error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received. A: 2022-02-11 How to fix git error: RPC failed; curl 56 GnuTLS - [2016-07-14] https://stackoverflow.com/questions/38378914/how-to-fix-git-error-rpc-failed-curl-56-gnutls Github cloning error in wsl2 - [2019-07-01] https://github.com/microsoft/WSL/issues/4253 在WSL1中 sudo apt-get update sudo apt-get install gnutls-bin git config --global http.postBuffer 1048576000 关掉Windows Terminal,重新进WSL1,问题解决。如果不这样干,前述git配置好像 不会生效。 我没设置下面这些 git config --global http.sslVerify false git config --global core.compression -1 下载完成后回滚设置 git config --global --unset http.postBuffer D: 查看git配置 git config -l 删除git配置 git config --global --replace-all http.postBuffer temp git config -l git config --global --unset http.postBuffer 只要最后一条命令即可,若碰上"warning: has multiple values",才需要第一条命 令。