由于未安装所需的特性,无法启动操作
win10 的 wsl
升级成 wsl2
时需要在 windows Terminal
中 输入 wsl --set-version Ubuntu 2
,来把 安装好的Ubuntu
升级成 wsl2
版本。但是报错:由于未安装所需的特性,无法启动操作
。而翻遍百度也没有解决方案。
同时,下载其他的 Linux
版本,比如:Kali-linux。启动时,会报:WSL 2 Installing Linux failed, error code: 0x80370114
解决方案:
What Causes the WslRegisterDistribution Failed Error in Windows 10?
As mentioned, this error appears if the Hyper-V service is blocked during the installation of a Linux distro using the WSL tool. However, there are instances when it shows because of the absence of an essential supporting Windows 10 feature.
大体意思是说:在安装Linux发行版的时候,Hyper-V服务被阻塞了。
到这里,大体上有数了:
a. 快捷键“win+r”打开【运行】,然后在文本框输入“services.msc”后点击【确定】或回车,打开服务窗口.
b.找到Hyper-V 主机计算服务
,启动类型 选择 手动
,然后再 启动
就可以了。(前提是已经开启的 Hyper-V 服务,如何开启自行百度)
启动之后,就可以从 wsl 转换到 wsl2了。下载新的 Linux发行版,也可以启动了。