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 0x80070422 #3815

Closed
dvescovi1 opened this issue Jan 31, 2019 · 32 comments
Closed

WslRegisterDistribution failed with 0x80070422 #3815

dvescovi1 opened this issue Jan 31, 2019 · 32 comments

Comments

@dvescovi1
Copy link

Windows 10 Enterprise version 1803

I am on a corp network which has several group polices enforced. I was blocked from accessing the full MS-Store but was able to download via the following instructions:
https://docs.microsoft.com/en-us/windows/wsl/install-manual

I enabled wsl, rebooted and launched the CanonicalGroupLimitedUbuntu18.04onWindowsxxxx.Appx

it appeared to install but then got:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070422
Error: 0x80070422 The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Press any key to continue...

Any idea what could be causing this? Could it be due to some corp. group policy?

I do have local admin rights on my PC.

@dvescovi1
Copy link
Author

C:\WINDOWS\system32>sc start LxssManager
[SC] StartService FAILED 1058:

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

C:\WINDOWS\system32>

@dvescovi1
Copy link
Author

I think you found the issue.
If I look under "Services" I see the LxssManager service is "disabled".
If I try to set it to manual I get an "Access Denied".
My guess corp. disabled this as part of a group policy.

@benhillis
Copy link
Member

Yeah 0x80070422 is E_SERVICE_DISABLED. Not sure how it got into that state, but that's not a supported configuration.

@ghost
Copy link

ghost commented Jan 2, 2020

I'm on my Windows 10 Home installation and with no group policies edited or anything like that and I get the same "Access denied" error when I try to enable it.

@leonardovilarinho
Copy link

leonardovilarinho commented Jan 18, 2020

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

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

@josemalcher
Copy link

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

Exactly!
Remember to use CMD as Administrator

@leephung
Copy link

"sc config LxssManager start=auto" is my hero. Much thanks for the tip!

@yeeking
Copy link

yeeking commented Jun 12, 2020

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.

On Windows 10 Home, no sc.exe so cannot run the magic command, so the above worked for me.

  • I typed windows features into the start search, selected turn windows features on or off
  • I disabled WSL, rebooted.
  • Went back in there again, enabled WSL, rebooted.
  • Then I was able to re-enable the LxssManager service in the services list, though only in manual, still not allowed to set it to automatic for some reason.

Noting that I am running Kaspersky cloud, since I had another non-circumventable permission denied problem with windows defender. Having not used Windows for serious work since Windows 2000, this kind of mad stuff where I as administrator and sole user of my computer can't turn things on that I want to turn on is totally infuriating and bonkers. I'm gonna dig out my windows 98SE disk. That was the last good one :) Oh hang on, not CD drive.

@ezero0
Copy link

ezero0 commented Jun 16, 2020

Karsperski Free Antivirus block the service.

"sc config LxssManager start=auto" Works

@DNCTrung
Copy link

DNCTrung commented Oct 9, 2020

Karsperski Free Antivirus block the service.

"sc config LxssManager start=auto" Works

Thank @ezero0 , I choose to remove KFA.

@Groberts93
Copy link

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

Thank you so much.

@Kirandp6
Copy link

sc config LxssManager start=auto

I was running with Powershell ... with cmd it worked !

@victordev13
Copy link

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

Thanks, it worked for me, then just ignore kaspersky in the popup

@iBOY2020
Copy link

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

Hey So I am learning hacking but I created a discord server so that others can learn too.
If you have discord please join my server you seem to have knowledge in these stuff
Link: https://discord.gg/MJmeaG92fS

@gbyteinfo
Copy link

sc config LxssManager start=auto tnaks, é só executar como adm o cmd e executar esse comando. Em seguida basta inicializar o Ubunto WSL

@tangosoftsrl
Copy link

El mismo problema.
Logré arreglarlo entrando en modo seguro y usando:
Presione win + r;
Escribe "cmd"
Da el comando:sc config LxssManager start=auto
Parece que Kaspersky había bloqueado el servicio, por lo que es bueno volver a instalarlo si tienes uno, y cuando te pregunte sobre la ejecución de comandos de Linux lo dejas desbloqueado.

¡Exactamente!
Recuerde usar CMD como administrador

gracias, me funcionó a la perfección, el problema lo genera Karspersky free.

@marcelo-antiqueira-silva

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

Welll! Great works for me!

Remember execute cmd with Administrator Level! GREAT JOB!

@mufidu
Copy link

mufidu commented Mar 13, 2021

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

finally it works. thanks.

@fbenrejdal
Copy link

Thanks for the tip
from CMD as administrator the command sc config LxssManager start=auto works !

@hevener10
Copy link

Same problem.
I managed to fix it by going into safe mode and using:

Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

finally it works. thanks.

@giftmafomo
Copy link

Same problem. I managed to fix it by going into safe mode and using:

Press win + r; Write "cmd" Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

Was indeed blocked by Kaspersky after uninstalling, then running CMD the code was a sucess since was denied before. Ubuntu is now running, Thanks alot!

@iipran
Copy link

iipran commented Jul 31, 2022

Same problem. I managed to fix it by going into safe mode and using:

Press win + r; Write "cmd" Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

It works!!
Thank youuuuu

@MaxGuH
Copy link

MaxGuH commented Sep 8, 2022

So, after using command sc config LxssManager start=auto you should get the message similar to the one on the picture below. So go to the Kaspersky app itself by clicking "Show" and choose "Ignore". And you set.
Screenshot 2022-09-07 202121

@PedroHenrique-Maia
Copy link

"sc config LxssManager start=auto" Funciona

@Gui-mp8
Copy link

Gui-mp8 commented Dec 2, 2022

Same problem. I managed to fix it by going into safe mode and using:

Press win + r; Write "cmd" Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

Yes man, the problem was Kapersky rs

@MisaelAlves
Copy link

Exatamente aconteceu comigo.

Mesmo problema. Consegui corrigi-lo entrando no modo de segurança e usando:

Pressione win + r; Escreva "cmd" Dê o comando:sc config LxssManager start=auto

Parece que o Kaspersky bloqueou o serviço, então é bom reinstalá-lo se você tiver um, e quando perguntar sobre a execução de comandos do Linux, deixe-o desbloqueado.

Perfect, Done!

@rebroad
Copy link

rebroad commented Feb 6, 2023

I have this error also, but setting LxssManager to run at startup does NOT fix the issue. Can this issue therefore be re-opened given that the solution mentioned doesn't always work?

@DoctorSec22
Copy link

I fixed it without reinstalling Kaspersky.
Go to security -> manage resources -> search for wslhost.exe -> disable control. After that I restarted my PC and it works fine.

@lorenzo-elias
Copy link

This solved my problem:
My pc decided to cancel the WSL Service, after putting it on again and restarting the LxssManager, everything worked.
afbeelding

@tongshu1943
Copy link

This solved my problem: My pc decided to cancel the WSL Service, after putting it on again and restarting the LxssManager, everything worked. afbeelding

This worked! Thank you. Great help.

@xribeiro
Copy link

Same problem. I managed to fix it by going into safe mode and using:

Press win + r; Write "cmd" Give the command: sc config LxssManager start=auto

It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.

It worked for me.
But I had to run CMD with elevated privileges ("Run as Administrator" in the context menu).

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