Monday, April 29, 2024
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 8950  / 2 Years ago, mon, november 22, 2021, 7:37:58

I do not see the option to install Ubuntu 21.10 in the Windows Store.


I would like to install Ubuntu 21.10 in WSL on Windows 11 with the graphical support (WSLg). I have searched for "Ubuntu" in the Windows Store and only found older releases.


More From » system-installation

 Answers
2

Please note that this answer is valid and tested on the released version of Ubuntu 20.04 only. As @GavinRay has reported in a separate answer, there are issues with this process on the Ubuntu Community Preview for WSL (currently using 21.04). Please see Gavin's answer for a solution there.


Ubuntu only provides (and tests) LTS releases for direct download and installation on WSL.


You can install the base "Ubuntu" distribution (which is currently 20.04) and then upgrade it to 21.10 with a slight variation on the normal mechanism:



  • sudo apt update && sudo apt upgrade to make sure the existing release is up-to-date.



  • sudo apt remove snapd -- Needed because WSL doesn't support Systemd directly



  • Sudo edit /etc/update-manager/release-upgrades and change the last line to:


    prompt=normal


  • sudo do-release-upgrade to upgrade to Hirsute/21.04



  • Recommended: Exit WSL, execute wsl --terminate Ubuntu from PowerShell or CMD, and restart WSL/Ubuntu.



  • Repeat sudo do-release-upgrade to upgrade to Impish/21.10



  • Recommended: sudo apt purge needrestart to get rid of unnecessary checks after installing any package.




Again, this is not a scenario that Canonical seems to necessarily test, but people have been doing it for a while (as well as installing many other different distributions).


After upgrading, I do recommend creating a backup image. This can be used to create new, clean 21.10 installations in the future if you need to try something out without impacting your normal one.


wsl --export Ubuntu Ubuntu2110_fresh_install.tar

Create new installations from it by creating a directory, and:


wsl --import Ubuntu2110Test <directory> Ubuntu2210_fresh_install.tar

I personally just go ahead and create a new installation automatically. It has the advantage of:



  • Letting me name the installation what I want (e.g. 'Ubuntu-21.10`)

  • Placing it somewhere other than under %userprofile%AppDataLocalPackages


[#1101] Wednesday, November 24, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
repend

Total Points: 195
Total Questions: 113
Total Answers: 107

Location: Nicaragua
Member since Tue, Dec 8, 2020
3 Years ago
repend questions
Thu, May 11, 23, 09:38, 1 Year ago
Thu, Jan 5, 23, 21:41, 1 Year ago
Mon, Jan 24, 22, 11:26, 2 Years ago
Mon, Jun 20, 22, 16:31, 2 Years ago
;