2. Installation
Which version do you need?
Section titled “Which version do you need?”wslc.exe requires WSL 2.9.3 or later. For now this branch only exists as a pre-release: the stable version (2.7.x in September 2026) does not include wslc.
Check your version:
wsl --versionUpdating
Section titled “Updating”wsl --update --pre-releaseVerifying
Section titled “Verifying”wsl --version # should show 2.9.3 or laterwslc version # confirms the CLI is availablewslc run --rm hello-worldThe last test downloads the hello-world image if needed and prints a welcome message.
Troubleshooting: the installation fails (error 1921 / 1603)
Section titled “Troubleshooting: the installation fails (error 1921 / 1603)”This is what happened to me (see the journal). The command shows the progress bar, then returns — but wsl --version still shows the old version.
Diagnosis — the Windows Application log contains:
Error 1921. Service 'WSL Service' (WSLService) could not be stopped.Installation success or error status: 1603.To find it:
Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='MsiInstaller'; StartTime=(Get-Date).AddHours(-1)} | Select-Object TimeCreated, Id, MessageCause — the MSI installer needs to stop the WSLService service, but processes keep it busy: Docker Desktop, Podman, open WSL terminals…
Fix — in an administrator terminal:
Get-Process "Docker Desktop","com.docker.backend" -ErrorAction SilentlyContinue | Stop-Process -Forcepodman machine stopwsl --shutdownStop-Service WSLService -Forcewsl --update --pre-releasewsl --versionIf the service still refuses to stop: restart Windows and run the update before Docker Desktop restarts automatically.
Rolling back
Section titled “Rolling back”To leave the pre-release, reinstall a stable version: wsl --update (without --pre-release) or the stable MSI package from the WSL GitHub releases. To verify: the exact rollback behavior from 2.9.x.
Exercises
Section titled “Exercises”- How can you tell whether a WSL update really succeeded, even if the command shows no error?
Solution
Run wsl --version again and compare the version. If in doubt, read the MsiInstaller events: event 1033 gives the final status (0 = success, 1603 = failure) and event 11708 reports “Installation failed”.
- Why do you need to stop Docker Desktop before updating WSL?
Solution
Docker Desktop runs its own WSL distro, which keeps the WSLService service active. The installer can’t replace the files of a service it can’t stop.