Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WslRegisterDistribution failed with error #7854

Closed
LolekLiam opened this issue Dec 21, 2021 · 8 comments
Closed

WslRegisterDistribution failed with error #7854

LolekLiam opened this issue Dec 21, 2021 · 8 comments

Comments

@LolekLiam
Copy link

LolekLiam commented Dec 21, 2021

Version

Microsoft Windows [Version 10.0.19044.1415]

Repro Steps

Run Ubuntu or any other linux distro.

Expected Behavior

Install within distro and use it.

Actual Behavior

Didn't even install and wsl can't even detect the distro.

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

Diagnostic Logs

I already tried turning off the firewall, but got the same error.

@XJIOP
Copy link

XJIOP commented Feb 17, 2022

same here

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

@LolekLiam
Copy link
Author

LolekLiam commented Feb 17, 2022

same here

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

i found a solution. open powershell as admin and type this command:
wsl --set-default-version 1
wait till it's done and open your distro again. if it doesn't work, try opening cmd as admin and paste the same command. that worked for me

@LolekLiam LolekLiam reopened this Feb 17, 2022
@XJIOP
Copy link

XJIOP commented Feb 17, 2022

i found a solution. open powershell as admin and type this command:
wsl --set-default-version 1

After that, can you resume to WSL2?

@LolekLiam
Copy link
Author

i found a solution. open powershell as admin and type this command:
wsl --set-default-version 1

After that, can you resume to WSL2?

I think you can't. I haven't tried yet. Try it and let me know if it works.

@XJIOP
Copy link

XJIOP commented Feb 17, 2022

WSL version 1 works, but the same error when converting to WSL2

wsl --set-version Debian 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Error: 0x80041002

@Polemus
Copy link

Polemus commented Jan 23, 2023

still getting this issue, all was working then it just somehow stopped working

Win 11
ubuntu 22.04.1 LTS from store

Docker desktop also fails to launch

@ZeyuLiao
Copy link

ZeyuLiao commented Aug 4, 2023

Thank you! you are my fking hero!

@quangtrinh1312
Copy link

quangtrinh1312 commented Dec 25, 2023

i delete all previous vm, disable vpn, turn off some defender about app in window defender and restart, switch wsl 1 and it work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants