Window10/11 Ubuntu WSL 安装

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.

Image

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值