简体   繁体   中英

How to list out all the distros available in windows subsystem for Linux in windows using windows PowerShell?

I installed the WSL form Microsoft store and the I have tried to get the list of distros using the below command.

wsl.exe --list --online

在此处输入图像描述

But I got the below error.

Failed to fetch the list distribution from 'https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json'. A connection with the server could not be established Error code: Wsl/WININET_E_CANNOT_CONNECT

I am facing the same issue and I think it has something to do with IPv6 connectivity in Windows.

As https://raw.githubusercontent.com/* is IPv6 only.

curl google.com

works but

curl raw.githubusercontent.com

doesn't.

As a workaround to this problem, you can enable Virtual Machine Platform through Turn Windows Feautures On or Off menu and install WSL2 and WSL distro of your choice from Microsoft Store.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM