WSL2 hangs on update (no output)
Version
Microsoft Windows [Version 10.0.19045.2486]
WSL Version
- [X] WSL 2
- [ ] WSL 1
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
- Open Powershell as an admin.
- run
wsl.exe --update
Expected Behavior
I expect the program to terminate at some point and give me a message that tells me if the update was successful.
Actual Behavior
All I see is this output:
PS C:\WINDOWS\system32> wsl.exe --update
Installation: Windows-Subsystem für Linux
Diagnostic Logs
I created an issue with the Feedback Hub, but I am not sure it worked correctly.
/dumps
Hello! Could you please provide logs and process dumps to help us better diagnose your issue?
To collect WSL logs and dumps, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1 -Dump
The scipt will output the path of the log file once done.
Once completed please upload the output files to this Github issue.
Click here for more info on logging
Thank you!
Hi, sorry, should have done that in the first place. WslLogs-2023-01-25_08-06-20.zip
Thank you @myz-dev. Unfortunately I don't see any dumps on that zip file. Was wsl.exe running when you captured the dumps ?
Can you try capturing a dump of the hung process via task manager instead ?
Hi,
with the last dumps, I had open one shell and performed the task the bot had provided. In another shell I ran wsl.exe --update.
Now I have again started one Powershell shell with admin rights and have run wsl.exe --update. I let it run for a few minutes, then, before killing the process, I have created the dumps of the Powershell process, the wsl process and the console host process.
Because the zipped files were too big to attach to GitHub, I have for now only attached the wsl.DMP file.
I hope this helps.
wsl.zip
I am having a similar issue, occurring when closing code taht was started in a WSL terminal. I get a small window saying updatinf Code, I kill the terminal process ctrl Z. But "Updating window" remains. vscode-inno-updater-1678354414.log
A restart will solve this.
I have similar issue. Restart didn't help. Just infinite Installing: Windows Subsystem for Linux...
Hi, after a few weeks it worked for me again. Maybe a Windows update fixed it? The latest patch I have installed seems to be July 11, 2023—KB5028166.
I'm having the same problem, on Window 10.0.19044 in Administrator Command Prompt.
wsl --update => hangs indefinitely at 0%
wsl --update --web-download downloaded fine, but then it hangs indefinitely on "Installing: Windows Subsystem for Linux".
Hi, I'm having the same problem.
Edition Windows 10 Pro
Version 22H2
Installed on 29.11.2023
OS build 19045.3803
Experience Windows Feature Experience Pack 1000.19053.1000.0
WSL:
WSL version: 2.0.9.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.3803
Command invocation:
wsl --update
Effect (polish translation):
Sprawdzanie dostępności aktualizacji.
Aktualizowanie Podsystem Windows dla systemu Linux do wersji: 2.0.14.
The requested operation requires elevation.
The elevation window is shown to accept administrator rights and I granted it. New console windows with title containing wsl.exe path appears and then the process hangs endlessly.
Mentioned flag --web-download does not change anything.
I also had this issue. When trying to update from 2.0.9 to 2.0.14, it would download the update and say it is installing, but there is no progress and no output. Tried multiple times. The result was always the same, no matter whether I ran the command in an elevated or non-elevated cmd or whether I shutdown WLS first or not.
I then set my Window Region and Regional Format from German to English. Windows Display Language is always set to English. The WSL update then completed.
The reason I tried this is that it seemed to me that the WSL display language changed from the Windows Display Language to the Windows Region setting (i.e. from English to German in my case) with one of the recent WSL updates.
Of course, it might as well be normal that you need to try the update five times and that it is completely unrelated to the Windows Region settings.
What may have helped in my case, but may also have been a placebo for impatience, was to wsl.exe --shutdown in a separate Administrator shell.
Also from 2.0.9 to 2.0.14, and the first time I've used the --update argument.
I tried this because during the update an already open WSL terminal stayed available and functional, which seemed odd.
If you use Alt+Tab to move through the open "apps", you will see there is a prompt box asking to make changes to the system. This was causing the "hang" for me when updating WSL.
I have Win Update prompt to change system, but choosing Ok gives no effect, process starts but hangs at 0% level.
If you use Alt+Tab to move through the open "apps", you will see there is a prompt box asking to make changes to the system. This was causing the "hang" for me when updating WSL.
Thanks! It was the Windows UAC which silently appeared on the task bar, hard to notice. When it got stuck on something like "Updating Windows Subsystem for Linux to version 2.3.26", I waited like 10 mins before looking up and eventually this one helped lol.
Similar thing happened to me, but after approx. 5 minutes i just used ctrl+c to stop the process and it finished installing almost instantly.
I have also had issues with wsl --update hanging because it was restarting the Docker Desktop engine in an infinite loop. The fix was to shut down Docker Desktop entirely.
It hangs not output, but occationally it give this info:
PS C:\Users\mortenbj> wsl --update --web-download
Ser etter oppdateringer.
Oppdaterer Windows-undersystem for Linux til versjon: 2.7.8.
Oppdateringen mislyktes (feilkode: 1618).
Loggfil: C:\Users\mortenbj\AppData\Local\Temp\wsl-install-logs.txt
Feilkode: Wsl/UpdatePackage/0x80070652
PS C:\Users\mortenbj> cat C:\Users\mortenbj\AppData\Local\Temp\wsl-install-logs.txt
=== Verbose logging started: 10.06.2026 11:55:49 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\Program Files\WSL\wsl.exe ===
MSI (c) (94:50) [11:55:49:619]: Resetting cached policy values
MSI (c) (94:50) [11:55:49:619]: Machine policy value 'Debug' is 0
MSI (c) (94:50) [11:55:49:619]: ******* RunEngine:
******* Product: C:\Users\mortenbj\AppData\Local\Temp\wsl.2.7.8.0.x64 (4).msi
******* Action:
******* CommandLine: **********
MSI (c) (94:50) [11:55:49:620]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (94:50) [11:55:49:620]: Grabbed execution mutex.
MSI (c) (94:50) [11:55:49:623]: Cloaking enabled.
MSI (c) (94:50) [11:55:49:623]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (94:50) [11:55:49:628]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (c) (94:50) [11:55:49:631]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (94:50) [11:55:49:631]: MainEngineThread is returning 1618
=== Verbose logging stopped: 10.06.2026 11:55:49 ===