-
Notifications
You must be signed in to change notification settings - Fork 840
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 --update fails with unknown error code (0x80240066) #9039
Comments
Thanks for reporting this @TheFehr. Looking at the logs it looks like an elevation issue. Does your user account have Administrator access ? |
No but I get an authorization request, where I use administrator credentials. |
the same issue here, already running PowerShell as administrator, then failed with this Error: 0x80240066 error. |
If I use a administrator PoweShell I get this: The administrators account language is set to german, that is why the error message shows in german too. |
just update we using "wsl --update --web-download" to update the wsl successfully without any issues.
BR//lo |
I tried that too, but it does not seem to update to the newest version for me. |
Okay I did that from a administrator powershell. As this does not ask for elevated permissions when running in a non administrator shell. And now I get a new error message when trying to run And a new one from normal user shell too: |
I think had the same issue: I tried to upgrade my very old WSL installation (10.0.XX, where winget command: So my next try was to install it manually by downloading a release from the releases github page of WSL (in my case release 0.70.4). At first I tried to install it by double clicking on the .msixbundle file. The App installer opened, but the installation did not work. Even when I called it with administrator rights. After that I disabled the Windows Subsystem for Linux Windows feature. But that did not change anything. So in the next attempt I tried to install the .msixbundle file with the Add-AppPackage powershell command in an elevated prompt:
That command also displayed a error message that said something like "A newer version is already installed". So I checked with the Get_AppxPackage command which version is installed and it outputs a version like 10.0.XX. So yeah, theoretically if you look on the numbers this version is newer as the 0.70.4.0 that we want to install 😆
So i tried to remove the package with
And after that I reinstalled it with the
After a reboot I was finally able to call So in short if someone has the same problem, you can try the following steps: (I created a backup tar of my currently used distro with the
The output of And the output from I hope this helps someone and I did not forget any step, as I cannot reproduce the whole procedure with the new installed version again. |
My current user is not a local administrator:
My 2ct. |
When I use wsl --update to v1.1.6, my docker desktop failed to start with this error code. |
wsl --update --web-download |
commenting to make this issue possibly more visible wsl --update --web-download |
I had the same issue as well... I tried (almost everything). What worked for me was to follow this manual installation guide: And specifically download the .msi package here in this link: After this i still couldn't launch ubuntu, but that was just due to WSL not being enabled. |
I was having Updating wsl: update failed: wsl.exe --update --web-download not supported this issue while installing Docker. Fixed it by running command promt as administrator and then running this command wsl --update. This will download and install the latest version. Just run your docker desktop it will be running fine :). Don't forget to run command promt as administrator other wise it will give this error The requested operation requires elevation. Happy journery :) |
I'm facing the same issue and running as admin in powershell did not fix it.
its interesting that wsl --version is reporting the kernel as 5.15, because the kernel I am running in wsl is 6.1, I've been running this kernel since its release here https://github.com/microsoft/WSL2-Linux-Kernel/releases
|
After looking into the issue, it appears as though this has to do with powershell versions.
works on command prompt and powershell 7.4
|
Does the output change based on the powershell version ? Also, are you using a proxy ? |
yes, it succeeds and says everything is up to date. {code} |
@androniychuk: Most likely you received an update through the store. The previous error your were seeing was probably related to the proxy server blocking WSL's update URL. |
I doubt, the updates were coming in and working before, and proxy is configure same across the whole system |
I can not remember what my final solution was. Running |
This error may (also) occur when trying to update WSL while connected trough a VPN. When running the command: After disconnecting my VPN the update ran without problems. |
I am not on a VPN, but this ⏫ is the error I'm seeing. C:\>wsl --version
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.3930
C:\>wsl --update
Checking for updates.
Forbidden (403).
Error code: Wsl/UpdatePackage/0x80190193 I am in a corporate environment (behind a proxy). |
tanks,bro |
I've had the most frustrating 2 weeks trying to fix this problem (and while travelling OS, too). My laptop has Windows 10 Enterprise, and after installing KB5026037 WSL was slammed back to WSL1, and there were a heap of other problems, chiefly that I could not get the Windows Update application or App Store to recognise that there were any updates available - for any application. The symptom was that both I couldn't installed the WSL 2.1.5 msixbundle, or the wsl update MSI, because the packaging system reported that a newer version of the update was installed. But the linux kernel package was still stuck at 5.10.102.1 - 18 months old! (https://github.com/microsoft/WSL2-Linux-Kernel/releases/tag/linux-msft-wsl-5.10.102.1) What I did to fix this was muck around in the registry. Firstly, I changed
from 1 to 0 Then I removed the entire folder HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU and ran (elevated)
After that I went back to the Windows Update -> Advanced Options and selected "Receive updates for other Microsoft products when you update Windows", went back to the Windows Update panel and boom there were plenty of updates available - including the Feature Update to 10 v22H2 and 2023-10 Update KB2023057. After installing all the updates (I think it was 5 reboots, too), I finally have WSL2 properly updated.
|
I ran the C:\Users\Administrator> wsl --update
Checking for updates.
Forbidden (403).
Error code: Wsl/UpdatePackage/0x80190193
C:\Users\Administrator> wsl --update --web-download
Checking for updates.
Forbidden (403).
Error code: Wsl/UpdatePackage/0x80190193
C:\Users\Administrator> wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.4112 |
I was getting same error with exactly same WSL & Kernel versions. |
I got this same issue with "Error code: Wsl/UpdatePackage/0x80190193"
|
Got the error "Wsl/UpdatePackage/0x801901f8" when trying to do wsl --update, on Powershel with administrator rights. Turns out the antivirus was interfering with the request. Just by temporarily disabling it, it was fixed. Hope it helps someone. |
Version
Microsoft Windows [Version 10.0.22621.674]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
wsl --update
in powershell or opening the store for wsl and press installExpected Behavior
wsl updates / install newest version
Actual Behavior
Installing: Windows Subsystem for Linux Error: 0x80240066==========90.0%===================== ]
same error number reported by windows store
Diagnostic Logs
WslLogs-2022-10-19_13-36-09.zip
The text was updated successfully, but these errors were encountered: