Ubuntu wsl2 git getting "The remote end hung up unexpectedly" on large repos Ubuntu wsl2 git getting "The remote end hung up unexpectedly" on large repos git git

Ubuntu wsl2 git getting "The remote end hung up unexpectedly" on large repos


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


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# orip 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 mtu5: 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.