WSL update failed errors on Windows? Here's how to fix it
WSL updates can suddenly fail on Windows, leaving Linux distributions unable to start or preventing users from installing the latest version. The error may appear while running wsl –update, installing a distro, or launching Ubuntu. The cause can range from network problems and outdated Windows components to corrupted WSL installations. Here’s how to troubleshoot the issue without jumping straight into reinstalling Linux.
How to fix WSL update failed errors on Windows
1. Run WSL update with administrator privileges
A failed update can sometimes happen because Windows lacks the permissions needed to update WSL components.
- Open Start and search for Windows Terminal.
- Right-click it and select Run as administrator.
- Select PowerShell or Command Prompt.
- Run the following command:
wsl --update
Microsoft recommends wsl –update to install the latest WSL version.
2. Use the web-download option
If the update fails through Microsoft Store, try downloading the update directly instead. This can help when Store access or its update delivery is causing problems.
- Open Windows Terminal as administrator.
- Enter the command below:
wsl --update --web-download
- Let the download and installation finish.
- Restart your computer and check WSL again.
This option downloads the WSL update directly instead of relying on Microsoft Store delivery.
3. Shut down WSL and retry the update
If WSL is stuck in a previous session, shutting down its virtual machines and background processes may help. This doesn’t remove your Linux distributions or files.
- Open Terminal as administrator.
- Run:
wsl --shutdown
3. Retry the update:
wsl --update
4. Launch your Linux distribution again.
Microsoft also recommends shutting down and restarting WSL when troubleshooting installation or startup problems.
4. Install pending Windows updates
WSL relies on Windows components, virtualization support, and system services. An outdated Windows installation can cause update or installation errors.
- Open Settings.
- Go to Windows Update.
- Select Check for updates.
- Install available updates.
- Restart your PC and retry
wsl --update
If Windows itself is missing required components, updating the operating system may resolve the issue.
5. Enable the required WSL Windows features
WSL 2 requires the Windows Subsystem for Linux feature and Virtual Machine Platform. If either is disabled or damaged, updates and Linux distributions can fail.
- Search Windows for Turn Windows features on or off.
- Open it and enable Windows Subsystem for Linux.
- Enable Virtual Machine Platform.
- Click OK and restart your PC.
Alternatively, run these commands in an elevated Terminal:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart Windows after running both commands, then retry the update.
6. Repair corrupted Windows system files
If WSL update continues failing, corrupted or missing Windows system files could be responsible. Microsoft recommends using SFC and DISM to scan and repair Windows components.
- Open Command Prompt as administrator.
- Run:
DISM /Online /Cleanup-Image /RestoreHealth
3. Wait for the operation to complete.
4. Run:
sfc /scannow
5. Restart your computer and retry the WSL update.
These scans can repair damaged Windows files that affect WSL installation or servicing.
Summing Up
Start with an elevated wsl –update command, then try the web-download option. Shut down WSL, install Windows updates, verify required features, and repair system files if necessary. Avoid unregistering your Linux distribution unless you have backed up its data.
Frequently asked questions
1. Why does wsl –update keep failing?
It could be a Microsoft Store download problem, missing Windows features, an outdated system build, or corrupted Windows components.
2. Does updating WSL delete Ubuntu files?
No. Updating WSL itself normally doesn’t delete your Linux distribution data or files.
3. Can I update WSL without Microsoft Store?
Yes. Run wsl –update –web-download to download the update directly.
4. What should I do if none of these fixes work?
Check your exact error code, WSL version, and Windows build. These details help identify whether the problem is related to Windows, WSL servicing, or virtualization.
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
User forum
0 messages