WSL: WslRegisterDistribution failed with error: 0x80070424
Version
Microsoft Windows [Version 10.0.22621.1]
WSL Version
- WSL 2
- WSL 1
Kernel Version
The specified service does not exist as an installed service.
Distro Version
WslRegisterDistribution failed with error: 0x80070424
Other Software
No response
Repro Steps
Opening a cmd prompt and running wsl results in:
The specified service does not exist as an installed service.
Opening Windows Terminal results in:
The specified service does not exist as an installed service.
[process exited with code 4294967295 (0xffffffff)]
Opening Ubuntu from the Microsoft Store results in:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070424
Error: 0x80070424 The specified service does not exist as an installed service.
Press any key to continue...
Running Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux in a PowerShell with Admin Rights results in:
Path :
Online : True
RestartNeeded : False
More Windows Features has the checkbox CHECKED for:
Hyper-V (and its descendants)
Virtual Machine Platform
Windows Subsystem for Linux
I’ve tried to UNCHECK them, restart the computer, CHECK them again, restart. The problem continues.
Since I saw on other tickets requests to do share logs by performing
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1
I’ve done it, what I attempted to do while collecting logs:
- executing
wslfrom a cmd prompt - Opening Windows Terminal (linked to my Ubuntu)
- Opening Ubuntu as the app
Expected Behavior
I would expect WSL to run, but I would also expect a clearer message on what service is exactly expected to be running.
I would also expect any service linked to WSL to be registered once I try to install WSL, and if there is any failure in the installation of WSL to be notified of such.
Actual Behavior
I am instead presented with error messages like this one when trying to open the Ubuntu APP:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070424
Error: 0x80070424 The specified service does not exist as an installed service.
Press any key to continue...
Diagnostic Logs
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17
As I continued to try to resolve this problem, and I was going through my Apps on my Microsoft Store, I saw I add the app “Windows Subsytem for Linux Preview” installed. Trying to “open” it, would show the same error.
I went to Settings > Installed Apps > Windows Subsytem for Linux Preview here, under “Reset” I clicked “Repair” which, well, seems to have repaired the issue, and now I am able to get into my Ubuntu Distro.
It would seem that if WSL is installed via the Store, then any interaction from the optional features does little to nothing in terms of reinstating the necessary configurations/services.
Just faced this, tried everything here but it didn’t work, until I tried this https://github.com/microsoft/WSL/issues/10623#issuecomment-1765143708 Now I am able to login to Ubuntu
I also encountered the same problem. This is the only one in a large number of search results that solved my problem, thanks a lot!
actually i solved it, it started working properly as soon as I uninstalled WSL from windows settings. It had two WSL installations, one named WSL and other as Updates for WSL
@rohiitgit see above