Reputation: 43
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
Upvotes: 3
Views: 9652
Reputation: 61
For some countries it's need to use VPN for work with wsl. after vpn installation, connect to vpn and open the powershell as administrator at the end add this command to powershell:
netsh winhttp set proxy proxy_ip:proxy_port
Upvotes: -3
Reputation: 160
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
.
Upvotes: 10