项目场景:
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…
如下图:
![在这里插入图片描述](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)
原因分析:
未勾选适用于Linux的Windows子系统。
解决方案:
控制面板–>程序与功能–>启动或关闭Windows功能->勾选适用于Linux的Windows子系统,重启即可。如下所示:
![在这里插入图片描述](https://img-blog.csdnimg.cn/3e3950bec740421e9ec6e3737568f097.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)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)