How to solve No internet connectivity issue in WSL 2?

Anas Shad 5 Reputation points
2023-10-10T12:22:27.4066667+00:00

Hello,

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 8.8.8.8 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