This page looks best with JavaScript enabled

Updating WSL2 to Noble

 ·   ·  ☕ 1 min read

Running my WSL2 on Ubuntu 22.04 Jammy Jellyfish, and wanted to update to 24.04 Noble Numbat.

  • Make sure we’re up to date
    sudo apt update && sudo apt full-upgrade
  • Close terminal, quit Docker Desktop
  • In PowerShell:
    wsl -l -v (make sure we know what our Linux is called, probably Ubuntu)
    wsl --terminate Ubuntu (took a few tries / waiting a bit, make sure it says stopped)
  • Open a terminal, which will restart Ubuntu
    sudo vim /etc/update-manager/release-upgrades (make sure it’s set to normal here until Noble LTS is out, in which case it should be lts)
  • sudo do-release-upgrade . This takes a long time.
  • Make sure to “reboot” your Ubuntu after this.
  • Now go into the /etc/apt/sources.list.d directory and update all your sources here. Usually this involves changing the version numbers and release names in various places (e.g. 22.04 to 24.04 and jammy to noble)
  • sudo apt update && sudo apt upgrade to catch your 3rd party repository updates.
Share on
Support the author with

omar saleem
WRITTEN BY
omar saleem
Software/DevOps Engineer