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: 0x80040321 #11894

Closed
1 of 2 tasks
Aroken opened this issue Aug 7, 2024 · 4 comments
Closed
1 of 2 tasks

WslRegisterDistribution failed with error: 0x80040321 #11894

Aroken opened this issue Aug 7, 2024 · 4 comments

Comments

@Aroken
Copy link

Aroken commented Aug 7, 2024

Windows Version

Microsoft Windows [Version 10.0.20348.2582]

WSL Version

WSL version: 2.2.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

Comand:
wsl --status

Result:
This application requires the Windows Subsystem for Linux Optional Component.
Install it by running: wsl.exe --install --no-distribution
The system may need to be restarted so the changes can take effect.
Error code: Wsl/WSL_E_WSL_OPTIONAL_COMPONENT_REQUIRED

Comand:
wsl --install

Result:
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80040321
Error: 0x80040321 (null)
Press any key to continue...

Expected Behavior

Ubuntu

Actual Behavior

WslRegisterDistribution failed with error: 0x80040321
Error: 0x80040321 (null)

Diagnostic Logs

WslLogs-2024-08-07_17-54-56.zip
WslLogs-2024-08-07_18-02-59.zip

Copy link

github-actions bot commented Aug 7, 2024

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
Multiple log files found, using: https://github.com/user-attachments/files/16532496/WslLogs-2024-08-07_17-54-56.zip
Detected appx version: 2.2.4.0

@Aroken
Copy link
Author

Aroken commented Aug 7, 2024

I have Not found solution in similar issues

@Aroken
Copy link
Author

Aroken commented Aug 8, 2024

I found the problem. The WSL service must only be started as Local System, not by a specific username.

Now looking for a way to run WSL with Ubuntu after the sign out.

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 8, 2024

@Aroken: Does that mean that you changed the configuration of WslService to run as a local user ? If so this is expected, since that service indeed needs to run as system.

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

2 participants