1. 前言

我们在 Windows10 下安装子系统经常出现标题中的错误。
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again._ubantu
我们来看看解决办法

2. 开启子系统支持

控制面板–》程序与功能–》启动或关闭Windows功能 勾选 适用于Linux的Windows子系统,重启即可。
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again._linux_02

开启 开发者模式

入口:
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again._windows_03
然后按照下图选择,然后稍等片刻系统会自动安装一些工具。
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again._windows_04