When you purchase through links on our site, we may earn an affiliate commission.Heres how it works.

My own WSL suffered this exact fault recently, and this is how I fixed it.

It became obvious when a simple update wasn’t yielding any results, with the repos just hanging.

Pinging Bing.com inside WSL on Windows 11

you’re free to also diagnose a connectivity problem using theifconfigorpingcommands.

While we know the issue, how do we go about fixing it.

Hat tip here to theSuper User communityfor helping me figure it out.

Ubunutu 24.04 running on WSL 2 on Windows 11 inside Windows Terminal.

The first thing to try is entering the following commands into PowerShell asadministrator.

What does this actually do?

The short version is that it will shut down WSL, reset the connection setting and flush the DNS.

Ubuntu, Debian and Fedora running on WSL on a Snapdragon X Elite laptop

Once completed, launch your chosen WSL distro again and check connectivity.

Hopefully, you’ll now see results indicating your connectivity has returned.

If you have multiple distros installed, this should rectify the issue for all of them, too.

Windows 11 fix with DISM and SFC

Hopefully you’re now back online.

Windows 11 enable Wake on LAN

Windows 10 DISM and SFC repair

Microsoft 365 Copilot rebrand for Microsoft Office

Surface Pro 7 with Type Cover

A user creates Studio Ghibli art using ChatGPT (AI) on a mobile phone.

Copilot Vision for Windows announcement

Xbox controller with WD-40

Elden Ring Nightreign

MSI Claw surrounded by Steam Deck, ROG Ally, ROG Ally X, Nintendo Switch, Legion Go S, and Legion Go.

The rare Caine Trailblazer operator skin, obtainable from the Return to Verdansk event in Call of Duty: Warzone

Dune: Awakening

DOOM: The Dark Ages