微软商店安装Kali linux 时报错如下:
Installing, this may take a few minutes.
WslRegisterDistribution failed with error: 0x8007019e
The Windows Subsystem for Linux optional corrponent is not enabled.
See https://aka.ms/wslinstall for details.
Press any key to continue.
Please enable it and try again.
解决步骤:
打开控制面板——>程序和功能——>启动或关闭Windows功能
勾选适用于Linux的Windows 子系统 一项
最后,确认并立刻重启
问题得到解决!
或者也可以在powershell下执行如下命令来开启WSL功能哦:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
效果是一样的。