GUIDE · UBUNTU
Ubuntu 22.04 end of standard support: what to do before May 2027
Ubuntu 22.04 LTS gets standard security fixes until May 2027. After that, you either pay for Ubuntu Pro or upgrade. Here is how to choose, and how to upgrade without surprises.
GuidesPublished 10 November 2026
What changes in May 2027
Nothing stops working. What ends is standard security maintenance: five years of fixes for the packages in Ubuntu's main repository (Ubuntu).
Packages in the universe repository were never part of it. Ubuntu Pro's Expanded Security Maintenance covers universe, and keeps main patched until May 2032 (Ubuntu). The nodejs package that Ubuntu ships, for example, lives in universe.
Security scanners and insurance questionnaires flag releases that are out of standard support, so 22.04 will start showing up in audits.
Check what you run
Two commands tell you the release, and how many installed packages come from main and from universe:
lsb_release -d
pro security-statusUbuntu Pro or an upgrade?
| Option | Fixes until | When to choose it |
|---|---|---|
| Ubuntu Pro on 22.04 | May 2032 | To buy time when an upgrade is risky, for example an old app tied to PHP 8.1 or Python 3.10. |
| Upgrade to 24.04 | May 2029 | The usual choice: one well documented step, with two more years of standard support. |
| Upgrade to 24.04, then 26.04 | May 2031 | The longest support, but two upgrades and more changes at once. |
Dates from the Ubuntu release cycle. Ubuntu Pro is free for personal use on up to five machines. For a business, Canonical lists a server with unlimited virtual machines at $500 a year (Ubuntu Pro pricing).
Ubuntu Pro buys time. It does not move you to a newer PHP, Python or framework, so the upgrade is still waiting at the end.
You cannot skip a release
Ubuntu upgrades one LTS at a time: 22.04 goes to 24.04, and only 24.04 goes to 26.04. It also offers an upgrade from one LTS to the next only after the first point release of the new one (Ubuntu Server documentation).
Many teams rebuild instead: a fresh server on the new release, the app deployed onto it, then the traffic switched over. It is often safer than upgrading in place, and it proves that your setup notes are complete.
What changes in the packages
The upgrade brings new versions of what your app depends on. From Ubuntu's own packages:
| Package | 22.04 | 24.04 | 26.04 |
|---|---|---|---|
| PHP | 8.1 | 8.3 | 8.5 |
| Python | 3.10 | 3.12 | 3.14 |
| PostgreSQL | 14 | 16 | 18 |
| MySQL | 8.0 | 8.0 | 8.4 |
| OpenSSL | 3.0 | 3.0 | 3.5 |
| nginx | 1.18 | 1.24 | 1.28 |
PHP: the jump from 8.1 to 8.3 needs your app and its framework checked first. Our PHP 8.2 guide lists what usually breaks.
Python: virtual environments must be rebuilt on the new version. Python 3.12 removed distutils, which some old packages still import. Our Python 3.10 guide lists what else changes.
PostgreSQL: the upgrade installs the new version, but your data stays in a cluster on the old one until you migrate it, with pg_upgradecluster or a dump and restore.
OpenSSL: 26.04 moves to OpenSSL 3.5, so test every outgoing connection to old internal services and partners.
Upgrade steps
- List every server and what runs on it: the release, the PHP, Python and database versions, and any third-party repositories in /etc/apt/sources.list.d.
- Take a full backup and a snapshot, and make sure you have restored one at least once.
- Bring 22.04 fully up to date and reboot, so you start from a clean state.
- Try the upgrade on a copy first: a clone of the server or a staging machine with the same packages.
- Run sudo do-release-upgrade, ideally inside screen or tmux, and read each question about changed configuration files instead of accepting the defaults.
- Turn the third-party repositories back on, check the PHP, Python and database versions, and run the app's tests.
- Upgrade production in a quiet window with the snapshot ready, then watch the logs for a few days.
If you cannot upgrade in time
Attach Ubuntu Pro before May 2027 so the fixes keep coming, write down the date you will upgrade, and reduce what the server exposes to the internet. Whatever you choose, keep the rest of the server patched.
Questions
Will my server stop working in May 2027?
No. It keeps running and keeps installing the updates it already gets. What stops is the stream of new fixes from standard maintenance.
Is Ubuntu Pro free?
For personal use on up to five machines. For a business it is a paid subscription per machine. Check the current prices on Ubuntu's site.
Can I go straight from 22.04 to 26.04?
Not in place: you upgrade to 24.04 first, then to 26.04. To skip a step, build a fresh 26.04 server and deploy the app onto it.
What about Ubuntu 20.04?
Its standard support ended in May 2025. Without Ubuntu Pro it no longer gets new security fixes, so upgrade it first.
Can PatchTempo do the upgrade?
Yes. It is part of the one-off hardening upgrade: tried on a copy first, rolled out after your approval, with a snapshot to switch back to. Start with the free audit.