<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Use WSL 2 to install Ubuntu &#8211; Winsides.com</title>
	<atom:link href="https://winsides.com/tag/use-wsl-2-to-install-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://winsides.com</link>
	<description>Windows Insides</description>
	<lastBuildDate>Mon, 16 Dec 2024 17:09:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://winsides.com/wp-content/uploads/2024/05/cropped-android-chrome-512x512-1-150x150.png</url>
	<title>Use WSL 2 to install Ubuntu &#8211; Winsides.com</title>
	<link>https://winsides.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to use WSL 2 to Install Ubuntu on Windows 11?</title>
		<link>https://winsides.com/how-to-use-wsl-2-to-install-ubuntu-on-windows-11/</link>
					<comments>https://winsides.com/how-to-use-wsl-2-to-install-ubuntu-on-windows-11/#respond</comments>
		
		<dc:creator><![CDATA[Vigneshwaran Vijayakumar]]></dc:creator>
		<pubDate>Fri, 13 Dec 2024 01:42:00 +0000</pubDate>
				<category><![CDATA[How To?]]></category>
		<category><![CDATA[Use WSL 2 to install Ubuntu]]></category>
		<category><![CDATA[windows 11]]></category>
		<category><![CDATA[Windows Features]]></category>
		<guid isPermaLink="false">https://winsides.com/?p=3597</guid>

					<description><![CDATA[Use WSL 2 to Install Ubuntu: If you are looking to run Linux Distributions like Ubuntu on Windows 11, then you don&#8217;t necessarily need VirtualBox, VMware, etc. Microsoft offers stable Virtualization environments on their Windows Operating Systems. In Windows 11, you can use Windows Subsystem for Linux 2 and Virtual Machine Platform for a stable, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>Use WSL 2 to Install Ubuntu</strong>: If you are looking to run <strong>Linux Distributions</strong> like Ubuntu on Windows 11, then you don&#8217;t necessarily need <a href="https://www.virtualbox.org/" target="_blank" rel="noopener"><strong>VirtualBox</strong></a>, VMware, etc. Microsoft offers stable <strong>Virtualization environments</strong> on their <strong>Windows Operating Systems</strong>. In Windows 11, you can use <strong>Windows Subsystem for Linux 2 and Virtual Machine Platform</strong> for a <strong>stable</strong>, and more <strong>enhanced virtualization environment</strong> to install and use Linux Distributions on the Windows 11 Environment. In this article, we will check out how to use Windows Subsystem for Linux 2 to install the Latest Ubuntu LTS version on Windows 11. Let&#8217;s get started. <strong>Check out: <a href="https://winsides.com/how-to-install-and-run-x-server-in-windows-11/">Install and Run X Server on Windows 11</a></strong></p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li><a href="#p">Prerequisites:</a><ul><li><a href="#e">Enable WSL 2 and Virtual Machine Platform</a></li><li><a href="#s">Set WSL 2 as the Default Version</a></li></ul></li><li><a href="#i">Use WSL 2 to Install Ubuntu Distribution on Windows 11 using WSL 2 &#8211; Detailed Steps</a><ul><li><a href="#w">When and Why it is essential to set Default Distribution?</a></li></ul></li><li><a href="#h">How to reopen your installed Linux Distro using WSL 2?</a></li><li><a href="#g">Getting Started with Ubuntu 20.04 LTS on Windows 11 using WSL 2</a></li><li><a href="#v">Video Walkthrough to Install Latest Ubuntu using WSL 2</a></li><li><a href="#t">Take away</a></li><li><a href="#l">Have Queries?</a></li></ul></nav></div>



<h2 class="wp-block-heading" id="p">Prerequisites:</h2>



<h3 class="wp-block-heading" id="e">Enable WSL 2 and Virtual Machine Platform</h3>



<p>Before using Linux Distributions on Windows 11, we will have to enable a couple of things on our Windows 11 System. </p>



<ol class="wp-block-list">
<li><strong>Enable Windows Subsystem for Linux.</strong></li>



<li><strong><a href="https://winsides.com/how-to-enable-virtual-machine-platform-in-windows-11/" data-type="post" data-id="193">Enable Virtual Machine Platform</a>.</strong></li>



<li><strong>Set Default Version to WSL 2.</strong></li>
</ol>



<p>You can either use <a href="https://winsides.com/how-to-enable-windows-subsystem-for-linux-in-windows/" data-type="post" data-id="167"><strong>GUI Method</strong></a> or <a href="https://winsides.com/how-to-enable-wsl-2-windows-11-cmd-windows-powershell/" data-type="post" data-id="3531"><strong>CLI Method</strong></a> to enable the above Windows Features on your Windows 11. </p>



<p>Let&#8217;s assume you have enabled Windows Subsystem for Linux and Virtual Machine Platform using any of the preferred methods mentioned above, let us set the <strong>default version to WSL 2</strong>. </p>



<h3 class="wp-block-heading" id="s">Set WSL 2 as the Default Version</h3>



<p>To set WSL 2 as the default version, kindly follow the below steps. </p>



<ul class="wp-block-list">
<li>Open <strong>PowerShell and run it as Administrator</strong>.</li>



<li>In the PowerShell, execute the following command. <code><strong>wsl --set-default-version 2</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" width="1481" height="760" src="https://winsides.com/wp-content/uploads/2024/12/Set-WSL-2-as-default-Version.webp" alt="Set WSL 2 as default Version" class="wp-image-3602" style="width:768px" title="Set WSL 2 as default Version" srcset="https://winsides.com/wp-content/uploads/2024/12/Set-WSL-2-as-default-Version.webp 1481w, https://winsides.com/wp-content/uploads/2024/12/Set-WSL-2-as-default-Version-300x154.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Set-WSL-2-as-default-Version-1024x525.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Set-WSL-2-as-default-Version-768x394.webp 768w" sizes="(max-width: 1481px) 100vw, 1481px" /><figcaption class="wp-element-caption">Set WSL 2 as default Version</figcaption></figure>



<ul class="wp-block-list">
<li>This command will set WSL 2 as the default Version. </li>
</ul>



<p>That is it, we have completed all the prerequisites. Let&#8217;s move to the main steps. </p>



<h2 class="wp-block-heading" id="i">Use WSL 2 to Install Ubuntu Distribution on Windows 11 using WSL 2 &#8211; Detailed Steps</h2>



<p>We have set the default version in the earlier section. Let us continue from there. </p>



<ul class="wp-block-list">
<li>Let&#8217;s us check out what are the Linux Distributions available. Execute the following command. <code><strong>wsl --list --online</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img decoding="async" width="1340" height="700" src="https://winsides.com/wp-content/uploads/2024/12/WSL-listing-all-available-Linux-Distros.webp" alt="WSL listing all available Linux Distros" class="wp-image-3603" style="width:768px" title="WSL listing all available Linux Distros" srcset="https://winsides.com/wp-content/uploads/2024/12/WSL-listing-all-available-Linux-Distros.webp 1340w, https://winsides.com/wp-content/uploads/2024/12/WSL-listing-all-available-Linux-Distros-300x157.webp 300w, https://winsides.com/wp-content/uploads/2024/12/WSL-listing-all-available-Linux-Distros-1024x535.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/WSL-listing-all-available-Linux-Distros-768x401.webp 768w" sizes="(max-width: 1340px) 100vw, 1340px" /><figcaption class="wp-element-caption">WSL listing all available Linux Distros</figcaption></figure>



<ul class="wp-block-list">
<li>The system will list all the available Linux Distros. Popular Distros including but not limited to <a href="https://ubuntu.com/" target="_blank" rel="noreferrer noopener">Ubuntu</a>, <a href="https://www.debian.org/" target="_blank" rel="noreferrer noopener">Debian</a>, <a href="https://www.opensuse.org/" target="_blank" rel="noreferrer noopener">openSUSE</a>, <a href="https://www.suse.com/" target="_blank" rel="noreferrer noopener">SUSE Linux Enterprise</a> and more will be displayed. Choose your distro accordingly. In this article, I am going to <strong>Install Ubuntu 20.04 LTS</strong> (Long Term Support).</li>



<li>To <strong>Install Ubuntu on Windows 11 using WSL 2</strong>, kindly enter the following command in the terminal. <code><strong>wsl --install -d Ubuntu-20.04</strong></code> </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img decoding="async" width="1340" height="700" src="https://winsides.com/wp-content/uploads/2024/12/Ubuntu-WSL-2-Installation-Command.webp" alt="Ubuntu WSL 2 Installation Command" class="wp-image-3605" style="width:768px" title="Ubuntu WSL 2 Installation Command" srcset="https://winsides.com/wp-content/uploads/2024/12/Ubuntu-WSL-2-Installation-Command.webp 1340w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-WSL-2-Installation-Command-300x157.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-WSL-2-Installation-Command-1024x535.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-WSL-2-Installation-Command-768x401.webp 768w" sizes="(max-width: 1340px) 100vw, 1340px" /><figcaption class="wp-element-caption">Ubuntu WSL 2 Installation Command</figcaption></figure>



<ul class="wp-block-list">
<li>The above command will install Ubuntu 20.04 LTS on your Windows 11. Always, make sure to enter the Distro Name in the Installation Command. The Friendly Name is just for easy understanding.</li>



<li>The process will take some time to complete. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1340" height="700" src="https://winsides.com/wp-content/uploads/2024/12/Installing-Ubuntu-on-Windows-11.webp" alt="Installing Ubuntu on Windows 11" class="wp-image-3606" style="width:768px" title="Installing Ubuntu on Windows 11" srcset="https://winsides.com/wp-content/uploads/2024/12/Installing-Ubuntu-on-Windows-11.webp 1340w, https://winsides.com/wp-content/uploads/2024/12/Installing-Ubuntu-on-Windows-11-300x157.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Installing-Ubuntu-on-Windows-11-1024x535.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Installing-Ubuntu-on-Windows-11-768x401.webp 768w" sizes="auto, (max-width: 1340px) 100vw, 1340px" /><figcaption class="wp-element-caption">Installing Ubuntu on Windows 11</figcaption></figure>



<ul class="wp-block-list">
<li>Once the installation is complete, you will be prompted to create your <strong>Unix Username and Password</strong> and <strong>retype the password</strong>. You will be the <strong>Sudo User</strong>. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1340" height="700" src="https://winsides.com/wp-content/uploads/2024/12/Enter-Unix-Username-and-Password.webp" alt="Enter Unix Username and Password" class="wp-image-3609" style="width:768px" title="Enter Unix Username and Password" srcset="https://winsides.com/wp-content/uploads/2024/12/Enter-Unix-Username-and-Password.webp 1340w, https://winsides.com/wp-content/uploads/2024/12/Enter-Unix-Username-and-Password-300x157.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Enter-Unix-Username-and-Password-1024x535.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Enter-Unix-Username-and-Password-768x401.webp 768w" sizes="auto, (max-width: 1340px) 100vw, 1340px" /><figcaption class="wp-element-caption">Enter Unix Username and Password</figcaption></figure>



<ul class="wp-block-list">
<li>Once you complete that process, your Ubuntu 20.04 LTS is good to go on your Windows 11 via WSL 2. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1340" height="700" src="https://winsides.com/wp-content/uploads/2024/12/Ubuntu-24.04-LTS-successfully-installed-on-Windows-11.webp" alt="Ubuntu 20.04 LTS successfully installed on Windows 11" class="wp-image-3610" style="width:768px" title="Ubuntu 20.04 LTS successfully installed on Windows 11" srcset="https://winsides.com/wp-content/uploads/2024/12/Ubuntu-24.04-LTS-successfully-installed-on-Windows-11.webp 1340w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-24.04-LTS-successfully-installed-on-Windows-11-300x157.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-24.04-LTS-successfully-installed-on-Windows-11-1024x535.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-24.04-LTS-successfully-installed-on-Windows-11-768x401.webp 768w" sizes="auto, (max-width: 1340px) 100vw, 1340px" /><figcaption class="wp-element-caption">Ubuntu 20.04 LTS successfully installed on Windows 11</figcaption></figure>



<ul class="wp-block-list">
<li>You can also install other Linux Distributions simultaneously using the above installation command. Just make sure you are replacing the distro name.</li>
</ul>



<h3 class="wp-block-heading" id="w">When and Why it is essential to set Default Distribution?</h3>



<ul class="wp-block-list">
<li>To answer the first question, when we have multiple Linux Distributions installed in the WSL 2, we can define a particular distro which we will be working primarily on as the default distribution. </li>



<li>By doing so, you don&#8217;t have to mention the Distro name each and every time you open your WSL, rather you can just use the command <strong>wsl</strong> to open your default Linux Distribution. </li>



<li>To set a particular Distro as your default distribution, you can define it using the following command. I am going to set Ubuntu 20.04 LTS as my default distribution. <code><strong>wsl --set-default Ubuntu-20.04</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="535" src="https://winsides.com/wp-content/uploads/2024/12/Set-Default-Linux-Distribution-1024x535.webp" alt="Set Default Linux Distribution" class="wp-image-3611" style="width:768px" title="Set Default Linux Distribution" srcset="https://winsides.com/wp-content/uploads/2024/12/Set-Default-Linux-Distribution-1024x535.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Set-Default-Linux-Distribution-300x157.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Set-Default-Linux-Distribution-768x401.webp 768w, https://winsides.com/wp-content/uploads/2024/12/Set-Default-Linux-Distribution.webp 1340w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Set Default Linux Distribution</figcaption></figure>



<h2 class="wp-block-heading" id="h">How to reopen your installed Linux Distro using WSL 2?</h2>



<p>Let us talk about the scenario, where you have installed the Linux Distro successfully, and you have used it for some time, and then you have shutdown your system. Next time, when you choose to use your Linux Distribution via WSL 2, you can follow the below steps to access it on your Windows 11. </p>



<ul class="wp-block-list">
<li>Open <strong>PowerShell</strong>, make sure to <strong>Run it as Administrator</strong>.</li>



<li>Assuming we have only one distro installed (in our case as per this article, it is Ubntu-20.04), just execute the following command. <code><strong>wsl</strong></code></li>



<li>Suppose, we have multiple Distributions installed on our WSL 2 and we want to open particular distribution. For example, let us assume, we have Debian, Ubuntu-20.04, and openSUSE-Leap-15.6 Installed in our WSL 2, we will have to open openSUSE-Leap-15.6. To do so, you will have to follow the following syntax. <code><strong>wsl -d openSUSE-Leap-15.6</strong></code></li>



<li>This command will open openSUSE-Leap-15.6. Here the flag <strong>-d</strong> represents Distribution.</li>
</ul>



<h2 class="wp-block-heading" id="g">Getting Started with Ubuntu 20.04 LTS on Windows 11 using WSL 2</h2>



<ul class="wp-block-list">
<li>Everything is set for Ubuntu now, we can start using it via the Command Line Interface. You can either use the Command Prompt or PowerShell to access Ubuntu on Windows 11. </li>



<li>It will provide the complete <strong>CLI experience</strong> and allows users to install and applications via Apt and Snap Store. These apps can run both <strong>GUI and CLI</strong>. </li>



<li>Let us install an application to demonstrate the process. We will install <strong><a href="https://extensions.gnome.org/extension/120/system-monitor/" target="_blank" rel="noopener">Gnome System Monitor</a></strong> using the apt package manager. The following is the command to install it. <ccode><strong>sudo apt install gnome-system-monitor</strong></ccode></li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1340" height="700" src="https://winsides.com/wp-content/uploads/2024/12/Installing-Gnome-System-Monitor.webp" alt="Installing Gnome System Monitor" class="wp-image-3613" style="width:768px" title="Installing Gnome System Monitor" srcset="https://winsides.com/wp-content/uploads/2024/12/Installing-Gnome-System-Monitor.webp 1340w, https://winsides.com/wp-content/uploads/2024/12/Installing-Gnome-System-Monitor-300x157.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Installing-Gnome-System-Monitor-1024x535.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Installing-Gnome-System-Monitor-768x401.webp 768w" sizes="auto, (max-width: 1340px) 100vw, 1340px" /><figcaption class="wp-element-caption">Installing Gnome System Monitor</figcaption></figure>



<ul class="wp-block-list">
<li>Once the installation is complete, you can start using this app in the GUI Mode. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1403" height="999" src="https://winsides.com/wp-content/uploads/2024/12/Ubuntu-App-running-on-Windows-11-using-WSL-2.webp" alt="Ubuntu App running on Windows 11 using WSL 2" class="wp-image-3614" style="width:768px" title="Ubuntu App running on Windows 11 using WSL 2" srcset="https://winsides.com/wp-content/uploads/2024/12/Ubuntu-App-running-on-Windows-11-using-WSL-2.webp 1403w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-App-running-on-Windows-11-using-WSL-2-300x214.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-App-running-on-Windows-11-using-WSL-2-1024x729.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Ubuntu-App-running-on-Windows-11-using-WSL-2-768x547.webp 768w" sizes="auto, (max-width: 1403px) 100vw, 1403px" /><figcaption class="wp-element-caption">Ubuntu App running on Windows 11 using WSL 2</figcaption></figure>



<h2 class="wp-block-heading" id="v">Video Walkthrough to Install Latest Ubuntu using WSL 2</h2>



<figure class="wp-block-embed aligncenter is-type-wp-embed is-provider-winsides-com wp-block-embed-winsides-com"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="RldYj78dzt"><a href="https://winsides.com/video-tutorial-how-to-install-ubuntu-using-wsl-2/">Video Tutor: Install Latest Ubuntu using WSL 2 on Windows 11</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Video Tutor: Install Latest Ubuntu using WSL 2 on Windows 11&#8221; &#8212; Winsides.com" src="https://winsides.com/video-tutorial-how-to-install-ubuntu-using-wsl-2/embed/#?secret=YIjYUj9TtN#?secret=RldYj78dzt" data-secret="RldYj78dzt" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<h2 class="wp-block-heading" id="t">Take away</h2>



<p><strong>WSL 2</strong> brings the best of both worlds combining <strong>Window&#8217;s user-friendliness with the power of Linux development tools</strong>. If you&#8217;re a developer, a <strong>Linux enthusiast</strong>, or just exploring, setting up WSL 2 on Windows 11 offers a flexible and efficient way to integrate Linux into your workflow. For more interesting articles, stay tuned to <strong><a href="https://winsides.com">Winsides.com</a></strong>. Happy Computing! Peace out!</p>



<h2 class="wp-block-heading" id="l">Have Queries?</h2>



<p>If you have any <strong>queries</strong>, kindly let us know in the <strong>comment</strong> section. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://winsides.com/how-to-use-wsl-2-to-install-ubuntu-on-windows-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
