8

Getting this action for days in Ubuntu 19.04 in wsl2 on Windows.

$ 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
  • I tried recompiling git to use openssl, didn't do anything.
  • I tried both ssh and https.
  • I tried to modify git settings for http.
  • I modified all kinds of git memory settings.
  • Nothing currently on Stack Overflow is correct for this issue.
  • I completely reinstalled Windows. Nope, still hosed.

Four days of Whiskey Tango Foxtrot... then I found it.

smashedtoatoms
  • 1,398
  • 11
  • 17
  • So many threads and solutions that seem to be trying to fix the issue through git configuration but none of them will work without the right drivers. – Sinstein Oct 10 '20 at 10:11

2 Answers2

13

The latest Windows Hyper-V has issues with your wifi driver. You need to get the latest from https://downloadcenter.intel.com/download/28876/Windows-10-Wi-Fi-Drivers-for-Intel-Wireless-Adapters?v=t

Once the new drivers are installed, you can marvel at how git in wsl2 totally does what it is supposed to. I will never get those 5 days of my life back. I hope this will keep you from losing 5 days of yours.

Here is the issue: https://github.com/microsoft/WSL/issues/4253

smashedtoatoms
  • 1,398
  • 11
  • 17
  • This also fixed the problems I was having installing conda packages, specifically the error "CondaHTTPError: HTTP 000 CONNECTION FAILED". – Tokkot Nov 20 '20 at 20:48
2

Update Nov. 2020: the latest comments on WSL2 4253 point out to:

set MTU to 1350 (same as VPN interface):

sudo ifconfig eth0 mtu 1350
# or
ip link set dev eth0 mtu 1350

Check your MTU:

PS C:\> netsh interface ipv4 show subinterface

   MTU  MediaSenseState   Bytes In  Bytes Out  Interface
------  ---------------  ---------  ---------  -------------
4294967295                1          0     117945  Loopback Pseudo-Interface 1
  1500                1  879583365  308029141  Wi-Fi
...
  1500                1    3616963    2778319  vEthernet (WSL)

vs.

➜ ip addr | grep mtu
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

A Windows 10 build 20231 might be needed to ensure issue 5821 "WSL vEthernet adapter shows up as disconnected" is fixed.

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283