If you installed the WSL distribution without configuring ".wslconfig" with "networkingMode=mirrored," an unpleasant situation arises.
The interface responsible for communicating with the Hyper-V world (usually eth0) has an MTU of 9000. This leads to internet errors. Pings work, but downloading becomes impossible.
This can be fixed by editing the "/etc/wsl.conf" file. Add the following line to the boot section:
bash
[boot]
command = ip link set dev eth0 mtu 1500 2>/dev/null
After rebooting, the WSL MTU is reset to 1500.