You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Actual Behavior
I got this error when list linux version use wsl --list --online
Diagnostic Logs
No response
This seems like an internet connection issue from what you posted, can you please check your network connection and provide logs?
/logs
Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to
attach logs here
, please make sure to post the link to the Feedback Hub item in this chat so we can see it.
Thank you!
This issue has been automatically closed since it has not had any author activity for the past
7 days
. If you're still experiencing this issue please re-open it.
Thank you!
Actual Behavior
I got this error when list linux version use wsl --list --online
Diagnostic Logs
No response
老哥 你的解决了吗 我遇到一样的问题
这个问题是由于安装包地址被墙了的缘故,最终的解决方案,在hosts中增加:
185.199.108.133 raw.githubusercontent.com
即可解决,但是有时执行wsl.exe --list --online命令还是会有连不上的情况,多执行几次就好了
------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年9月24日(星期六) 下午2:24
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [microsoft/WSL] wsl.exe --list --online 报错:无法解析服务器的名称或地址 (Issue
#8025
)
统一回复下如何解决方案:
执行wsl --list --online时wsl会到raw.githubusercontent.com这个接口去取已经支持的的linux版本,如果报错,那就说明这个地址访问不了,这个时候你可以到
https://ipaddress.com这个网站,将“raw.githubusercontent.com”查询到服务器地址有四个
2.接下来从查到的4个地址,在你电脑上ping 查到的地址 -t,看哪个地址能连接上
3.然后再将这个ping通的这个地址配置的你的hosts文件当中:添加“185.199.108.133(我这里这个地址能ping通,你们的填自己能ping通的) raw.githubusercontent.com”就可以了: