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

Getting Error Error: 0x80070422 trying to start wsl. #3386

Closed
jjulicher opened this issue Jul 18, 2018 · 18 comments
Closed

Getting Error Error: 0x80070422 trying to start wsl. #3386

jjulicher opened this issue Jul 18, 2018 · 18 comments
Assignees

Comments

@jjulicher
Copy link

This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what's up. Please fill out ALL THE FIELDS! Issues with missing or incomplete issue templates will be closed.

Please fill out the below information:
Your Windows build number: Microsoft Windows [Version 10.0.16299.431]

In command prompt type 'wsl' enter.

  • What's wrong / what should be happening instead:
    ubuntu bash should be starting.

lxcore_adss.log
lxcore_kernel.log
lxcore_service.log
lxcore_user.log

@benhillis
Copy link
Member

@jjulicher - Thanks for providing logs. It looks like somehow the LxssManager service was disabled:
0x80070422 (ERROR_SERVICE_DISABLED): The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Could you try enabling the LxssManager service, either via this command line or via the services.msc UI?
sc config LxssManager start=auto

@benhillis benhillis self-assigned this Jul 18, 2018
@jjulicher
Copy link
Author

@benhillis
thanks for that. looks like work has disabled this and I'm unable to use this process anymore :(

@m0smith
Copy link

m0smith commented Jan 17, 2020

@benhillis
That command (sc config LxssManager start=auto) did the trick. It also caused Kaspersky to pop up a thing saying it wanted to block the linux commands from running. If you are running Kaspersky, check your settings.

@Salman-EF
Copy link

I had the same issue.
I just disabled & enabled "Windows Subsystem for Linux". reboot windows after each step as requested and everything worked as usual.

@Stevendotcom
Copy link

Adding to what @m0smith said, in Kaspersky you need to add Ubuntu as a trusted app, and to not check for encrypted connections: https://support.kaspersky.com/11444

@james-work-account
Copy link

In case anyone else had the same issue as me, sc config LxssManager start=auto didn't work in Powershell but it worked fine in cmd.exe (I was running Windows Terminal so it was in Powershell by default and I hadn't realised)

@tezhm
Copy link

tezhm commented Nov 16, 2022

Was experiencing the same issue and repairing through the Apps & Features menu seems to have fixed it for me.

image

image

@jimmyFlash
Copy link

The issue in my case was Kaspersky AV, on Win 10/11 Kaspersky may display a popup for disabling Linux based applications. if you click it it will disable LxssManager.

The solution as mentioned in comment is

  1. run cmd is administrator mode
  2. run the command -> sc config LxssManager start=auto
  3. if Kaspersky complains just click fix later/ignore

@tedzy5
Copy link

tedzy5 commented Mar 2, 2023

Thank you a lot tezhm, all worked smoothly because of your snapshots.

@VamshiGoud
Copy link

@tezhm it worked!, thanks

@VFagionato
Copy link

The issue in my case was Kaspersky AV, on Win 10/11 Kaspersky may display a popup for disabling Linux based applications. if you click it it will disable LxssManager.

The solution as mentioned in comment is

  1. run cmd is administrator mode
  2. run the command -> sc config LxssManager start=auto
  3. if Kaspersky complains just click fix later/ignore

Works like a charm

@Siddhu2502
Copy link

I had the same issue. I just disabled & enabled "Windows Subsystem for Linux". reboot windows after each step as requested and everything worked as usual.

This one worked simple as it sounds it is working perfectly

@Ban921
Copy link

Ban921 commented Mar 30, 2023

This method has helped me.

@apsolut
Copy link

apsolut commented Mar 31, 2023

Repair also helped in my case with WSL (DDEV inside, Windows 11)

@arpitdalal
Copy link

Repair didn't work for me, though I terminated all the processes using the Terminate button and then restarted WSL and that fixed it

@mizzcode
Copy link

mizzcode commented Dec 1, 2023

Repair didn't work for me, though I terminated all the processes using the Terminate button and then restarted WSL and that fixed it

i am the same problem, repair on apps features and sc config LxssManager start=auto is not fix my wsl. and then how to fix my wsl ? :(

@Farzane2630
Copy link

I ran into the same error and tried out the entire solutions on the internet and the error still was there.
But at the end of the day I came up with this command and it works!😉
wsl --install -d Debian --web-download

Apparently, there was some problems with my windows and for some reason I was not able to download this distribution from MS.
I hope this works for you guys too.

@AbadonnaAbbys
Copy link

In my case I get same error when I "sleep on" "Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17" application by the CCleaner. And after switched this application on, WSL work fine again.

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