Search code examples
windowspowershellcommand

Error while installing WSL for windows 11


when i run the command on administrator settings on my windows 11

wsl --install

it shows me the following error

a connection with the server could not be established

I searched youtube too for the fixes but none worked


Solution

  • Hi I was having same error. I am Indian using Jio Fiber. I connected to VPN to solve the error. It seems that Jio prevents connection to certain url such as https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json which are needed for wsl linux installation. You can check by trying to open above link in chrome and running network diagnostics. Basically the above url gets called at the end when you do wsl --install.