microsoft/WSL

Wsl/InstallDistro/WININET_E_CANNOT_CONNECT when installing Ubuntu

viblo-majority opened this issue · 5 comments

Windows Version

Microsoft Windows [Version 10.0.22631.3447]

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

I have Rancher Desktop installed.
I should also add that I have tried to change my DNS settings to Google DNS, and that I have tried on two different networks (at home and at the office)

Repro Steps

> wsl --install -d Ubuntu-24.04
OR
Installing Ubuntu from the Windows store

Expected Behavior

Ubuntu installed

Actual Behavior

PS C:\code> wsl --install -d Ubuntu-24.04
A connection with the server could not be established
Error code: Wsl/InstallDistro/WININET_E_CANNOT_CONNECT

Diagnostic Logs

WslLogs-2024-05-15_08-41-27.zip

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
.wslconfig found
Detected appx version: 2.1.5.0
Detected user visible error: Wsl/InstallDistro/WININET_E_CANNOT_CONNECT

@viblo-majority: This looks like a connectivity issue, but maybe it's within the store.

Does:

wsl --install -d Ubuntu-24.04 --web-download

Help resolve the issue ?

I tried from two different (wifi) networks with the same result, and I don't have other network issues on any of them. But is there any specific address I can try with for example ping, curl or similar to check outside the wsl tool?

I did try the web-download option. I think it downloaded it, and maybe installed it. However, it can't be started, and now it will not try to install it again.

PS C:\> wsl -l --all
Windows Subsystem for Linux Distributions:
rancher-desktop-data (Default)
rancher-desktop
PS C:\> wsl -d ubuntu-24.04
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
PS C:\> wsl --install -d Ubuntu-24.04
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
The operation completed successfully.
PS C:\> wsl --install -d Ubuntu-24.04 --web-download
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
The operation completed successfully.