windows - Ubuntu wsl2 git 在大型 repos 上获取 "The remote end hung up unexpectedly"

标签 windows git ssl windows-subsystem-for-linux gnutls

在 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 天的时间。

这里是问题:https://github.com/microsoft/WSL/issues/4253

关于windows - Ubuntu wsl2 git 在大型 repos 上获取 "The remote end hung up unexpectedly",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56946336/

相关文章:

php - 如何解决错误 : Message: fsockopen(): unable to connect to ssl://smtp. gmail.com:465(连接被拒绝)

ssl - 在 Windows 中创建自签名代码签名证书并使用另一个系统

windows - 使用 powershell 更改注册表二进制数据

linux - 关于回车

git - 有效的 Git 存储库名称的格式是什么?

php - 根据 PHP 中的证书验证 SAML 响应中的数字签名

windows - 部署的 Qt5 应用程序不打印或不显示打印对话框

windows - 通过在 Linux 上引导,然后交叉编译,从源代码构建适用于 Windows 的 CMake

git - 识别推送中所做的所有提交

linux - 关于在亚马逊云 ec2 上设置 git 的虚拟问题