How to solve No internet connectivity issue in WSL 2?

Anas Shad 5 Reputation points


I have successfully installed Ubuntu with WSL 2. After setting up my account I tried to do 'sudo apt update' which failed to connect. I also tried to ping google but it failed as well. I searched online and found solutions with changing my /etc/resolv.conf nameserver to but that also changed nothing.

Am I missing something?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,755 questions
0 comments No comments
{count} votes