Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

wsl.exe --list --online 报错:无法解析服务器的名称或地址 #8025

Closed
1 of 2 tasks
qingyun2016 opened this issue Feb 7, 2022 · 14 comments
Closed
1 of 2 tasks

Comments

@qingyun2016
Copy link

Version

Microsoft Windows [版本 10.0.22543.1000]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.81.1

Distro Version

No response

Other Software

No response

Repro Steps

wsl.exe --list --online
无法解析服务器的名称或地址

Expected Behavior

wsl_error

Actual Behavior

I got this error when list linux version use wsl --list --online

Diagnostic Logs

No response

@microsoft microsoft deleted a comment from eqn-group Feb 8, 2022
@craigloewen-msft
Copy link
Member

@equation-group please see our Code of Conduct for interacting with users on this repo.

@craigloewen-msft
Copy link
Member

This seems like an internet connection issue from what you posted, can you please check your network connection and provide logs?

/logs

@ghost
Copy link

ghost commented Feb 8, 2022

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!

@ghost ghost added the needs-author-feedback label Feb 8, 2022
@ghost ghost closed this as completed Feb 15, 2022
@ghost
Copy link

ghost commented Feb 15, 2022

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!

@shuohao
Copy link

shuohao commented May 23, 2022

i have same issue.

@shuohao
Copy link

shuohao commented May 23, 2022

Version

Microsoft Windows [版本 10.0.22543.1000]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.81.1

Distro Version

No response

Other Software

No response

Repro Steps

wsl.exe --list --online 无法解析服务器的名称或地址

Expected Behavior

wsl_error

Actual Behavior

I got this error when list linux version use wsl --list --online

Diagnostic Logs

No response

老哥 你的解决了吗 我遇到一样的问题

@dbgee
Copy link

dbgee commented Sep 23, 2022

image

same issue

@qinshuze
Copy link

我遇到了同样的问题,这似乎是DNS引起的,在我修改了DNS之后,该问题得到解决
image

@qingyun2016
Copy link
Author

qingyun2016 commented Sep 24, 2022 via email

@ghost ghost removed the needs-author-feedback label Sep 24, 2022
@qingyun2016
Copy link
Author

统一回复下如何解决方案:

  1. 执行wsl --list --online时wsl会到raw.githubusercontent.com这个接口去取已经支持的的linux版本,如果报错,那就说明这个地址访问不了,这个时候你可以到https://ipaddress.com这个网站,将“raw.githubusercontent.com”查询到服务器地址有四个

image

2.接下来从查到的4个地址,在你电脑上ping 查到的地址 -t,看哪个地址能连接上
3.然后再将这个ping通的这个地址配置的你的hosts文件当中:添加“185.199.108.133(我这里这个地址能ping通,你们的填自己能ping通的) raw.githubusercontent.com”就可以了:

image

@wufeng87
Copy link

wufeng87 commented Apr 3, 2023

谢谢分享 开启wsl2
删除appdata下所有Docker目录,然后重启应用就好了

@yuanshun-guo
Copy link

You can access it by connecting to the VPN, I have resolved it

@bGZo
Copy link

bGZo commented May 24, 2024

TL;DR: Go ms-settings:network-proxy

我试了 export http_proxy, $env:http_proxy, Proxifier,全都没用,最后发现设置一下系统代理就能 install,OMG, So mess window is!

@mydaoyuan
Copy link

china shit network

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants