Installing WSL (Windows Subsystem for Linux) with Ubuntu on Windows 11

  1. Open PowerShell as Administrator:

Install WSL:

  1. In the PowerShell window, type the following command and press Enter:

wsl --install

  1. Restart Your Computer:
  2. Once your computer restarts, open the Ubuntu app from the Start menu.
  3. Follow the on-screen instructions to set your UNIX username and password.
  4. Run the following commands to update your package lists and upgrade installed packages:

sudo apt update sudo apt upgrade