I will show you how to install WSL2 and then Ubuntu on Windows 11 easily in two steps in this tutorial. Before start, I want to give you brief information about WSL2 and a comparison table of WSL and WSL2.
What are WSL and WSL2?
Windows Subsystem for Linux, also called WSL, is a subsystem allowing Windows 11 and Windows 10 users to run Linux distributions like Ubuntu, Debian, Fedora, Kali, Alpine, or Suse without any effort and no need to change their daily OS.
WSL2 is the latest version of WSL with new features. For more information about WSL and WSL2, you can read this Microsoft Docs articles.
WSL and WSL2 comparison table:
Feature | WSL | WSL2 |
---|---|---|
Integration between Windows and Linux | ✅ | ✅ |
Fast boot times | ✅ | ✅ |
Small resource foot print compared to traditional Virtual Machines | ✅ | ✅ |
Runs with current versions of VMware and VirtualBox | ✅ | ✅ |
Managed VM | ❌ | ✅ |
Full Linux Kernel | ❌ | ✅ |
Full system call compatibility | ❌ | ✅ |
Performance across OS file systems | ✅ | ❌ |
Source: Microsoft Docs
How to Install WSL2?
Open Start Menu and type "Terminal". Right-click the Windows Terminal result, then click
Run as Administrator
.
Windows 11 will ask you for administrator privileges. Click
Yes
.Done! You can now install any Linux distribution available on Microsoft Store.
Linux Distributions on Microsoft Store
These are the store links of all available (installable) Linux distributions on Microsoft Store. Simply click on one of them to get to it.
- Ubuntu 18.04 LTS
- Ubuntu 20.04 LTS
- openSUSE Leap 15.1
- SUSE Linux Enterprise Server 12 SP5
- SUSE Linux Enterprise Server 15 SP1
- Kali Linux
- Debian GNU/Linux
- Fedora Remix for WSL
- Pengwin
- Pengwin Enterprise
- Alpine WSL
How to Install Ubuntu on Windows 11?
I'll show you how to install Ubuntu on Windows 11 via WSL2 as an example. You can install other distributions listed above on your own by following the same steps.
Type "Store" in the Start Menu. Click on the Microsoft Store result.
Choose one of the Ubuntu results that you want to install. Ubuntu refers to Ubuntu's latest stable release. In our case, it means Ubuntu 20.04 LTS. The second result is the same, Ubuntu 20.04 LTS. The third result is Ubuntu 18.04 LTS, the previous stable version. You can choose a specific version if you wish. My choice is Ubuntu, which is the most current stable version. Click on the one you want.
You'll see the details of the distribution. Start the installation by clicking
Get
, thenInstall
. Now, Microsoft Store will download and install it automatically.
You need to restart your computer after it has been installed. Open Start Menu and type "Ubuntu". You'll see your Ubuntu instance on your Windows 11. Start by clicking on it.
You will be prompted to create a sudo user account with a password. While typing the password, you won't be able to see any characters. It's okay! This is Linux-style.
Top comments (0)