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

Most upvoted comments

for me wsl --update and 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)’

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

Did you try to edit registry lxssManager to value 2? What I did:

  1. win + R -> regedit -> \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LxssManager -> click the start option -> edit the value to 2
  2. run powershell in administrator mode -> wsl --update
  3. kali
  4. then it 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)’

i tried to install kali linux as you methode but don’t work with me.

wsl --install -d kali-linux

but after few second show same problem, error “WslRegisterDistribution failed with error: 0x80004005”

what i do for solving this problem is editing registry lxssManager to value 2, manual install with powershell, and direct install from microsoft store.

oh btw i use windows 11.

first use wsl.exe --update

  1. Make sure to use Powershell (as adminstrator) instead of cmd
  2. Type these two commands :
    • dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    • dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all
  3. Download and install the WSL 2 Linux Kernel from here: aka.ms/wsl2kernel
  4. Restart
  5. Open again Powershell
  6. Type : wsl --set-default-version 2
  7. Install KALI : wsl --install --distribution kali-linux

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

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

Did you try to edit registry lxssManager to value 2? What I did:

  1. win + R -> regedit -> \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LxssManager -> click the start option -> edit the value to 2
  2. run powershell in administrator mode -> wsl --update
  3. kali
  4. then it worked!

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.

  1. Delete the file at %UserProfile%\.wslconfig (only if exists, if not just skip this step)

  2. Create an empty file at %UserProfile%\.wslconfig

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

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

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

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.