项目场景:
win 11 安装 Ubuntu 20.04.4报错
问题描述
Installing, this may take a few minutes… WslRegisterDistribution failed with error: 0x8007019e The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again. See https://aka.ms/wslinstall for details. Press any key to continue…
如下图:
原因分析:
未勾选适用于Linux的Windows子系统。
解决方案:
控制面板–>程序与功能–>启动或关闭Windows功能->勾选适用于Linux的Windows子系统,重启即可。如下所示: