Updating wsl: update failed: wsl.exe --update n--web-download not supported

hero!! :sob: :sob: :sob: You solved my problem perfectly.

After trying to uninstall and reinstall docker, updating wsl and enabling Microsoft-Windows-Subsystem-Linux and VirtualMachinePlatform features, what i was missing in my case was enabling this feature: Windows Hypervisor Platform.

image

1 Like

I have also faced the same issue…

Anyone know how to prevent Docker Desktop from attempting to wsl --update at startup?

This solved my problem. Because my wsl was the most recent version and a wsl --update returned “that wsl is already up-to-date”.
Thanks radwa17

Well, after a few days and a few reboots the error is back again even though the Hypervisor Platform is still checked. Damn!

What worked for me.

Scenery:

  • Windows 10 Pro 22H2
  • I had docker version 4.22.1 (118664), and I updated it to 4.34.1 (166053). This caused Docker to need to update “wsl”, however this update was attempted with “wsl.exe --update --web-download”, but the “–web-download” was not available.

Solution:
In order for the “–web-download” to work, the update KB5020030 was installed Microsoft Update Catalog
(22H2 and x64 in my case, check for the correct version for your windows/hardware installation).
Then in the console with administrator permissions, I ran “wsl.exe --update --web-download”. It finished without errors.
Finally I started docker (I don’t have it to start at startup) and it worked without problems or losing containers. Changes in icons are seen in the Docker interface and “docker compose watch” started working.

1 Like

You are getting this error because windows subsystem for linux is not installed in your machine.

  1. Open Powershell in administrator
  2. run this command: wsl --install

When these features are missing, then high likely the in-box version of WSL is used. The in-box version is the one being installed when the wsl feature is enabled.

Make sure to install the wsl app as well, which can either be installed from the Microsoft Store, or from the wsl Github releases page: Releases · microsoft/WSL · GitHub. Make sure to download and install the wsl.{version}.x64.msi (replace {version} with the latest, non pre-release version), unless you have an arm based cpu.

worked for me thanks a lot

I have the same issue. And all the existing solutions fail to work in my situation, My windows 10 system and wsl version are already the latest, and I have double checked that I have enabled every features including the Hypervisor Platform. Still, it doesn’t work at all because the latest wsl doesn’t support “–web-download” option in its update