{"id":953,"date":"2022-01-08T09:54:42","date_gmt":"2022-01-08T14:54:42","guid":{"rendered":"http:\/\/www.dandc.com\/?p=953"},"modified":"2022-01-08T09:54:42","modified_gmt":"2022-01-08T14:54:42","slug":"how-to-install-ubuntu-21-10-on-wsl-for-windows-10-and-11","status":"publish","type":"post","link":"http:\/\/www.dandc.com\/?p=953","title":{"rendered":"How to install Ubuntu 21.10 on WSL for Windows 10 and 11"},"content":{"rendered":"<p>via <a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\">WMExperts<\/a> January 7, 2022 at 08:06AM<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignright size-medium\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/ubuntu-impish-2110-wsl-1.jpg?w=250&#038;ssl=1\" ><\/p>\n<div>\n<div>\n<div>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/ubuntu-impish-2110-wsl-1.jpg?w=1180&#038;ssl=1\"><\/a><\/p>\n<p>The Microsoft Store doesn&#8217;t have the latest version of Ubuntu for WSL, but that doesn&#8217;t mean you can&#8217;t install it yourself.<\/p>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-wsl2-windows-10\">Installing WSL 2 on Windows 10 and 11<\/a> is easier than ever, and adding a distro to it requires little more than downloading an app from the Microsoft Store. But it doesn&#8217;t have to end there. The Microsoft Store has a good, but limited selection of Linux distros, and in the case of Ubuntu, you&#8217;re basically looking at the LTS versions and not the latest rolling releases.<\/p>\n<p>For many, this is absolutely fine, but there will always be good reasons to want access to the latest version, particularly in development. If you need Ubuntu 21.10, there&#8217;s no need to go off and fire up a virtual machine; you can quite easily install it on Windows 10 or 11.<\/p>\n<p>You just have to know where to look.<\/p>\n<h2>How to download Ubuntu 21.10 for WSL<\/h2>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/ubuntu-cloud-images-website.png?w=1180&#038;ssl=1\"><\/a><\/p>\n<p>Downloading Ubuntu 21.10 for WSL isn&#8217;t difficult, but it&#8217;s also not particularly obvious where you even get it. It is possible to upgrade inside WSL to the latest release, but in the case of 21.10, you&#8217;d need to already be on 21.04.<\/p>\n<p>But here we&#8217;re going to download an image file and install a completely fresh build of Ubuntu 21.10.<\/p>\n<p>To get the files you need, head over to the <a href=\"https:\/\/cloud-images.ubuntu.com\/\">Ubuntu website<\/a> and follow these steps.<\/p>\n<ol>\n<li>Click on the option labeled <strong>impish<\/strong>.<\/li>\n<li>\n<p>Next, click on <strong>current<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/ubuntu-cloud-images-1.png?w=1180&#038;ssl=1\"><\/a><\/p>\n<\/li>\n<li>\n<p>Locate the files labeled <strong>wsl.rootfs.tar.gz<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/ubuntu-cloud-images-2.png?w=1180&#038;ssl=1\"><\/a><\/p>\n<\/li>\n<\/ol>\n<p>There will be multiple files, but the ones labeled with <strong>manifest<\/strong> you can ignore. You also need to choose the right version for your PC. If you&#8217;re using an Intel- or AMD-powered machine, choose the <strong>amd64<\/strong> version. If you&#8217;re using an ARM-based machine, choose the <strong>arm64<\/strong> version.<\/p>\n<p>Download the relevant file, then it&#8217;s onto the installation process.<\/p>\n<h2>How to install Ubuntu 21.10 on WSL for Windows 10 and 11<\/h2>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/ubuntu-impish-2110-wsl-2.jpg?w=1180&#038;ssl=1\"><\/a><\/p>\n<p>From here on out you&#8217;re going to be in your PowerShell terminal. Take a note of where you&#8217;ve downloaded the tar file from the steps above to as you&#8217;ll need the file location as part of the install process.<\/p>\n<p>The process of installation begins with importing the downloaded image from Ubuntu into your WSL setup. We have a <a href=\"https:\/\/www.windowscentral.com\/how-import-windows-subsystem-linux-wsl-distribution-tar-file\">full guide<\/a> on exporting and importing Linux distros in WSL that can help, but we&#8217;ll still cover everything you need here.<\/p>\n<p>Inside PowerShell, you will need to enter the following command to import and install Ubuntu 21.10:<\/p>\n<pre><code>wsl --import &lt;name> &lt;location to unpack> &lt;location of download>\n<\/code><\/pre>\n<p>So, on my system, it looks like this:<\/p>\n<pre><code>wsl --import Ubuntu-2110 c:\/WSL\/Ubuntu-2110 c:\/Downloads\/impish-server-cloudimg-amd64-wsl.rootfs.tar.gz\n<\/code><\/pre>\n<p>It doesn&#8217;t really matter where you unpack and install the image, but it doesn&#8217;t hurt to create a dedicated directory, especially if you plan on installing multiple distros in this fashion.<\/p>\n<p>Additionally, you can specify a version of WSL at the end with the <code>--version<\/code> flag. It will install to whichever version of WSL your system recognizes as default, but you can alter that at installation to save the need to convert it later on. Simply add a <strong>1<\/strong> or a <strong>2<\/strong> after the flag to specify which version you require.<\/p>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/wsl-ubuntu-21-10-import-dropdown.jpg?w=1180&#038;ssl=1\"><\/a><\/p>\n<p>It&#8217;ll take a minute, but once it&#8217;s finished you can move on to setting up. As this hasn&#8217;t been installed from the Microsoft Store, there is no app shortcut created in the Start Menu. You&#8217;ll need to launch it manually with:<\/p>\n<pre><code>wsl -d &lt;distroname>\n<\/code><\/pre>\n<p>If you use Windows Terminal, however, and you really should, WSL will automatically add it to the dropdown menu with all the other shells you can open.<\/p>\n<h2>Basic setup of Ubuntu 21.10<\/h2>\n<p>As you&#8217;ve basically sideloaded Ubuntu 21.10, it doesn&#8217;t run through the initial setup process you get when you install Ubuntu from the Microsoft Store. As such you won&#8217;t have a user set up, there will only be root. So you&#8217;ll want to create one and add it to the sudo group:<\/p>\n<pre><code>adduser &lt;yourusername>\nusermod -aG sudo &lt;yourusername>\n<\/code><\/pre>\n<p>And switch to that user with:<\/p>\n<pre><code>su &lt;yourusername>\n<\/code><\/pre>\n<p>To launch into Ubuntu 21.10 as your new user, from PowerShell enter:<\/p>\n<pre><code>wsl -d &lt;distroname> -u &lt;yourusername>\n<\/code><\/pre>\n<p>While not a long process to switch to or enter your new installation as your user instead of root, automating the process is always better. Configuring the default user for a distro installed in this way is a little different to those that have an executable downloaded from the Store.<\/p>\n<p>There are a few different ways you can handle this, but the easiest, and largely safest, is to edit the <strong>wsl.conf<\/strong> file on the distro to tell WSL to log you in as your user account instead of root. Open up Ubuntu 21.10 and navigate to the file as below. The file likely doesn&#8217;t exist at first installation, so let&#8217;s get it set up, and for this you&#8217;ll want to stay logged in as root and not your user account.<\/p>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/wslconf-nano.jpg?w=1180&#038;ssl=1\"><\/a><\/p>\n<ol>\n<li>In the terminal enter <code>cd \/etc\/<\/code><\/li>\n<li>Enter <code>ls<\/code> to list the contents. If you don&#8217;t have <strong>wsl.conf<\/strong> we can create one.<\/li>\n<li>Enter <code>touch wsl.conf<\/code>.<\/li>\n<li>Open the wsl.conf file with nano by entering <code>nano wsl.conf<\/code>.<\/li>\n<\/ol>\n<p>Now you&#8217;ll need to enter the information needed to tell Ubuntu 21.10 to launch as user and not root. Enter the following block into the document.<\/p>\n<pre><code># Set the user when launching a distribution with WSL.\n[user]\ndefault=YourUserName\n<\/code><\/pre>\n<p>The first line isn&#8217;t required, but it&#8217;s a good idea to keep comments throughout your wsl.conf file to remind you in plain English what each part does.<\/p>\n<p>Exit nano by pressing <strong>Ctrl + X<\/strong> followed by <strong>Y<\/strong> and <strong>Enter<\/strong> to save the file. Close down WSL entirely, leave it a few seconds, and then when you next boot back into Ubuntu 21.10, you should be user and not root.<\/p>\n<p><a href=\"https:\/\/www.windowscentral.com\/how-install-ubuntu-2110-wsl-windows-10-and-11\" title=\"How to install Ubuntu 21.10 on WSL for Windows 10 and 11\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.windowscentral.com\/sites\/wpcentral.com\/files\/styles\/large\/public\/field\/image\/2022\/01\/wsl-settings-1.jpg?w=1180&#038;ssl=1\"><\/a><\/p>\n<p>Alternatively, if you&#8217;re using Windows Terminal, open the <strong>Settings<\/strong>, find your Ubuntu 21.10 install in the sidebar, and in the <strong>command line<\/strong> box ensure this command is stored:<\/p>\n<pre><code>wsl.exe -d &lt;distroname> -u &lt;yourusername>\n<\/code><\/pre>\n<p>This will have the same effect once closed down and restarted.<\/p>\n<hr>\n<p>That&#8217;s all there is to it. It&#8217;s a little more of a process than installing from the Microsoft Store, but it&#8217;s not too difficult, and it&#8217;s a process you can repeat for future rolling releases or just to have multiple versions of the same distro installed for different purposes.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>via WMExperts January 7, 2022 at 08:06AM The Microsoft Store doesn&#8217;t have the latest version of Ubuntu for WSL, but that doesn&#8217;t mean you can&#8217;t install it yourself. Installing WSL 2 on Windows 10 and 11 is easier than ever, and adding a distro to it requires little more than downloading an app from the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11],"tags":[46,45],"class_list":["post-953","post","type-post","status-publish","format-standard","hentry","category-news","tag-feedly","tag-ifttt"],"jetpack_publicize_connections":[],"taxonomy_info":{"category":[{"value":11,"label":"News"}],"post_tag":[{"value":46,"label":"Feedly"},{"value":45,"label":"IFTTT"}]},"featured_image_src_large":false,"author_info":{"display_name":"Darren","author_link":"http:\/\/www.dandc.com\/?author=1"},"comment_info":0,"category_info":[{"term_id":11,"name":"News","slug":"news","term_group":0,"term_taxonomy_id":11,"taxonomy":"category","description":"","parent":0,"count":88,"filter":"raw","cat_ID":11,"category_count":88,"category_description":"","cat_name":"News","category_nicename":"news","category_parent":0}],"tag_info":[{"term_id":46,"name":"Feedly","slug":"feedly","term_group":0,"term_taxonomy_id":46,"taxonomy":"post_tag","description":"","parent":0,"count":68,"filter":"raw"},{"term_id":45,"name":"IFTTT","slug":"ifttt","term_group":0,"term_taxonomy_id":45,"taxonomy":"post_tag","description":"","parent":0,"count":68,"filter":"raw"}],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7GQ5E-fn","jetpack-related-posts":[{"id":704,"url":"http:\/\/www.dandc.com\/?p=704","url_meta":{"origin":953,"position":0},"title":"Microsoft Office 2019 kills off OneNote desktop app in favor of Windows 10 version","author":"Darren","date":"April 18, 2018","format":false,"excerpt":"via The Verge - All Posts April 18, 2018 at 12:12PM Microsoft is planning to launch Office 2019 later this year, and the company is changing the way OneNote is bundled. The note taking app currently has a desktop version included in Office 2016, and a separate Universal Windows App\u2026","rel":"","context":"In &quot;News&quot;","block_context":{"text":"News","link":"http:\/\/www.dandc.com\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":643,"url":"http:\/\/www.dandc.com\/?p=643","url_meta":{"origin":953,"position":1},"title":"Microsoft&#8217;s first consumer Surface was released five years ago today on Oct. 26, 2012","author":"Darren","date":"October 26, 2017","format":false,"excerpt":"via WMExperts October 26, 2017 at 07:22AM Exactly five years ago to the day, Microsoft released it first Surface device aimed at consumers, then known only as \"Microsoft Surface,\" but it eventually became known as the \"Surface RT.\" It started a Windows revolution. Microsoft first announced this exciting new device\u2026","rel":"","context":"In &quot;News&quot;","block_context":{"text":"News","link":"http:\/\/www.dandc.com\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":742,"url":"http:\/\/www.dandc.com\/?p=742","url_meta":{"origin":953,"position":2},"title":"Windows 10\u2019s next major update arrives in October","author":"Darren","date":"September 2, 2018","format":false,"excerpt":"via The Verge - All Posts August 31, 2018 at 11:18AM Microsoft is officially unveiling the name for its next major Windows 10 update today. Previously codenamed Redstone 5, the \u201cWindows 10 October 2018 Update\u201d will arrive at some point in October. It will include a number of new features\u2026","rel":"","context":"In &quot;News&quot;","block_context":{"text":"News","link":"http:\/\/www.dandc.com\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":734,"url":"http:\/\/www.dandc.com\/?p=734","url_meta":{"origin":953,"position":3},"title":"3 good reasons why Surface Go is great for businesses","author":"Darren","date":"September 2, 2018","format":false,"excerpt":"via WMExperts August 31, 2018 at 11:11AM Surface Go is making headlines for what seems to be Microsoft's first real consumer-focused Surface push. Web-surfing, watching videos and listening to music lead the marketing of this affordable premium 2-in-1. Microsoft complements these promoted scenarios with images of children using Surface Go,\u2026","rel":"","context":"In &quot;News&quot;","block_context":{"text":"News","link":"http:\/\/www.dandc.com\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":905,"url":"http:\/\/www.dandc.com\/?p=905","url_meta":{"origin":953,"position":4},"title":"Surface Duo\u2019s leaked multitasking feature is something more devices should adopt","author":"Darren","date":"June 29, 2020","format":false,"excerpt":"via Android Phone Fans June 29, 2020 at 08:06AMMicrosoft is working on an upcoming Android smartphone in the form of the Surface Duo. In case you haven\u2019t heard of it, basically it is an Android device with a secondary display that can fold shut. This is not a foldable phone\u2026","rel":"","context":"In &quot;News&quot;","block_context":{"text":"News","link":"http:\/\/www.dandc.com\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":652,"url":"http:\/\/www.dandc.com\/?p=652","url_meta":{"origin":953,"position":5},"title":"Introducing Smart Buttons, our new Windows app for IFTTT","author":"Darren","date":"November 21, 2017","format":false,"excerpt":"via The Digital Lifestyle.com November 20, 2017 at 09:33AM For automating the smart home I use IFTTT a lot. IFTTT stands for \u201cIf This then that \u201cand is web site where you can create applets that link triggers to actions. For example you could have your Philips Hue turn on\u2026","rel":"","context":"In &quot;News&quot;","block_context":{"text":"News","link":"http:\/\/www.dandc.com\/?cat=11"},"img":{"alt_text":"","src":"http:\/\/ift.tt\/2zYn7ow","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"http:\/\/www.dandc.com\/index.php?rest_route=\/wp\/v2\/posts\/953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dandc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dandc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dandc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dandc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=953"}],"version-history":[{"count":1,"href":"http:\/\/www.dandc.com\/index.php?rest_route=\/wp\/v2\/posts\/953\/revisions"}],"predecessor-version":[{"id":954,"href":"http:\/\/www.dandc.com\/index.php?rest_route=\/wp\/v2\/posts\/953\/revisions\/954"}],"wp:attachment":[{"href":"http:\/\/www.dandc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dandc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=953"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dandc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}