Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e

在Windows下安装Linux系统时,安装成功后,点击启用,命令行窗口中报错:

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...

当敲下任意键时,窗口闪退。

解决方法如下

Step1:打开控制面板:

 Step2:选择“程序与功能”: Step3:点击“启用或关闭Windows功能​​​​​​​”:

 Step4:勾选“适用于Linux的Windows子系统​​​​​​​”,之后会要求电脑重启后才有效:

 

  Step5:再次运行时显示“Installing...”,之后就可以输入用户名

(PS:我这里第一次设置用户名时出现了一个报错

Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers

原因是用户名中的首字母大写了,改成小写就可以了)

根据提示输入用户名和密码就可以正常运行啦~~

 

 

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值