wsl2 kali 安装报错 WslRegisterDistribution failed with error: 0x80004005

wsl2 kali 安装报错

我是从MS Store 安装的,下载后点击打开,弹出cmd窗口

报错信息:

Installing, this may take a few minutes... 
WslRegisterDistribution failed with error: 0x80004005 
Error: 0x80004005 ???????

Press any key to continue...

解决方法:

LxssManager 服务修改为自动启动
从服务中修改会提示“拒绝访问”,所以从注册表改
win + R -> regedit -> \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LxssManager -> 右键 Start 项 -> 将值修改为 2
默认为 3

1 自动(延迟启动)
2 自动
3 手动
4 禁用

更新wsl

管理员启动 powershell
wsl --update


成功安装

再次点击打开

Installing, this may take a few minutes...
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
Enter new UNIX username:

你可能感兴趣的:(随写,linux)