# How to Upgrade Ubuntu 22.04 to 24.04 LTS: A Complete Guide
Link: [https://www.cyberciti.biz/faq/how-to-upgrade-from-ubuntu-22-04-lts-to-ubuntu-24-04-lts/](https://www.cyberciti.biz/faq/how-to-upgrade-from-ubuntu-22-04-lts-to-ubuntu-24-04-lts/)
Ubuntu 24.04 LTS (Noble Numbat) was launched on April 25th, 2024. This new version will be supported for five years until June 2029. The armhf architecture now provides support for the Year 2038 problem. The upgrades include significant updates to core packages like Linux kernel, systemd, Netplan, toolchain upgrades for better development support, enhanced security measures, and performance optimizations. It also has an updated GNOME desktop environment and other default applications. Let us see how to upgrade Ubuntu 22.04 LTS to Ubuntu 24.04 LTS using the CLI over ssh-based session.
Users of Ubuntu 23.10 will be offered an automatic upgrade to 24.04 shortly after its release. However, users of Ubuntu 22.04 LTS will only receive the automatic upgrade offer once **24.04.1 LTS becomes available, which is scheduled for August 29** . However, you can force an immediate upgrade using the
-d option and jump from **22.04 to 23.10** and then finally to **24.04 LTS**. This is until August 29, 2024. After that date, you can directly jump from 22.04 to 24.04 LTS directly.
Tutorial details |
---|
Difficulty level | [Intermediate](https://www.cyberciti.biz/faq/tag/intermediate/ "See all Intermediate Linux / Unix System Administrator Tutorials") |
Root privileges | [Yes](https://www.cyberciti.biz/faq/how-can-i-log-in-as-root/ "See how to login as root user") |
Requirements | Linux terminal |
Category | Server Upgrade |
OS compatibility | [Linux](https://www.cyberciti.biz/faq/category/linux/ "See all Linux distributions tutorials") • [Ubuntu](https://www.cyberciti.biz/faq/category/ubuntu-linux/ "See all Ubuntu Linux tutorials") |
Est. reading time | 7 minutes |
Advertisement
## Step 1 – Backup your system
Backing up your data before upgrading from Ubuntu 22.04 LTS to 24.04 LTS is vital for two reasons. First, even though thoroughly tested, unexpected issues can arise during the upgrade process. If something goes wrong, a backup ensures you can recover irreplaceable files like databases, code written in PHP/Perl/Python, documents, photos, or scripts. Second, upgrading to a new LTS version might introduce changes that cause some of your data incompatibility. A backup allows you to restore and migrate the data to a format compatible with the new Ubuntu version. Remember to back up your data before upgrading to Ubuntu. Don’t blame us if you lose everything!
### How do I backup important data or everything?
Cloud providers usually offer backup options, such as taking a snapshot of your cloud server (here is guide for [EC2](https://docs.aws.amazon.com/prescriptive-guidance/latest/backup-recovery/ec2-backup.html) and [Lightsail VM](https://docs.aws.amazon.com/lightsail/latest/userguide/understanding-instance-snapshots-in-amazon-lightsail.html)). Alternatively, you can use various backup tools like [rsnapshot](https://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/), [tarsnap](https://www.cyberciti.biz/faq/how-to-compile-and-install-tarsanp-on-a-ubuntudebian-linux/), [restic](https://restic.net/), [kbackup](https://apps.kde.org/kbackup/), [duplicity](https://duplicity.us/), [bacula](https://www.bacula.org/), and [Déjà Dup](https://apps.gnome.org/DejaDup/). Testing your backups and verifying that they can be restored is necessary, as is finding out how long it takes to restore the data.
## Step 2 – Update your system
Run the [apt command](https://www.cyberciti.biz/faq/ubuntu-lts-debian-linux-apt-command-examples/ "apt Command Examples for Ubuntu/Debian Linux") to upgrade all installed packages on the Ubuntu 22.04 LTS:
`[](https://www.cyberciti.biz/media/new/faq/2024/04/Upgrading-Ubuntu-22.04-LTS-apps-and-packages-to-the-latest-version.png)
Fig.01: Upgrading Ubuntu 22.04 LTS apps and packages to the latest version (click to enlarge)
You may see a message like this while patching 22.04 LTS system:
```
[](https://www.cyberciti.biz/media/new/faq/2024/04/Rebooting-the-Ubuntu-22.04-LTS-machine.png)
Fig.02: Rebooting the Ubuntu 22.04 LTS machine (click to enlarge)
[](https://www.cyberciti.biz/media/new/faq/2024/04/Check-to-see-if-LTS-prompt-set-or-not-on-Ubuntu-22.04-LTS.png)
Fig.03: Checking if the LTS prompt config is set or not on Ubuntu 22.04 LTS (click to enlarge)
[](https://www.cyberciti.biz/media/new/faq/2024/04/Open-the-TCP-port-1022-using-the-CLOUD-server-firewall.png)
Fig. 04: Open the TCP port 1022 using the CLOUD server firewall (click to enlarge)
You will get welcome message as follows:
```
Checking for a new Ubuntu release
= Welcome to Ubuntu 24.04 LTS 'Noble Numbat' =
The Ubuntu team is proud to announce Ubuntu 24.04 LTS 'Noble Numbat'.
To see what's new in this release, visit:
https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes
Ubuntu is a Linux distribution for your desktop or server, with a fast
and easy install, regular releases, a tight selection of excellent
applications installed by default, and almost any other software you
can imagine available through the network.
We hope you enjoy Ubuntu.
....
...
To sign up for future Ubuntu announcements, please subscribe to Ubuntu's
very low volume announcement list at:
http://lists.ubuntu.com/mailman/listinfo/ubuntu-announce
Continue [yN]
```
Then it will tell you about ssh port what you already opened:
```
Reading cache
Checking package manager
Continue running under SSH?
This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.
If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?
Continue [yN]
```
Finally, you need to confirm to start upgrade procedure:
[](https://www.cyberciti.biz/media/new/faq/2024/04/How-to-Upgrade-from-Ubuntu-22.04-LTS-to-Ubuntu-24.04-LTS-using-the-CLI.png)
Fig.05 : Upgrading Ubuntu from 23.04 or 22.04 to 24.04 (click to enlarge)
[](https://www.cyberciti.biz/media/new/faq/2024/04/Rebooting-into-Ubuntu-24.04-LTS-server.png)
Fig.06: Rebooting into Ubuntu 24.04 LTS server (click to enlarge)