{"id":22862,"date":"2023-10-28T08:51:15","date_gmt":"2023-10-28T08:51:15","guid":{"rendered":"https:\/\/linuxways.net\/?p=22862"},"modified":"2023-10-28T08:51:51","modified_gmt":"2023-10-28T08:51:51","slug":"install-ubuntu-wsl2-windows-10-11","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/install-ubuntu-wsl2-windows-10-11\/","title":{"rendered":"Install Ubuntu on WSL2 on Windows 10\/11"},"content":{"rendered":"<p>The <strong>WSL<\/strong> or <strong>Windows Subsystem for Linux<\/strong> is an application offered by Microsoft that allows you to Run your Windows Operating System alongside your Ubuntu Operating System. Unlike Dual Boot and Virtual Machines, the WSL requires fewer resources than a Virtual Machine and saves you frustration and anger when switching between Operating Systems as you do not have to reboot your system again and again. With WSL, you can easily run Ubuntu Commands and Applications directly through your Windows Operating System.<\/p>\n<p>This article discusses the Installation method of Ubuntu on WSL on Windows.<\/p>\n<h2><strong>Install Ubuntu on WSL2 on Windows 10\/11<\/strong><\/h2>\n<p>Ubuntu can be installed alongside Windows using WSL. To install Ubuntu on WSL, you need to have WSL Installed and then an Ubuntu Application that will be installed through WSL. The steps below guide you about the Installation of Ubuntu on WSL on Windows.<\/p>\n<h3><strong>Step 1: Install WSL<\/strong><\/h3>\n<p>Install WSL through the Store. To open the Microsoft Store on your Windows 11 Operating System, click on the Search Box in your Taskbar:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" class=\"wp-image-22864\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-1.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-1-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-1-1024x576.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-1-768x432.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-1-1536x864.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>In the Search Option, write Microsoft Store and the Microsoft Store Application will appear. Click on the Microsoft Store App to open it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1159\" height=\"1009\" class=\"wp-image-22865\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-2.png 1159w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-2-300x261.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-2-1024x891.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-2-768x669.png 768w\" sizes=\"auto, (max-width: 1159px) 100vw, 1159px\" \/><\/p>\n<p>In the Microsoft Store, you will see the Search Bar on the top. Click on it to search for Applications in the Store:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" class=\"wp-image-22876\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-3.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-3-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-3-1024x576.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-3-768x432.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-3-1536x864.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>In the Search Box, search for \u201cWindows Subsystem for Linux\u201d. The Windows Subsystem for Linux Applications will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"913\" height=\"794\" class=\"wp-image-22878\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-4.png 913w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-4-300x261.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-4-768x668.png 768w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/p>\n<p>Once you open the WSL App, you will see the \u201cInstall\u201d or \u201cGet\u201d Button. Click on the \u201cinstall\u201d button to start Downloading WSL:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" class=\"wp-image-22881\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-5.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-5-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-5-1024x576.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-5-768x432.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-5-1536x864.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>Wait for the Application to Complete Downloading. Once the Application Downloads, it will be installed on your Windows System automatically:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"607\" height=\"601\" class=\"wp-image-22883\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-6.png 607w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-6-300x297.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-6-150x150.png 150w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/p>\n<p>Once the WSL application downloads and installs, Open it. A Command line interface will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1610\" height=\"924\" class=\"wp-image-22885\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-7.png 1610w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-7-300x172.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-7-1024x588.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-7-768x441.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-7-1536x882.png 1536w\" sizes=\"auto, (max-width: 1610px) 100vw, 1610px\" \/><\/p>\n<p>Currently, in our case, no Linux Distribution is installed. The WSL Command line cannot be used unless a Linux Distribution is installed on your Windows System.<\/p>\n<h3><strong>Step 2: Enable the Windows Subsystem for Linux Feature<\/strong><\/h3>\n<p>Before Installing a Linux Distribution, ensure that the Windows Subsystem for Linux Feature is Enabled on your Windows Operating System. Windows 11 requires the feature to be enabled. To enable the feature, search for the \u201cWindows Features\u201d Application. Click on the Search Icon from the Task Bar and then Search for the Windows Features Application. The \u201cTurn Windows On and Off\u201d Application will appear, click on it to Open it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1161\" height=\"1005\" class=\"wp-image-22886\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-8.png 1161w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-8-300x260.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-8-1024x886.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-8-768x665.png 768w\" sizes=\"auto, (max-width: 1161px) 100vw, 1161px\" \/><\/p>\n<p>The Windows Features Application Window will appear where a bunch of Windows Features will be listed along with the Checkboxes for Enabling or Disabling the Feature. In the List, scroll down and look for the \u201cWindows Subsystem for Linux\u201d Feature:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"616\" class=\"wp-image-22892\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-9.png 696w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-9-300x266.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>If the \u201cWindows Subsystem for Linux\u201d feature is already Enabled, leave it as it is. If the Feature is Disabled, similar to our case, Click on the Checkbox to Enable the WSL Feature on your Windows 11 Operating System:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"616\" class=\"wp-image-22893\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-10.png 696w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-10-300x266.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>Once you Enable the Windows Subsystem for Linux Feature, click on the \u201cOK\u201d Button in the Windows Features to save your changes:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"616\" class=\"wp-image-22894\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-11.png 696w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-11-300x266.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>After you click on the \u201cOK\u201d Button, a Pop-up will appear asking for a System Restart to finish installing the changes. Click on the \u201cRestart Now\u201d button if you wish to Reboot your Windows System now:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"775\" class=\"wp-image-22895\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-12.png 945w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-12-300x246.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-12-768x630.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/p>\n<h3><strong>Step 3: Download Ubuntu<\/strong><\/h3>\n<p>Once the System Reboots, you can now Download Ubuntu. You can either install Ubuntu from the Microsoft Store or from the Windows Powershell. Both the Downloading Methods are discussed below.<\/p>\n<h2><strong>Method 1: Download Ubuntu Through the Microsoft Store<\/strong><\/h2>\n<p>To download Ubuntu through the Microsoft Store, click on the Search Box on top of the Microsoft Store Homepage and search for Ubuntu. A list of Ubuntu Versions will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"812\" class=\"wp-image-22897\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-13.png 1005w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-13-300x242.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-13-768x621.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-13-150x120.png 150w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/p>\n<p>Click on the Version you wish to install. The Application details will open. Click on the \u201cInstall\u201d or \u201cGet\u201d Button to start downloading the Ubuntu Application:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1486\" height=\"731\" class=\"wp-image-22902\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-14.png 1486w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-14-300x148.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-14-1024x504.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-14-768x378.png 768w\" sizes=\"auto, (max-width: 1486px) 100vw, 1486px\" \/><\/p>\n<p>Wait for the Ubuntu Application to Download:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"506\" height=\"729\" class=\"wp-image-22908\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-15.png 506w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-15-208x300.png 208w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/p>\n<p>Once downloaded, it can now be used in the Windows Subsystem for Linux.<\/p>\n<h2><strong>Method 2: Download Ubuntu Through the Windows Powershell<\/strong><\/h2>\n<p>Ubuntu can be downloaded through the Windows Powershell. In the Windows Search, type \u201cWindows PowerShell\u201d. Once the PowerShell Application appears, click on the \u201cRun as Administrator\u201d option which will allow you to download packages:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1167\" height=\"1007\" class=\"wp-image-22910\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-16.png 1167w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-16-300x259.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-16-1024x884.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-16-768x663.png 768w\" sizes=\"auto, (max-width: 1167px) 100vw, 1167px\" \/><\/p>\n<p>The Windows PowerShell will open:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22912\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-17.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-17-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-17-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-17-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p>In the PowerShell, to list the currently installed Linux Distributions on your Windows OS, run the \u201cwsl &#8211;list\u201d command:<\/p>\n<table>\n<thead>\n<tr>\n<th>wsl &#8211;list &#8211;online<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>This will list the currently installed Linux distributions. In our case, no Distribution is installed yet:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22913\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-18.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-18-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-18-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-18-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p>Now, to download the Ubuntu Distribution, run the \u201cwsl &#8211;install\u201d command in the Windows PowerShell along with the Ubuntu Version.<\/p>\n<table>\n<thead>\n<tr>\n<th>wsl &#8211;install -d &lt;LinuxDistroName&gt;<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>In our case, we will install the Ubuntu 20.04 LTS Version with the \u201cwsl &#8211;install\u201d Command:<\/p>\n<table>\n<thead>\n<tr>\n<th>wsl &#8211;install -d Ubuntu-20.04<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>The PowerShell will start downloading the Ubuntu 20.04 Version and the Bar shows the Download progress:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22914\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-19.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-19-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-19-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-19-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p>Wait for the Ubuntu to Install:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22915\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-20.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-20-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-20-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-20-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<h3><strong>Step 4: Configure Ubuntu<\/strong><\/h3>\n<p>Once the Installation of Ubuntu is complete, you will have to configure your Ubuntu Operating System. The PowerShell will ask for the Ubuntu OS username:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22916\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-21.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-21-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-21-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-21-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p>Enter the username. In our case, we entered \u201csudouser\u201d. Once you add the Username and press Enter, it will now ask for the Ubuntu User Password. Enter the Password. After the password is confirmed, Ubuntu Will be successfully installed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22917\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-22.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-22-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-22-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-22-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p>After the Installation Completes, the Windows Command Line changes to the Ubuntu Command Line:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22918\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-23.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-23-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-23-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-23-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p>You can now use Ubuntu through the Command Line.<\/p>\n<h3><strong>Step 5: Enjoy Using Ubuntu Along with Windows<\/strong><\/h3>\n<p>You can run any Ubuntu command now as you are using Ubuntu. To update the existing packages repository in Ubuntu, run the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>sudo apt install &amp;&amp; sudo apt upgrade<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>The Command executes ensuring that Ubuntu Terminal is currently being used:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22919\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-24.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-24.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-24-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-24-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-24-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<h2><strong>Logout from Ubuntu WSL<\/strong><\/h2>\n<p>After you are done with using Ubuntu, you can simply return to the Windows PowerShell with the \u201cexit\u201d command:<\/p>\n<table>\n<thead>\n<tr>\n<th>exit<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>The Command Line Interface changes ensuring that you are now using the Windows PowerShell:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"767\" class=\"wp-image-22920\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-25.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-25.png 1350w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-25-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-25-1024x582.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-25-768x436.png 768w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<h2><strong>Checking the Linux Distributions Installed<\/strong><\/h2>\n<p>The Linux Distributions on your Windows System can also be listed in the Windows PowerShell with the \u201cwsl\u201d Command. To list the status of installed Distributions on your Windows System, the command used is:<\/p>\n<table>\n<thead>\n<tr>\n<th>wsl -l -v<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p>In our case, only Ubuntu 20.04 is installed and the status shows that Ubuntu is currently Stopped:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1325\" height=\"98\" class=\"wp-image-22921\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-26.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-26.png 1325w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-26-300x22.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-26-1024x76.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22862-26-768x57.png 768w\" sizes=\"auto, (max-width: 1325px) 100vw, 1325px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>To install Ubuntu on WSL2 on Windows, you have to install Windows Subsystem for Linux from the Microsoft Store. Once WSL installs, you have to enable the WSL Feature and then either use the PowerShell or the Microsoft Store to Download Ubuntu. This article explained every step leading to the installation of Ubuntu on WSL on Windows.<\/p>","protected":false},"excerpt":{"rendered":"<p>Install Ubuntu on WSL by enabling the WSL Feature and then downloading it through PowerShell or Microsoft Store. Install Ubuntu finally using the \u201cwsl\u201d command. <\/p>","protected":false},"author":110,"featured_media":22882,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-22862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/22862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=22862"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/22862\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/22882"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=22862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=22862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=22862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}