WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WslRegisterDistribution failed with error: 0x80004005

Open jitterdev opened this issue 6 years ago • 66 comments

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

Press any key to continue...

This happens on Ubuntu, Ubuntu 1804, and 2004. I haven't tested any other repos I have Windows Subsystem for Linux on and I can't find anything online about this error I downloaded all repos I used from Windows Store Sorry if this is stupid, I'm inexperienced with WSL and Linux

jitterdev avatar Jun 18 '20 20:06 jitterdev

Possibly #4003.

Please post the output of the following from powershell:

PS> [System.Environment]::OSVersion
PS> Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntivirusProduct

therealkenc avatar Jun 19 '20 03:06 therealkenc

@JitterDev Did you activate the "Virtual Machine Platform" Windows feature? When I didn't, I recieved the same error.

Erik-Sovereign avatar Jun 20 '20 10:06 Erik-Sovereign

@Erik-Sovereign Yes, still get the error @therealkenc This is what I get when I type that:

PS C:\Users\xdc20> [System.Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0


PS C:\Users\xdc20> Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntivirusProduct


displayName              : Windows Defender
instanceGuid             : {D68DDC3A-831F-4fae-9E44-DA132C1ACF46}
pathToSignedProductExe   : windowsdefender://
pathToSignedReportingExe : %ProgramFiles%\Windows Defender\MsMpeng.exe
productState             : 397568
timestamp                : Sat, 20 Jun 2020 17:14:46 GMT
PSComputerName           :

jitterdev avatar Jun 20 '20 17:06 jitterdev

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

Press any key to continue...

so is me

lygstate avatar Sep 21 '20 11:09 lygstate

Please collect WSL logs and post the backlink to the feedback item here. Also please identify any third-party networking software that has been installed on Windows.

therealkenc avatar Sep 21 '20 18:09 therealkenc

https://aka.ms/AAaaqz1

Ubuntu 18.04 was installed and working as intended prior to move to Insiders

Platform ServicePack Version VersionString


Win32NT 10.0.20251.0 Microsoft Windows NT 10.0.20251.0

**NOTE:** I have removed the orphaned Norton entry as the product was no longer installed prior to upgrade to Insiders DEV displayName : Norton Security Online instanceGuid : {1122B19A-E671-38EC-8EAC-87048FD4528D} pathToSignedProductExe : C:\Program Files\Norton Security\Engine\22.20.2.57\WSCStub.exe pathToSignedReportingExe : C:\Program Files\Norton Security\Engine\22.20.2.57\nsWscSvc.exe productState : 331776 timestamp : Tue, 27 Oct 2020 01:58:09 GMT PSComputerName :

**NOTE:** I also removed/uninstalled the Kaspersky product to no avail - it was installed prior to Insiders DEV displayName : Kaspersky Security Cloud instanceGuid : {0AB30972-4BAC-7BEE-CBCA-B8F9E68797D8} pathToSignedProductExe : C:\Program Files (x86)\Kaspersky Lab\Kaspersky Security Cloud 21.1\wmiav.exe pathToSignedReportingExe : C:\Program Files (x86)\Kaspersky Lab\Kaspersky Security Cloud 21.1\avp.exe productState : 266240 timestamp : Wed, 11 Nov 2020 14:07:21 GMT

**NOTE:** Defender is now the only remaining AV product displayName : Windows Defender instanceGuid : {D68DDC3A-831F-4fae-9E44-DA132C1ACF46} pathToSignedProductExe : windowsdefender:// pathToSignedReportingExe : %ProgramFiles%\Windows Defender\MsMpeng.exe productState : 393472 timestamp : Wed, 11 Nov 2020 01:14:58 GMT PSComputerName :

tmknight avatar Nov 11 '20 14:11 tmknight

Magically started working again. I don't know why, how, or when.

Windows is weird, man.

jitterdev avatar Nov 12 '20 15:11 jitterdev

Still an issue for me. On latest (as of this post) Build 20257

tmknight avatar Nov 12 '20 15:11 tmknight

Also check if there is enough of free space on your system drive.

maxsharov avatar Dec 28 '20 19:12 maxsharov

I am using AMD CPU 3950x and windows are running inside qemu-kvm with nested vm enabled. But still doesn't working.

lygstate avatar Dec 28 '20 19:12 lygstate

@maxsharov, bare/base Linux shouldn't require more than (a very generous) 8GB when installing all the server components. Ubuntu states 2.5GB minimum for server. The WSL VHD is set to 256GB (dynamic), though, typical install for Ubuntu is less than 2GB. Do you have a MS recommended minimum?

tmknight avatar Dec 29 '20 14:12 tmknight

I am using AMD CPU 3950x and windows are running inside qemu-kvm with nested vm enabled. But still doesn't working.

This error is usually caused by not having enough disk space. In my experience you need quite a bit more than the recommended minimum

haharooted avatar Jan 04 '21 16:01 haharooted

I'm having the same error here.

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

No events registered in Windows Logs and Virtualization is possible (if I enable and run hyper-V, I'm able to create a VM with Ubuntu 20.04 and run it).

Microsoft Windows 10.0.21313.1000

keitarobr avatar Feb 13 '21 18:02 keitarobr

I'm having the same error here.

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

No events registered in Windows Logs and Virtualization is possible (if I enable and run hyper-V, I'm able to create a VM with Ubuntu 20.04 and run it).

Microsoft Windows 10.0.21313.1000

I "fixed" my system creating a .wslconfig and disabling nested virtualization:

[wsl2] nestedVirtualization=false

keitarobr avatar Feb 13 '21 18:02 keitarobr

AMD processor; the following allowed WSL2 with AMD processor. Seems nestedVirtualization is broken with AMD processors (https://github.com/microsoft/WSL/issues/5440#issuecomment-778660156)

%userprofile%.wslconfig

[wsl2]
nestedVirtualization=false

tmknight avatar Feb 14 '21 11:02 tmknight

AMD processor; the following resolved (#5440 (comment))

%userprofile%.wslconfig

[wsl2]
nestedVirtualization=false

well。we want nest virtualization

lygstate avatar Feb 14 '21 11:02 lygstate

Agreed; not saying the larger issue is resolved. However, until that is fixed, you will have to use that config to use WSL2 on AMD processors.

tmknight avatar Feb 14 '21 12:02 tmknight

I got same error 0x80004005, restart the same process but with Administrative privilege and installation run successfully.

biniam-eyakem avatar Apr 12 '21 18:04 biniam-eyakem

This happens to me too where it wont install the distro. But it will only happen when I try to install a distro under WSL2. When default version is set to WSL1, it will install fine. I don't know what's happening to cause this nonsense.

eggontargaryan avatar Sep 20 '21 21:09 eggontargaryan

finally the problem error 0x8004005 is solved you have to run as administrator your kali linux app i found this article https://windowsreport.com/unspecified-error-windows-10/ this article about need priviledge app

dragonkali avatar Jun 21 '22 15:06 dragonkali