Share your love
Installing Ubuntu in WSL is Now Much Easier (New Tar-based Format)

Recently, installing Ubuntu in WSL has become very easy. You may also like to install the Linux operating system alongside the Windows operating system. Installing various Linux distributions on Windows used to be difficult. But today, it is easy to install various Linux distributions, including Ubuntu, in a Windows environment. In this article from Orcacore, we will teach you how to install Ubuntu in WSL with a new tar-based format.
Table of Contents
Prerequisites for Enabling WSL on Windows

To install Ubuntu in WSL, you must first meet the WSL activation prerequisites so that you do not encounter problems. Note that WSL is not activated on Windows 10 or lower. Therefore, to run WSL, your operating system must be Windows 10 or Windows 11 and 64-bit architecture.
– In Windows 10, Home and Pro editions must be version 21H1 (build 19043) or higher, also, in Enterprise and Education editions, version 20H2 (build 19042) or higher.
– In Windows 11, all Education, Enterprise, Pro, and Home editions must be Version 21H2 or higher.
– Your system RAM must be at least 4 GB.
– Make sure that your Virtualization (processor virtualizer) is Enabled. To do this, hold down the Ctrl+Shift+Esc keys at the same time. Then enter the Performance tab and look for the phrase Virtualization in the CPU section. If it is Disabled, you must enable it in your system’s BIOS section.
– To enable, restart your system and repeatedly click on F12 (depending on the type of laptop or system you have, it may be a different button) to enter the BIOS. Look for one of the Advanced, Configuration, or Advanced BIOS Features options. Then look for one of the Virtualization Technology, Virtualization, or Intel (R) Virtualization Technology options (depending on the type of your system, this option may be different) and Enable it.
– We recommend that you install the latest version of WSL, WSL 2.4.8 or higher, on your Windows system.
How to Install WSL on Windows?
If WSL is not already installed on your Windows, you can follow the steps below.
-You need to Open PowerShell as Administrator:

– Run the following command to install WSL:
wsl --install
Note that if you are using an older version of Windows, you can run the following command. In the command below, you need to replace XXXX with your Windows drive letter.
dism.exe /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All /LimitAccess /Source:wim:XXXX:\sources\sxs
Now it’s time to restart the computer once.
Tips: You also learn about WSL 2 by visiting this guide on Install WSL2 on Windows 11 and Windows 10.
Installing Ubuntu in WSL with New Tar-based Format
To install Ubuntu in WSL, First, you need to download an Ubuntu tarball from the official Ubuntu website. To do this, select the desired version and architecture (such as amd64 for 64-bit).
Download the tar.gz file, e.g.,
ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img.
If you downloaded the .img file, you will need to convert it to a tarball format at this point. So you can use tools like 7-Zip or tar to do this.
– Open PowerShell again.
– Go to the directory where your tarball is located by running the following command:
tar -xvzf <your-tarball>.tar.gz
Finally, you can use the following command to import the extracted Ubuntu root filesystem into WSL.
It is interesting to note that you can replace <DistroName> with the name you want for your WSL distribution in the following command. This will specify the path to the extracted folder:
wsl --import <DistroName> <InstallLocation> <PathToTarball>
Example:
wsl --import Ubuntu-22.04 C:\WSL\Ubuntu-22.04 C:\path\to\your\extracted\rootfs.tar
Well done! Start the Ubuntu distribution by running the following command:
wsl -d <DistroName>
Conclusion
In this article, you were taught the steps of installing Ubuntu in WSL. By following the steps mentioned in this tutorial carefully, you can easily install your desired distribution on Windows and enjoy using it alongside Windows.
Also, you may like to read the following articles:
Ubuntu 24.04 Run Tesseract OCR
PHP ionCube Loader For Ubuntu 24.04