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

wsl --install fails with Wsl/InstallDistro/0x80072f8f #11181

Closed
1 of 2 tasks
canon-cmi-jesper-dam opened this issue Feb 20, 2024 · 3 comments
Closed
1 of 2 tasks

wsl --install fails with Wsl/InstallDistro/0x80072f8f #11181

canon-cmi-jesper-dam opened this issue Feb 20, 2024 · 3 comments

Comments

@canon-cmi-jesper-dam
Copy link

Windows Version

Microsoft Windows [Version 10.0.22621.3155]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

wsl --install

Expected Behavior

The command succeeds

Actual Behavior

Installing: Ubuntu
Content decoding has failed 0.0%'
Error code: Wsl/InstallDistro/0x80072f8f

Diagnostic Logs

WslLogs-2024-02-20_11-32-27.zip

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@nickyg666
Copy link

Hi, I also had this error code/problem and resolved by running wsl --install Ubuntu --web-download in admin powershell prompt. without admin, I received error you mention. with admin but no web-download flag, installation hangs at 0.0%.
this issue helped me solve: #9390
as well as this learn article: https://learn.microsoft.com/en-us/windows/wsl/install#install-wsl-command
my ps log:
PS C:\Users\user> wsl --install Ubuntu-22.04 --web-download
Downloading: Ubuntu 22.04 LTS
The operation timed out
Error code: Wsl/InstallDistro/0x80072ee2
PS C:\Users\User> wsl --install Ubuntu --web-download
Downloading: Ubuntu
Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...
Installing, this may take a few minutes...
(window title changes to 'Ubuntu' waiting for some minutes, 30-60)
WslRegisterDistribution failed with error: 0x80370114
Error: 0x80370114 The operation could not be started because a required feature is not installed.

Press any key to continue...
The installation process for distribution 'Ubuntu' failed with exit code: 1.
Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED
(I think 114 error is caused by hypervisor optional component enabled, so disable and retry without restart)
PS C:\Users\user> wsl --install --web-download
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
(wait some time again, fails so restart)
open ubuntu profile in powershell:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8000000d
Error: 0x8000000d An illegal state change was requested.

Press any key to continue...

disable all optional features: hyper-v, windows hypervisor, wsl, virtual machine, restart.
attempt wsl -d Ubuntu-22.04 --web-download
wsl --install -d Ubuntu-22.04 --web-download
The requested operation requires elevation.
Installing: VirtualMachinePlatform

Deployment Image Servicing and Management tool
Version: 10.0.22621.2792

Image Version: 10.0.22631.3155

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
The requested operation is successful. Changes will not be effective until the system is rebooted.
Failed to fetch the list distribution from 'https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json'. The server name or address could not be resolved
Error code: Wsl/InstallDistro/WININET_E_NAME_NOT_RESOLVED
(actually lost wifi, retry)
wsl --install -d Ubuntu-22.04 --web-download
Downloading: Ubuntu 22.04 LTS
Installing: Ubuntu 22.04 LTS
Ubuntu 22.04 LTS has been installed.
The requested operation is successful. Changes will not be effective until the system is rebooted.
(okay, Reboot. Ubuntu 22.04 powershell profile appears, launching without admin)

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370114
Error: 0x80370114 The operation could not be started because a required feature is not installed.

Press any key to continue...

[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.
(press enter, read https://superuser.com/questions/1736443/wsl-2-installing-linux-failed-error-code-0x80370114 and enable code flow for both programs, without reboot)
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: rogally
New password:
Retype new password:
passwd: password updated successfully
Installation successful!

windows 11 home does not allow hyper-v feature, but you should not need for wsl2. of course read here if you want it: https://www.makeuseof.com/install-hyper-v-windows-11-home/
i read a few places that content decoding issues are related to administrative rights. ensure you are not using the built-in Administrator account.
Hope I helped you solve it!

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants