Saturday, January 22, 2022

WSL 2.0: Uninstalling a Linux Distribution from Windows Subsystem for Linux (WSL 2.0)

Consider the scenario where Ubuntu version 18.04 was installed on WSL 2.0 and an upgrade is needed to Ubuntu 20.04. This post demonstrates how to unregister (uninstall) a Linux distribution from WSL 2.-0.

1. Open a PowerShell console with administrative access.
2. Invoke using the PowerShell console wsl --list --verbose to list the currently installed Linux distributions.


3. Unregister Ubuntu 18.04 by invoking the following command from the PowerShell console,  wsl --unregister Ubuntu-18.04:




No comments :

Post a Comment