在 Windows 上的 wsl2 中的 Ubuntu 19.04 中执行此操作数天。
$ git clone https://github.com/gohugoio/hugo.git
Cloning into 'hugo'...
error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received.
fatal: The remote end hung up unexpectedly
- 我尝试重新编译 git 以使用 openssl,但没有做任何事情。
- 我尝试了 ssh 和 https。
- 我尝试修改 http 的 git 设置。
- 我修改了各种 git 内存设置。
- 目前 Stack Overflow 上的任何内容都无法解决此问题。
- 我完全重新安装了 Windows。不,还在冲洗。
四天的威士忌探戈狐步舞……然后我找到了。
最佳答案
最新的 Windows Hyper-V 与您的 wifi 驱动程序有问题。您需要从 https://downloadcenter.intel.com/download/28876/Windows-10-Wi-Fi-Drivers-for-Intel-Wireless-Adapters?v=t 获取最新信息
一旦安装了新的驱动程序,您就会惊叹于 wsl2 中的 git 如何完全完成它应该做的事情。我再也回不到生命中的那 5 天了。我希望这会让你失去 5 天的时间。
关于windows - Ubuntu wsl2 git 在大型 repos 上获取 "The remote end hung up unexpectedly",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56946336/