WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Getting Error Error: 0x80070422 trying to start wsl.

Open jjulicher opened this issue 8 years ago • 17 comments

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

jjulicher avatar Jul 18 '18 04:07 jjulicher

@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 avatar Jul 18 '18 19:07 benhillis

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

jjulicher avatar Jul 19 '18 01:07 jjulicher

@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.

m0smith avatar Jan 17 '20 15:01 m0smith

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.

Salman-EF avatar Feb 24 '20 08:02 Salman-EF

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

Nikkie-game-dev avatar Jul 08 '20 20:07 Nikkie-game-dev

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)

james-work-account avatar Apr 08 '21 14:04 james-work-account

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

image

image

tezhm avatar Nov 16 '22 23:11 tezhm

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

jimmyFlash avatar Dec 23 '22 10:12 jimmyFlash

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

tedzy5 avatar Mar 02 '23 09:03 tedzy5

@tezhm it worked!, thanks

VamshiGoud avatar Mar 03 '23 13:03 VamshiGoud

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

VFagionato avatar Mar 03 '23 13:03 VFagionato

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

Siddhu2502 avatar Mar 03 '23 16:03 Siddhu2502

This method has helped me.

Ban921 avatar Mar 30 '23 02:03 Ban921

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

apsolut avatar Mar 31 '23 05:03 apsolut

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

arpitdalal avatar Mar 31 '23 14:03 arpitdalal

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.

Farzane2630 avatar Oct 04 '24 09:10 Farzane2630

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.

AbadonnaAbbys avatar Nov 15 '24 13:11 AbadonnaAbbys