本文记录Windows 10 安装 Linux 子系统时报错的解决方案。
在Microsoft Store 启动Ubuntu 时报错:
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...
控制面板
–> 程序与功能
–> 启动或关闭Windows功能
勾选 适用于Linux的Windows子系统
,重启即可。