本文主要是介绍安装 WSL 报错 Error code: Wsl/WININET_E_NAME_NOT_RESOLVED 问题解决,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题描述
在执行 wsl --install
安装Windows子系统Linux WSL (Windows Subsystem for Linux) 时报错:
无法从“https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json”中提取列表分发。无法解析服务器的名称或地址
Error code: Wsl/WININET_E_NAME_NOT_RESOLVED
解决方案
访问 https://www.sojson.com/ip/ 查询 raw.githubusercontent.com
域名对应的 IP 地址为 185.199.109.133
通过 SwichHosts
工具添加域名映射
185.199.109.133 raw.githubusercontent.com
再次执行 wsl --install
安装 WSL 就 ok 了。
这篇关于安装 WSL 报错 Error code: Wsl/WININET_E_NAME_NOT_RESOLVED 问题解决的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!