Introduction

Ubuntu 24.04 LTS was launched on April 25th, 2024. As this version is an LTS (Long-Term Support) release, it will be supported for 5 years. In this post we are going to explain how to update your Ubuntu using the CLI.

Backup

Do a backup of important data before start. It is important because the update action has some risks and could damage the system.

Update your packages

It’s a good practice to have your packages updated before starting the system update process.

sudo apt update
sudo apt list --upgradable | more
sudo apt upgrade

Install the update manager

Next step is to install the update manager, if it is not installed yet.

sudo apt install update-manager-core

Update the system

Now we are ready to start the update.

sudo do-release-upgrade

If you are updating before the new release is officially supported, you might need to use the following command:

sudo do-release-release -d

Follow the instructions on the screen

Finally, you have to follow the instructions on the screen to complete the process.

Check version after the update

As a last step, you could check the update has been applied successfully.

yvoictra|saturn:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble