Install Ubuntu 24.04 on Windows with WSL

  1. Open an elevated PowerShell (i.e. Run as Administrator)
  2. Run wsl --install
  3. Restart your machine
  4. Run wsl --update
  5. Run wsl --install Ubuntu-24.04
  6. Start the now installed Ubuntu where you then enter a username
  7. In a windows terminal run wsl --manage ubuntu-24.04 --set-default-user <your-wsl-username>
  8. To make sure this change is applied run wsl --shutdown