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

wsl service cannot start after wsl.exe. --update #9720

Closed
1 of 2 tasks
rshurts opened this issue Mar 1, 2023 · 4 comments
Closed
1 of 2 tasks

wsl service cannot start after wsl.exe. --update #9720

rshurts opened this issue Mar 1, 2023 · 4 comments

Comments

@rshurts
Copy link

rshurts commented Mar 1, 2023

Version

Microsoft Windows [Version 10.0.22621.1265]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

Ran wsl.exe --update

Running wsl returns:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. Error code: Wsl/0x80070422

Expected Behavior

wsl service is started and wsl commands work.

Actual Behavior

Running wsl returns:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. Error code: Wsl/0x80070422

Checking on the wsl service it is disabled and I'm unable to start it.
Screenshot 2023-03-01 115550

Diagnostic Logs

No response

@rshurts rshurts changed the title wsl service not started after update wsl service cannot start after wsl.exe. --update Mar 1, 2023
@rshurts
Copy link
Author

rshurts commented Mar 1, 2023

To try to get back into a working state, I used Windows Optional Features to uncheck Virtual Machine Platform and Window Subsystem for Linux. Rebooted. Rechecked those two options. Rebooted. But even a clean install results in the same error when running the wsl command.

@benhillis
Copy link
Member

@rshurts - something has disabled the service. Do you have any idea what might have done that? There may be some clues in your event log.

You could try to uninstall / reinstall the "Windows Subsystem for Linux" application (not the optional component), and see if that fixes it.

@rshurts
Copy link
Author

rshurts commented Mar 2, 2023

I needed to get back up an running so I ended up doing a clean install of windows and wsl is working.

@claui
Copy link

claui commented Mar 30, 2023

You could try to uninstall / reinstall the "Windows Subsystem for Linux" application (not the optional component), and see if that fixes it.

I clicked Repair and that fixed it.

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

3 participants