-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
I tried to start Docker Desktop yesterday, and it gave me an error relating to WSL not being started properly. It suggested I run wsl --shutdown (I think that's the command) or restart my computer. It was working fine... maybe 2/3 weeks ago.
At that point, I didn't really understand Docker for Desktop's dependency on WSL. I've learnt a lot since then.
I launched PowerShell and tried to run a variety of different "wsl" commands, but each one of them comes back with "The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
Error code: Wsl/0x80070422"
I've done a lot of Googling, and one of the first things I found was an article (I think it was actually an issue on this Github) talking about how the LxssManager service was stopped and set to Manual. That fit my scenario, so I started my service and set it to Automatic (I had to do this via an administrative command prompt, because the Services app wouldn't let me change the startup type: "Access Denied").
It didn't solve my problem, though.
While i was in Services, I noticed the "Windows Subsystem for Linux" service was stopped. I tried to start it, but it starts and then immediately stops. And I can't find any entries in the Event Log about it.
I found another article online about how to completely remove all Linux distros and all WSL packages from my machine. I did that, restarted, ran wsl --install, and it installed Ubuntu and asked for the reboot. But immediately after the reboot I got a console window saying "WslRegisterDistribution failed with error: 0x80070422" followed by the same error.
Again, this was working fine a couple of weeks ago, and I remember a recent batch of Windows updates, so perhaps that broke it?
(Unfortunately, I no longer have the restore point from before those updates were installed)
I'm running Windows 11 Home.
Can anyone make a suggestion as to what the problem might be?