- Download
ubuntu2004.appxfrom https://aka.ms/wsl-ubuntu-2004 - Open with WinZip or WinRAR and then open
Ubuntu_2004.2021.825.0_x64.appxagain as archive - Extract contents of
Ubuntu_2004.2021.825.0_x64.appxinto a new folder e.g.V:/ubuntu_new - To install, simply run
ubuntu.exe
Skip installing ubuntu.exe and follow the instructions below, the instructions will create a the new wsl instance Ubuntu2
cd V:/ubuntu_new
wsl --import Ubuntu2 . ./install.tar.gz
wsl -d Ubuntu2
NEW_USER=<USERNAME>
useradd -m -G sudo -s /bin/bash "$NEW_USER"
passwd "$NEW_USER"
tee /etc/wsl.conf <<_EOF
[user]
default=${NEW_USER}
_EOF
wsl --shutdown Ubuntu2
wsl -d Ubuntu2