-
Notifications
You must be signed in to change notification settings - Fork 838
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
An error occurred during installation. Error Code: 0x80070422 #8694
Comments
Firstly, there is no such CPU as a Core i8, so I'm assuming you meant i9. The Feature of WSL is not enabled. Please search Features and open Turn Features On or Off. Find WSL, and click enable. Enable the Hyper-V service while your at it. Reboot, then try the installation again, then get back to me once done. |
@NickDeBeenAIE Thank you for helping me. Maybe due to a typo, I mistyped 9 into 8. Sorry for the confusion. Hyper-V enabled, WSL feature enabled, I also tried disabling and enabling them in Windows Features but still no effect What's more, there are some additional details: I manually installed Ubuntu using the Then I opened the Powershell command prompt (run as admin) and typed However, statements where WSL takes arguments won't work, such as There is another version of WSL, the WSL Preview version available on the Microsoft Store. And since I'm in the Windows Insider program, I thought maybe the current WSL is not compatible so I installed the WSL Preview on the Store, but still the same error occurs. And when I remove WSL Preview and go to windows features turn off Hyper-V and WSL and turn it back on, the error persists. But when I manually install the Ubuntu distribution using the Appx installation file, everything is back to normal as if nothing happened. |
This seems to be a very big problem with your operating system.
You'll need to leave the Windows Insider Program as the builds can have a
lot of issues, some of which will corrupt your installation.
It appears such issue has happened, wherein, the registry item to do with
WSL has been screwed with.
This means 2 things:
Leave the Insider Program, and wait fpr your system to return to normal;
Or;
Reinstall your entire Windows installation.
|
I occured similar problem when i I found the reason: AppX Service is After changing the Hope it is helpful. |
Same problem here!I have a Windows Server 2022, I use techcommunity.microsoft and it says to update my Win server, enable Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
wsl --install But after enable WLS and reboot I couldn't install and had these errors: wsl --install -d Ubuntu
Installing: Ubuntu
An error occurred during installation. Distribution Name: 'Ubuntu' Error Code: 0x8000ffff wsl --install -d Ubuntu-20.04
Installing: Ubuntu 20.04 LTS
An error occurred during installation. Distribution Name: 'Ubuntu 20.04 LTS' Error Code: 0x8000ffff I tried your comment |
I had the same problem and running this in an elevated command prompt fixed the issue: sc config wlidsvc start= demand |
for me it worked by downloading it from the Microsoft Store. I think Windows expects that you are logged in even if you run the script from the terminal. |
I seem to be suffering from the same issue. In my case it was triggered by updating WSL after being prompted there was an update available. Running cmd .exe as admin I got LxssManager running again and configured to auto start, but the problems persists. I have also tried disabling the WSL feature restarting and renabling. Please find logs attached as per https://github.com/Microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method WslLogs-2023-03-01_10-26-44.zip EDIT: Updating via the Microsoft Store also fixed this for me. |
I get to put my self on the list. I had a perfectly working installation that was working with separate installs on a couple of different user accounts on Windows 10. I had some configuration annoyances with a domain based user account, so I had been running everything important out of a local account. I prematurely ran a gui app before installing some of the visual libraries on Ubuntu, and ever since I've been getting the |
fix/update via Microsoft Store helps for me |
for me i was disabled all my windows updates when i enabled it again it's works fine |
for me it was the wlidsvc (Microsoft Account Sign-in Assistant). microsoft wants you to have an account so badly |
I'm stuck at:
I tried disabling and re-enabling WSL, but didn't work
And I can't use the store because I ran a debloater script to remove the unnecessary, when I click on the ubuntu product page it crases (thanks microsoft!) |
check these required services running (able to run):
|
you can also install wsl and a distro without wlidsvc service running: https://github.com/microsoft/WSL/releases -> get for eg. Microsoft.WSL_1.2.5.0_x64_ARM64.msixbundle you can also install distros without wlidsvc service using wsl manager https://github.com/bostrot/wsl2-distro-manager |
I tried the solutions provided in issues #3386 and #3815 , but they did not work. In the end, I uninstalled related apps such as
Hope this may help. |
Needing the "Microsoft Account Sign-In Assistant" to be enabled is mind boggling but solved my problem. |
In my case the problem was that I don't have AppX installed. wsl --install -d Ubuntu I get
The workaround that helped: wsl --install -d Ubuntu --web-download Hope this helps someone. |
Potential new fix: |
I ran into the same problem from |
This works for me, I also enabled all Hyper-V services in Services.msc. |
Version Information
Windows version:
Microsoft Windows [Version 10.0.22621.232] (Windows 11 Pro 64-bit)
WSL Version:
2
WSL Kernel Version:
5.10.16
What error did I get:
An error occurred during installation. Error Code: 0x80070422
Distribution I'm trying to install:
Ubuntu
Command line used:
wsl --install -d Ubuntu
Description of this error
I'm trying to install an Ubuntu distro to WSL. My CPU is Core i8, has virtualization support enabled, and followed the manual installation instructions at: https://docs.microsoft.com/en-us/windows/wsl/install-manual
When I run the command
wsl --install -d Ubuntu
, I get the following error:An error occurred during installation. Distribution Name: 'Ubuntu' Error Code: 0x80070422
Soon after, a search took place and I learned that the disabled
LxssManager
service was causing this error (Link to article: #3815)So I ran the following commands in order:
cmd.exe
to enter Command Promptsc start LxssManager
to start theLxssManager
serviceAnd this is what I get:
It says the service is already running. And when I check in
services.msc
, it is indeed running. So I suspect that although the service is running, the WSL on my machine is not able to communicate with the service.So I stopped the service, put it back to the DISABLED state, went into Windows Features to disable WSL, rebooted the machine, and turned WSL back on, then restarted the computer.
At this point, I tried running WSL, and it gave me error 0x80070422. This is understandable, since I'm leaving the LxssManager service in the DISABLED state.
Then I re-enable the service with the command:
sc config LxssManager start=auto
, and this is what I get:(Please note that I have disabled UAC on my computer, and run Windows Terminal as administrator. Windows Defender is also completely disabled using Group Policy and Registry, so there should be no conflict here)
I repeatedly run the following commands:
C:\Users\Duy Thanh>shutdown -r -t 00
And after reboot:
Now it's time for me to install my distro, and I verify the service is running, via the above commands:
Still the error persists, I try again with the command:
Something went wrong, I decided to check the service again:
I tried going back to PowerShell, but nothing worked (Because I was still in the Command Prompt):
So what's going on in the end? I appreciate any help
The text was updated successfully, but these errors were encountered: