Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » Install Ubuntu 20.04 LTS on Windows via WSL
  • snapshot replication
    How to create Synology Snapshot Replication Backup
  • image 78
    How to enable LDAP over SSL with a third-party Certificate such as DigiCert Windows
  • MBAM
    Fix MBAM Client Deployment is only supported on MBAM 2.5 SP1 Windows
  • Feature image OCS inventory
    Install and use OCS inventory on Windows Windows
  • images 5
    How to Set Up a WatchGuard XTM and Access WSM Network | Monitoring
  • sdf
    Creating an offline local repository in Linux Linux
  • Synology Diskstaion update to latest version 7.3
    Download and update Synology DiskStation NAS to DSM 7.3 Storage
  • hero windowsserver hyperv
    Pass-Through Authentication Authentication and ADFS environment setup on Hyper-V for Hybrid Identity integration Virtualization

Install Ubuntu 20.04 LTS on Windows via WSL

Posted on 18/01/202317/03/2023 Imoh Etuk By Imoh Etuk No Comments on Install Ubuntu 20.04 LTS on Windows via WSL
Ubuntu-on-Windows

Microsoft introduced the Windows Subsystem for Linux to make it easy for users to run Linux OSes such as Ubuntu and issue Bash commands directly from the Windows command prompt interface. Windows Subsystem for Linux (WSL) is a feature of Windows that allows developers to run a Linux environment without the need for a separate virtual machine or dual booting. Both Windows 10 and Ubuntu are operating systems. The software package known as the operating system controls the computer by managing the hardware and software instructions. Windows was first introduced in Windows in 1985. In this guide, you will learn how to install Ubuntu 20.04 LTS on Windows via WSL.

Windows has remained a well-known operating system since its inception. It has undergone a great deal of improvisation, and the fact that it is the operating system of choice for the majority of personal computers indicates how popular it has become. You can read more related guides on Linux by checking out the following posts: How to Switch between Users in Linux ,  How to Add a User to the Sudoers List in Linux, and a brief Introduction to Linux and how to create disk partition in Ubuntu Linux.

Microsoft released the first Windows 11 preview build and SDK to Windows Insiders on June 28, 2021, and later announced that Windows 11 would debut on October 5, 2021, on August 31st, 2021. Following the release, Windows 11 has remained the Operating System of choice for Windows Users.

Installing Ubuntu on Windows 11

To install Ubuntu on Windows 11, follow the below steps: Please refer to these related guides also: How to Create Symbolic Links in Linux and How to Set Special File Permissions in Linux using SUID, GUID, and Sticky Bit

Step 1 – Turn on WSL – Windows Subsystem for Linux

To do this, navigate to the control panel session with the appwiz.cpl command by pressing the Windows Key + R together.

Windows-Run-command

This opens the Control Panel window will open and take you directly to the all programs page. From the left-hand side of the screen, click on "Turn Windows Features on or off"

Turn-on-or-off-windows-features
Turn Windows Feature on or off

The Turn Windows features on or off screen will open up, scroll to where you have Windows Subsystem for Linux and check the dialog box beside it,

Turn-windows-feature-on-or-off1
Enabling WSL

Click on Okay, and then restart your PC for the changes to take effect.

Enabling-WSl-in-progress
Restart-the-computer

Step 2 – Install Ubuntu from Microsoft Store

Search for the Microsoft store using the search bar icon on your Windows taskbar.

Search-for-Microsoft-Store
Searching for Microsoft Store

When you’re on the store page, search for Ubuntu 20.04.5 LTS

Ubuntu-20.04.5LTS-from-Microsoft-Store
Searching for Ubuntu 20.04.5 LTS

Click on get and then open after the downloads.

Click-on-get-Ubuntu-20.04.5-LTS
Click-to-open-the-Ubuntu-after-the-download

On opening it, the application will through an error similar to the one shown below:

First-Error-Update-the-Kernel
Error while Opening Ubuntu for the first time

Step 3 – Update the WSL2 Kernel Components

To resolve the above error, we need to update the WSL 2 Kernel’s component. Click here to download the latest version of the WSL component.

You can check your system type by running the below command to confirm your system type if you’re not sure of it:

systeminfo | find "System Type"
Check-system-type
Checking System type

Check your download folder to locate the WSL 2 download you carried out previously:

Locate-the-WSL-download-file-in-the-download-folder-and-run-the-installtion
WSL Update Downloaded

Double-click on the setup file to install it and click Next

