Upgrading from Ubuntu 22.04 to Ubuntu 24.04 before August 2024

If you want to upgrade from Ubuntu 22.04 to Ubuntu 24.04 now, then,

sudo apt-get upgrade or sudo apt-get dist-upgrade

won't work since upgrading is possible only after Ubuntu 24.04_01 is released in August 2024.

To force upgrade to 24.04 execute

sudo do-release-upgrade -d

Since I'm performing this on my WSL on Windows, I don't mind if anything breaks here.