Can’t update to Ubuntu 24.04 LTS on WSL2

24.04updates

I'm using WSL2 on Windows 11, store already has latest 24.04 version but I can't upgrade mine from 22:04. I've tried rebooting WSL, nothing worked. Has anyone went through this already?

Attaching snippet of my attempt bellow:

sudo apt update && sudo apt full-upgrade && sudo do-release-upgrade

Hit:1 https://apt.releases.hashicorp.com jammy InRelease
Hit:2 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:6 https://ppa.launchpadcontent.net/fish-shell/release-3/ubuntu jammy InRelease
Hit:3 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.30/deb  InRelease
Hit:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.

Best Answer

I'm using WSL2 on Windows 11 (23h2, home), and upgraded my Ubuntu from 22.04 to 24.04 through 23.10, but I want to point out that the upgrade was not successful for me because I got a problem - Ubuntu cause hang of my system. CPU and memory utilization is fine, but any simple Windows apps take about 4-5 minutes to launch with long freezes\hangs. Also typing any command into the bash terminal (in upgraded Ubuntu 24.04) gave a response only after ~2 minutes.

I completely uninstalled Ubuntu and completely disabled WSL components, then turned WSL back on and installed Ubuntu 24.04 from the Microsoft Store, but this problem happened again and again. Then I completely uninstalled Ubuntu 24.04, restarted WSL and installed Ubuntu 22.04 back, and there is no problem here. I don't know what's wrong, I have a clean Win 11 (2 weeks after installation, all updates installed, etc.), and this is the reaction to Ubuntu 24.04... I think may be 24.04 is still raw for wsl... I really wish I had backed up of my prev 22.04 stable system.

Same thing from another user: https://github.com/microsoft/WSL/issues/11522

Related Question