Double-click-on-WSL-to-run-the-installation
Installing WSL2 Updates

When prompted for user access permission, click on Yes to continue and then click on Finish to complete the installation.

Click-on-Yes-when-prompted
Click-on-finish-when-the-installation-is-complete

Step 4 – Launch Ubuntu

To complete the Ubuntu installation, relaunch Ubuntu 20.04.5 LTS application installed previously by searching and clicking on the name and to open it:

Installing-Ubuntu
Installing Ubuntu 20.04.5 LTS

A console window will open the first time you run a newly installed Linux distribution, and you’ll be instructed to wait a few minutes while files decompress and are stored on your computer.

Step 5 – Set the Default Unix User

The next thing to do is to enter the name of the new Unix user to complete the installation

Installation-is-successful
Entering the Username for the Unix User

Step 6 – Update System Packages

Optionally, you can go ahead and run the sudo apt update command to update the system packages to get your Ubuntu 20.04.5 LTS set for use.

Update-system-packages
Updating System Packages

Installing Windows Terminal

Installing a Windows terminal is an optional step but it will help you to launch your Linux Distribution within your Windows Command prompt terminal. With a Windows terminal, you can open numerous tabs or window panes in the Windows Terminal to display and rapidly move between various Linux distributions or other command lines (PowerShell, Command Prompt, Azure CLI, etc). Your terminal can be completely customized with different colour schemes, font styles, sizes, custom keyboard shortcuts, and background images.

To install Windows Terminal, search for it on the Microsoft Store on your PC. Click on get to download it and then click on open to open it after the installation.

Get-the-Windows-Terminal-Preview
Open-Windows-Terminal-Preview

You will be able to switch tabs rapidly and move between various Linux distributions or other command lines (PowerShell, Command Prompt, Azure CLI, etc)

Click-on-the-tab-pointer
Windows Terminal Screen

In this guide, you have learned how to install Ubuntu 20.04 LTS on Windows via WSL.

Summary

Having Ubuntu or any other Linux distribution installed directly on your Windows PC is a great way to switch between Windows and Linux OS easily without having to install a virtualization tool like Oracle Virtualbox or VMWare. It’s also a good way to master your Linux command skills on a daily basis.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux, Windows Tags:Microsoft Windows, Ubunt 20.04 LTS, Ubuntu, Windows 10, Windows 11, Windows Subsystem for Linux

Post navigation

Previous Post: Python Automation in Windows with Visual Studio Code
Next Post: How to delete AWS S3 Bucket and Objects via  AWS CLI from Linux

Related Posts

  • Feautured image DualBoot
    How to create a dual-boot setup on Windows 11 Windows
  • Feature image Install.wim file
    How To Get Install.WIM From Windows 10 Installation File Windows
  • Using the Command Prompt to add and modify the Windows registry
    How to add and modify the Windows Registry from the Command Prompt Windows
  • GoogleTimeError
    Google Chrome reports your clock is behind: How to fix clock synchronization issues in Windows Windows
  • xxxxxx 1
    Have the taskbar appear on one or both displays in Windows Windows
  • FEATUREDC
    How to create Confidential VMs in Azure AWS/Azure/OpenShift

More Related Articles

Feautured image DualBoot How to create a dual-boot setup on Windows 11 Windows
Feature image Install.wim file How To Get Install.WIM From Windows 10 Installation File Windows
Using the Command Prompt to add and modify the Windows registry How to add and modify the Windows Registry from the Command Prompt Windows
GoogleTimeError Google Chrome reports your clock is behind: How to fix clock synchronization issues in Windows Windows
xxxxxx 1 Have the taskbar appear on one or both displays in Windows Windows
FEATUREDC How to create Confidential VMs in Azure AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • snapshot replication
    How to create Synology Snapshot Replication Backup
  • image 78
    How to enable LDAP over SSL with a third-party Certificate such as DigiCert Windows
  • MBAM
    Fix MBAM Client Deployment is only supported on MBAM 2.5 SP1 Windows
  • Feature image OCS inventory
    Install and use OCS inventory on Windows Windows
  • images 5
    How to Set Up a WatchGuard XTM and Access WSM Network | Monitoring
  • sdf
    Creating an offline local repository in Linux Linux
  • Synology Diskstaion update to latest version 7.3
    Download and update Synology DiskStation NAS to DSM 7.3 Storage
  • hero windowsserver hyperv
    Pass-Through Authentication Authentication and ADFS environment setup on Hyper-V for Hybrid Identity integration Virtualization

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.