Window10/11 Ubuntu WSL 安装
1. Microsoft Store中安装ubuntu
可能遇到的问题: Microsoft store 一直在加载状态,无法进入应用商店
解决方案:
参考微软官方链接,实际测试有效。
https://answers.microsoft.com/en-us/windows/forum/all/microsoft-store-infinite-loading-screen/6602860b-6f1a-482f-9dcb-785d371e0b8e
First of all, I suggest you try changing your DNS, as the slow page loading may be due to network issues. Win+Q to open the search box, enter ‘ncpa.cpl’, press Enter to open the “Network Connections” window, select your network adapter, right-click > “Properties” , double-click “Internet Protocol Version (TCP/IP)”, then Set as shown below. Then try open Microsoft Store.
If that still doesn’t work, you can reset your Microsoft Store (don’t worry, your previously downloaded software won’t disappear). Win+Q to open the search box, enter ‘Microsoft store’, right-click “Microsoft Store” > “More” > “App settings” > “Reset”. Then try open Microsoft Store.
如果操作完成后,Microsoft Store还是一直加载状态,请查看VPN是否关闭了,关闭后恢复正常。
2. 安装Ubuntu 后打开时可能报错
解决方案:参考微软链接 https://learn.microsoft.com/en-us/answers/questions/1152199/wslregisterdistribution-failed-with-error-0x800701
管理员方式运行CMD,然后输入wsl --install
安装完成后重启即可;
备注:这一步又遇到个奇怪的问题,输入wsl --install时需要将VPN打开,否则显示错误、无法下载,大家看看是否也有类似的问题。
最后,过了几天又遇到了新的报错 _!!!
错误:WslRegisterDistribution failed with error: 0x80370102
解决方案:
以管理员通身份打开终端程序或者Powershell过运行下面的代码并重启系统就可以解决这个问题。
bcdedit /set hypervisorlaunchtype auto