Didn't work.įinally found this posted solution, and WSL 2 suddenly works perfectly. Spent an hour configuring my WSL's /etc/nf and /etc/wsl.conf and troubleshooting the auto-config bug ( ). Hadn't used WSL 2 in months, was trying to sudo apt update from a Debian distro's terminal when I discovered my internet wasn't working. Troubleshooting steps before finding the above recipe:
However curl -location -iĪnd sudo apt-get update & sudo apt-get upgrade now works. If you're lucky, WSL 2 should now be able to sudo apt-get update & sudo apt-get upgrade.įor me I am still unable to ping sites, but internet seems to work everywhere else in WSL 2.įor instance, ping (or pinging any site) And run each of these commands: wsl -shutdown