I have a VM running Ubuntu 22.04 LTS, and I know that Ubuntu 22.04.1 LTS has been released months ago. Then how can I upgrade to 22.04.1 on the fly, keeping all existing software and configs?
I tried sudo do-release-upgrade
, but told that There is no development version of an LTS available.
I hope that the answer is suitable to Ubuntu 22.04 running on WSL1 as well, because, there is a weird /usr/bin/gzip
problem on WSL1, here: https://github.com/microsoft/WSL/issues/8219
You don't need special commands to upgrade a 22.04 system, the normal
sudo apt update
to update your software lists; ie. so your system knows what upgraded packages are available for install, then
sudo apt full-upgrade
to apply those security fixes & upgrades.
A reboot maybe required at completion.
The
do-release-upgrade
command is to change from using one release (jammy or 22.04 is what you're using now) to upgrade to a later release (eg. 22.10, or the next LTS which will be 24.04 a long time from now), and isn't used when you're trying to stay on the same jammy or 22.04 system you're currently using.The "no development version of an LTS available" message you mention is because the development release of 24.04 doesn't open until after 23.10 has been released in October 2023 (and 22.10 is no longer a development release being a released or stable product).