Project scenario:
Win 11 installs Ubuntu 20.04.4 and reports an error
Problem Description
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…
如下图:
![insert image description here](https://img-blog.csdnimg.cn/1787f2b841d14ca6972b3ca77d4ec734.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiW6Ze055m-5oCB5ZG96L-Q5L2_54S2,size_20,color_FFFFFF,t_70,g_se,x_16)
Cause Analysis:
Unchecked Windows Subsystem for Linux.
solution:
Control Panel –> Programs and Features –> Enable or disable Windows features –> Check the Windows Subsystem for Linux and restart. As follows: