Install Ubuntu 22.04 on Win11 (WSL) - Maverick-Shark/retroGuru GitHub Wiki

Install Ubuntu 22.04 on Win11 using WSL

WSL kernel installation

  • Download the latest package (wsl_update_x64-msi file)
        https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

NOTE: To run WSL from the Microsoft Store, with more frequently pushed updates, use wsl.exe --install or wsl.exe --update.

  • Set default version
wsl --set-default-version 2

Steps

Step 1:  wsl.exe --install (or wsl.exe --update)
Step 2:  Run Windows Terminal
Step 3:  wsl --set-default-version 2

Step 4:  wsl --list --online
Step 5:  wsl --install --distribution Ubuntu-22.04
Step 6:  shutdown /r /t 0
Step 7:  wsl --list --verbose
Step 8:  sudo apt update
Step 9:  sudo apt upgrade -y

Step 10: uname -a
Step 11: lsb_release -a
Step 12: cd /mnt/c

Windows folders

        \\wsl.localhost\Ubuntu-22.04\Cores

root access / change root password

  1. Open Windows terminal cmd.exe
  2. Type wsl -u root (optional -d )
  3. Type passwd username and change the password
  4. Type exit
  5. Type wsl (optional -d )
  6. Type sudo echo hi to confirm the new root password works

Links