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 unknown error code (0x80240066) #9385

Open
1 of 2 tasks
omri-ratson opened this issue Dec 21, 2022 · 8 comments
Open
1 of 2 tasks

WSL --install fails with unknown error code (0x80240066) #9385

omri-ratson opened this issue Dec 21, 2022 · 8 comments

Comments

@omri-ratson
Copy link

Version

Microsoft Windows [Version 10.0.22000.1335]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

wsl --install

Expected Behavior

wsl --install should install newest version of wsl (new machine with windows 11 version 21H2)

Actual Behavior

Installing: Windows Subsystem for Linux Error: 0x80240066==========90.0%===================== ]

The same error number is reported by The windows store or winget.

Diagnostic Logs

I've tried to look at the issue #9039
I'm not sure it's a duplicate since he is running wsl --update while I'm not even able to install wsl.
I can imaging the root cause is the same but I don't know how to verify this.
I've installed wsl for 5 times in the last year and a half (testing different machines) and haven't had an issue like this before.

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 27, 2022

/logs

@ghost
Copy link

ghost commented Dec 27, 2022

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

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

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@omri-ratson
Copy link
Author

Thanks for your reply, attached are the log files.
WslLogs-2022-12-28_08-05-53.zip

@ghost ghost removed the needs-author-feedback label Dec 28, 2022
@OneBlue
Copy link
Collaborator

OneBlue commented Dec 28, 2022

Thanks @omri-ratson.

Based on the logs it looks like your account doesn't have sufficient permissions to install WSL. Is it an administrator account ?

@omri-ratson
Copy link
Author

This is my employer's workplace machine.
The way Windows is configured for us is that every time you open software that requires an administrator level of permissions we are prompted with a popup window to allow it as a non-administrator user and you do get administrator permissions for running it.
I've run the wsl --install command with the Windows Terminal as Powershell in "Run as administrator" mode.
It always worked for me before.
I also tried to run this command with the IT department with their user which is an Administrator on the same machine but got the same error.

@ghost ghost removed the needs-author-feedback label Dec 29, 2022
@galegleasonJHA
Copy link

I was able to get it to install with wsl --install --web-download (I was also getting this access denied error running from Windows 11 when I checked the windows store logs in event viewer)

@Runner73
Copy link

Runner73 commented Mar 7, 2023

Hi,
--web-download parameter worked for me
Seems something wrong in the packet present locally

@felipementel
Copy link

try to run

wsl --update --web-download

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

5 participants