Solved Installing WSL on a new Windows 11


H2ONaCl

Well-known member
Member
Local time
5:11 PM
Posts
64
OS
Windows 11
The command ...
WSL --install
results in ...
"the server name or address could not be resolved"

This happens in a Windows CLI in administrator mode.

This also happens in a PowerShell CLI in administrator mode.

Other WSL commands relevant to install result in the same message.
Example ...
WSL --install --no-distribution
WSL --install -d Ubuntu-24.04

Please help.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
The error "The server name or address could not be resolved" in WSL means your Linux environment has lost connection to its DNS servers. This usually happens due to bad network handshakes, aggressive VPN configurations, or WSL's auto-generated network files breaking.

Sometimes the WSL network service just needs a refresh.

Open Windows PowerShell or Command Prompt as Administrator.

Shut down WSL completely:

Code:
powershellwsl --shutdown

Restart your WSL terminal and check if the internet works.
 

My Computer My Computer

At a glance

Windows 11AMD Ryzen 7 5700GMicron Technology DDR4-3200 16GBNVIDIA GeForce RTX 3060
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
HP Pavilion
CPU
AMD Ryzen 7 5700G
Motherboard
Erica6
Memory
Micron Technology DDR4-3200 16GB
Graphics Card(s)
NVIDIA GeForce RTX 3060
Sound Card
Realtek ALC671
Monitor(s) Displays
Samsung SyncMaster U28E590
Screen Resolution
3840 x 2160
Hard Drives
SAMSUNG MZVLQ1T0HALB-000H1
No such command as "powershellwsl --shutdown" in PowerShell.

In Windows CLI "WSL --shutdown" results in "WSL is not installed."
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
It's solved. No WiFi. Sorry for the inconvenience.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Cool i'm glad to hear that have a nice day.
 

My Computer My Computer

At a glance

Windows 11AMD Ryzen 7 5700GMicron Technology DDR4-3200 16GBNVIDIA GeForce RTX 3060
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
HP Pavilion
CPU
AMD Ryzen 7 5700G
Motherboard
Erica6
Memory
Micron Technology DDR4-3200 16GB
Graphics Card(s)
NVIDIA GeForce RTX 3060
Sound Card
Realtek ALC671
Monitor(s) Displays
Samsung SyncMaster U28E590
Screen Resolution
3840 x 2160
Hard Drives
SAMSUNG MZVLQ1T0HALB-000H1
Back
Top Bottom