在windows商店里面下载了一个ubuntu22.04.03 LTS版本的wsl,当我下载完运行这个软件的时候,出现下面的错误:
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子系统”然后重启。重启之后并没有什么用,然后点击了报错信息给出的微软官网教程。旧版 WSL 的手动安装步骤 | Microsoft Learn
我进去按照步骤操作就解决了,这是我的过程页面,可以给大家参考:
就是先以管理员身份运行cmd,输入上面的命令,然后去ubuntu注册账户
就像这样,非常简单,希望可以帮到大家。