最近打算用WSL安装系统的时候在cmd输入wsl --list --online 给我报了一个错,
结合这个文章找到解决方法:解决raw.githubusercontent.com无法访问的问题-CSDN博客
1. 在浏览器中输入网址:raw.githubusercontent.com - GitHub · Build and ship software on a single, collaborative platform · GitHub
找到下面的地址列表中的IP地址随便拷贝一个
2. 用管理员模式运行cmd,然后执行命令:
notepad c:\Windows\System32\drivers\etc\hosts
接着把上面的随便一个IP地址复制到文件最后一行,比如:
185.199.108.133 raw.githubusercontent.com
然后点击保存
3. 重新打开一个cmd,运行wsl --list --online就会发现问题解决了: