WSL: WSL Ubuntu error 0x80004002

  • Your Windows build number: Microsoft Windows [Version 10.0.16299.192]

  • What you’re doing and what’s happening:

C:\WINDOWS\system32>bash
Error: 0x80004002
Press any key to continue...
  • What’s wrong / what should be happening instead: It should launch bash. Ubuntu WSL installed via Store and previously working. I’m unaware of what precipitated the change in behaviour; I was unable to launch bash from start menu and running bash.exe yields output above.

lxcore trace output sent.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 22 (2 by maintainers)

Most upvoted comments

Run as administrator:

PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux



Path          : 
Online        : True
RestartNeeded : False

Worked for me

Get-AppxPackage |? { $_.Name -like "*WindowsSubsystemforLinux*" }
Remove-AppxPackage -Package MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe

worked for me. run powershell as administrator:

Get-AppxPackage |? { $_.Name -like "*WindowsSubsystemforLinux*" }
Remove-AppxPackage -Package MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe

i try to install wsl but this problem destroy everything idk why everything you did guys here dont help

Worked for me

Get-AppxPackage |? { $_.Name -like "*WindowsSubsystemforLinux*" }
Remove-AppxPackage -Package MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe

Obrigado amigo, você é um amigo 👍❤

Worked for me

Get-AppxPackage |? { $_.Name -like "*WindowsSubsystemforLinux*" }
Remove-AppxPackage -Package MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe

Works for me as well. But I met another problem, After execute the two commands, if I directly click the ubuntu18 installed from Microsoft store, it can successfully run. But if I click the wsl installed from store at firtst, the same error appears. I’m still looking for the reason.

Worked for me

Get-AppxPackage |? { $_.Name -like "*WindowsSubsystemforLinux*" }
Remove-AppxPackage -Package MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe

worked for me, thanks.

worked for me. run powershell as administrator:

Get-AppxPackage |? { $_.Name -like "*WindowsSubsystemforLinux*" }
Remove-AppxPackage -Package MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe

worked for me !! Thanks >3

Run as administrator:

PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux



Path          : 
Online        : True
RestartNeeded : False

worked for me!

Run as administrator:

PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux



Path          : 
Online        : True
RestartNeeded : False

Worked for me

Run as administrator:

PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

thank’s. it’s works for me