Open main menu

2024-01-02 Update WSL

Whenever I tried to start my default Ubuntu Linux distro in WSL (by pressing the Windows key, then typing 'Ubuntu' and pressing enter), the terminal window would appear briefly and then disappear (failing) without any error message or log (that is obvious).

So, checking the wsl version, I noticed that I could update WSL with wsl --update in the PowerShell console - and so I did that.

PS C:\Users\greg> wsl --version
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.22621.2861

Updating Windows Subsystem for Linux to version: 2.0.14.

PS C:\Users\greg> wsl --update
Checking for updates.
Updating Windows Subsystem for Linux to version: 2.0.14.
The requested operation requires elevation.
Checking for updates.
Updating Windows Subsystem for Linux to version: 2.0.14.

During the upgrade (Docker Desktop was running), Docker Desktop complained with an error dialog whose contents responded to a Ctrl+A, Ctrl+C then Ctrl+V here.

[Window Title]
Docker Desktop

[Main Instruction]
Docker Desktop - Unexpected WSL error

[Content]
An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.

Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop. If the issue persists please collect diagnostics and submit an issue (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal).

[Quit] [Diagnose & Feedback] [Reset Docker to factory defaults]

Diagnose links to https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal

However, it appears to be a 'non-issue' because by the time WSL finished it's update, and Docker Desktop restarted, DD was happy.

Return to "Windows Subsystem for Linux" page.