Can’t update to Ubuntu 24.04 LTS on WSL2


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 jammy InRelease
Hit:2 jammy InRelease
Hit:4 jammy InRelease
Hit:5 jammy-security InRelease
Hit:6 jammy InRelease
Hit:3  InRelease
Hit:7 jammy-updates InRelease
Hit:8 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:

Related Question