November 24, 2024

Windows Subsystem for Linux (WSL) enables Windows users to run native Linux command-line tools directly in Windows.

First introduced in Windows 10 Fall Creators Update, it allows users to install various Linux distributions from Microsoft Store, such as Ubuntu, Debian GNU/Linux, Kali Linux, and more.

WSL does not provide a Linux graphical user interface (GUI). Rather, it provides an environment for running Linux applications in Windows. It is not a virtual machine or an emulator.

When installing Ubuntu 22.04 from the Microsoft Store via WSL, you may see an error message like this:

WSL2 error when installing Ubuntu 22.04

Fortunately, the fix is pretty simple and requires updating WSL2. Go to the mentioned URL here. This has the latest WSL2 Linux kernel update available to download and install.

WSL 2 Linux Kernel Update page

Download and install the .MSI package that is available.

Running the WSL2 setup wizard

Follow the instructions on-screen to complete the setup.

WSL 2 updated

Once done, re-run Ubuntu 22.04.

Ubuntu 22.04 LTS added in Windows

This time, the WSL2 kernel error won’t be there. Instead, the installation will complete and prompt you to create a Linux user account to start using Ubuntu 22.04.

create a user account for Ubuntu 22.04 through WSL

You can then use the power of the awesome Linux shell right from within Windows. 🙂

Awesome Bash shell in Windows

Happy patching.

By admin

Related Post