WSL: Error 0x80004005 when trying to register Kali Linux
Windows Version
Version 10.0.22000.2295
WSL Version
0.0.0.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
5.10.16
Distro Version
Kali Linux
Other Software
No response
Repro Steps
I was enabling WSL with the steps that Microsoft already listed
Then i tried to install Kali Linux, which the installation is succesfull
But when i typed kali it started to show Installing, this may take a few minutes...
And then the error happened, but this only happens with Kali and not other distros
I tried Ubuntu and Debian which worked fine so far
Expected Behavior
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:
Actual Behavior
Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80004005 Error: 0x80004005 Unspecified error
Diagnostic Logs
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 65
for me
wsl --updateand also setting LxssManager to automatic (via services or regedit) worked.yeah it worked thank you so much! for others what i did was (after installing WSL from MS store): in the windows power shell: “wsl.exe --list --online” it returns a list of the distros avaible. then ‘wsl.exe --install (distro name)’
Did you try to edit registry lxssManager to value 2? What I did:
first use wsl.exe --update
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartdism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /allwsl --set-default-version 2wsl --install --distribution kali-linuxwsl --update Installing: Windows Subsystem for Linux Windows Subsystem for Linux has been installed.
wsl --install -d kali-linux Installing: Kali Linux Rolling Kali Linux Rolling has been installed. Launching Kali Linux Rolling… Installing, this may take a few minutes… WslRegisterDistribution failed with error: 0x80004005 Error: 0x80004005 Unspecified error
Press any key to continue…
i keep getting error
thanks a lot dude!
can you post a link to which WSL you used from the Microsoft store?
nothing mentioned above worked for me, but I found the final solution.
Delete the file at %UserProfile%\.wslconfig (only if exists, if not just skip this step)
Create an empty file at %UserProfile%\.wslconfig
Inside the file paste: [wsl2] memory=4GB # Limits VM memory in WSL 2 to 4 GB processors=2 # Makes the WSL 2 VM use two virtual processors
Run PowerShell as an administrator and paste: a) wsl --set-default-version 2 b) wsl --install -d kali-linux
Thanks 😁
I actually took my 2nd laptop and installed kali without any error 😃
Hi, I try “wsl --update” and then “wsl --install -d (distribution)” Its worked for me
im also having this issue, with kali linux. tried all the fixes online but none works.