访问github网络问题解决; 访问wsl –list –online 无法从“https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json”中提取列表分发。无法与服务器建立连接 Error code: Wsl/WININET_E_CANNOT_CONNECT
https://blog.csdn.net/sky_jiangcheng/article/details/130982867?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-130982867-blog-130069015.235%5Ev38%5Epc_relevant_yljh&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-130982867-blog-130069015.235%5Ev38%5Epc_relevant_yljh&utm_relevant_index=3
解决方案如下:
1、访问 https://www.ipaddress.com ,将报错提示中的网址复制到该网站上查看ip是多少
2、查询结果拉到网页最下方,查看ip
3、配置本地host映射
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
4、重新访问 wsl –list –online
————————————————
版权声明:本文为CSDN博主「sky_jiangcheng」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/sky_jiangcheng/article/details/130982867