windows安装子系统wsl Installing, this may take a few minutes... WslRegisterDistribution faile

windows应用商店安装的ubuntu子系统启动的时候报错Installing, this may take a few minutes…
WslRegisterDistribution failed with error: 0x8007019e
Error: 0x8007019e ?????? Linux ? Windows ????????? ?wsl.exe --install? ?????
?????????? https://aka.ms/wslinstall

Press any key to continue…

原因分析:

这是未安装子系统支持组件

解决办法:

使用管理员运行powershell,运行如下命令进行重启即可

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

重启完之后输入账号密码就可以了。

还是不行执行下面的命令在进行重启

3、输入(此步安装WSL): 
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
4、输入(此步安装WSL2):
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

发表回复

后才能评论