WSL: WslRegisterDistribution failed with error: 0x80041001

Version

Microsoft Windows [Version 10.0.19044.1645]

WSL Version

  • WSL 1
  • WSL 2

Kernel Version

5.10.102.1

Distro Version

Was using Ubuntu for Windows, current issue happens on all distros

Other Software

WSL Update is showing the DISK1 error, tried running wsl_update_x64.msi again, said i already have a newer version running.

possible failure due interaction with / effects of RyzenAdj/RyzenController? i’m unsure about this, as the error persisted when i uninstalled RyzenController, but started happening around the time i first installed it.

Repro Steps

open any distro through it’s windows app / open using command prompt or pwershell / open any app that relies on WSL functionality (eg. VS code)

Expected Behavior

WSL and distro launch like normal

Actual Behavior

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80041001
Error: 0x80041001 (null)
Press any key to continue...

Diagnostic Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Not sure if this helps but I had the same hex error as you and what ended up fixing it was going through these steps to uninstall I think a failed(?) update in progress to wsl then it just started working again. I also uninstalled and reinstalled wsl before trying this but that didn’t seem to make any difference.

This absolutely helped me, thanks!

thank you. this worked. all my old files are gone but i don’t think i lost anything important

side note: still got the appx error, but it collected the logs this time.

PS C:\Windows\System32> Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
>> Set-ExecutionPolicy Bypass -Scope Process -Force
>> .\collect-wsl-logs.ps1

    Directory: C:\Windows\System32

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          08-05-2022    06:31                WslLogs-2022-05-08_06-31-14
get-appxpackage: C:\Windows\System32\collect-wsl-logs.ps1:34
Line |
  34 |  get-appxpackage MicrosoftCorporationII.WindowsSubsystemforLinux > $fo …
     |  ~~~~~~~~~~~~~~~
     | The 'get-appxpackage' command was found in the module 'Appx', but the module could not be loaded. For
     | more information, run 'Import-Module Appx'.

Log collection is running. Please reproduce the problem and press any key to save the logs.
Saving logs...
Logs saved in: C:\Windows\System32\WslLogs-2022-05-08_06-31-14.zip. Please attach that file to the GitHub issue.