WSL: Update to WSL2 2.0.1 failed - requires admin, still doesn't update

Windows Version

Microsoft Windows [Version 10.0.22621.2283]

WSL Version

2.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.123.1-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

wsl --update --pre-release

Expected Behavior

It should update. (And has typically done so without admin privs)

Actual Behavior

PS C:\Users\testbot> wsl --version
WSL version: 2.0.0.0
Kernel version: 5.15.123.1-1
WSLg version: 1.0.57
MSRDC version: 1.2.4485
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.22621.2283
PS C:\Users\testbot> wsl --shutdown
PS C:\Users\testbot> wsl --update --pre-release
Checking for updates.
Updating Windows Subsystem for Linux to version: 2.0.1.
Update failed (exit code: 1603).
Log file: C:\Users\testbot\AppData\Local\Temp\wsl-install-logs.txt
Error code: Wsl/UpdatePackage/E_ABORT

Diagnostic Logs

I studied the logs at C:\Users\testbot\AppData\Local\Temp\wsl-install-logs.txt and saw that it was insufficient permissions.

So I did it again with admin privs and it ran to completion without an error.

I don’t believe wsl --update has required admin before?

However, wsl.exe --version still shows 2.0.0.0 after a reboot.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 19

Most upvoted comments

I have had exactly the same results as @rfay.

This issue has been fixed in 2.0.2

The title should read wsl --update --pre-release silently fails. It stays on 2.0.0 albeit prints upgrade successful.

Also, starting with wsl 2.0.0, admin privilege is required to perform wsl upgrades – a separate disappointing new development.

This update also broke me. It looked like it was working, but then after the upgrade to 2.0.2, wsl --version was no longer a valid flag, and systemd didn’t work any more.

I seem to have recovered (thanks @dciarniello ) with:

  • Remove all WSL-related things from “Apps and features”
  • As admin: wsl --update
  • As admin: wsl --update --pre-release

I did not lose my distro.

BTW one suggestion I have is to automatically ask to elevate privileges when upgrading, instead of requiring the user to reopen the session as admin.