Use do-release-upgrade to move to a new Ubuntu version. Use apt to update packages inside your current Ubuntu version. Ubuntu LTS releases arrive every two years, while interim releases arrive every six months [source: Ubuntu]. Mixing these two jobs is how a calm afternoon becomes a tiny Linux disaster.
TLDR: Run sudo apt update && sudo apt upgrade for normal updates. Run sudo do-release-upgrade when you want to jump from Ubuntu 22.04 to 24.04, or from 23.10 to 24.04. For example, a home user with 83 available package updates may finish with apt in 5 minutes, but a full release upgrade can take 30 to 90 minutes. Back up first, because computers enjoy drama at the worst time.
APT vs do-release-upgrade: the simple difference
APT is your daily mechanic. It changes oil, checks tires, and swaps worn parts. It keeps your current Ubuntu system healthy.
do-release-upgrade is the moving truck. It takes you from one Ubuntu city to another. New roads. New rules. New package versions. Sometimes a few grumpy passengers.
Here is the clean split:
- Use
aptfor security updates, app updates, and kernel updates inside the same Ubuntu release. - Use
do-release-upgradefor moving from one Ubuntu release to another. - Do not expect
apt upgradeto turn Ubuntu 22.04 into Ubuntu 24.04. It will not. - Do not edit system files by hand unless you enjoy solving weird package errors at 1 a.m.
What APT actually does
APT means Advanced Package Tool. Fancy name. Simple job.
It talks to Ubuntu software servers. It checks what packages you have. Then it checks what newer packages exist for your current Ubuntu version.
The basic command is:
sudo apt update
sudo apt upgrade
The first line refreshes the package list. The second line installs the upgrades.
You can also use:
sudo apt full-upgrade
This can remove old packages if needed. That sounds scary. Sometimes it is normal. Kernel updates often need this.
APT does not change your Ubuntu release. If you are on Ubuntu 22.04, you stay on Ubuntu 22.04. You just get newer packages made for 22.04.
The catch is that APT looks powerful, so users assume it can do the big jump too. It cannot. Not by itself. If you try to force it with edited repository files, you may create a package soup. Nobody wants soup made of broken dependencies.
What do-release-upgrade actually does
do-release-upgrade is built for the big move.
It checks your current release. It checks if a newer supported release is available. It changes software sources. It calculates package changes. Then it upgrades the system in a controlled way.
Run it like this:
sudo do-release-upgrade
If you are on an LTS release and the next LTS is not being offered yet, you can check your upgrade settings:
cat /etc/update-manager/release-upgrades
You may see:
Prompt=lts
That means Ubuntu will offer only LTS upgrades. That is great for work machines, servers, and people who dislike surprise breakage.
If you want interim releases, it may say:
Prompt=normal
Most users should stick with LTS. It is calmer. It gets years of updates. It is boring in the best way.
Before you upgrade: do these things
Please do not skip this part. Yes, it feels dull. Backups are boring until they save your files.
- Back up your home folder. Copy photos, documents, SSH keys, and project files.
- Plug in power. A dead laptop battery during an upgrade is pure pain.
- Update first with APT. Start clean.
- Remove weird PPAs. Third-party repositories often cause upgrade trouble.
- Check disk space. Aim for at least 10 GB free. More is better.
- Give yourself time. Do not start this 12 minutes before a meeting.
Run this first:
sudo apt update
sudo apt full-upgrade
sudo apt autoremove
Then reboot:
sudo reboot
Now your system is tidy. Well, tidier. Linux systems are never truly tidy. They just pretend better than Windows sometimes.
How to upgrade Ubuntu to the latest version
Here is the simple path.
- Open Terminal.
- Update current packages.
- Reboot.
- Start the release upgrade.
- Answer the prompts.
- Reboot again.
Commands:
sudo apt update
sudo apt full-upgrade
sudo apt autoremove
sudo reboot
After reboot:
sudo do-release-upgrade
Follow the screens. Read each prompt. Most defaults are fine.
During the upgrade, Ubuntu may ask if you want to keep or replace a config file. This can be annoying. Honestly, it feels like the installer waits until you leave the room before asking. If you changed that file yourself, keep it. If not, using the package maintainer version is often safe.
When do-release-upgrade says “No new release found”
This message makes people sigh. It is not always an error.
Possible reasons:
- You are already on the latest release. Nice. Go drink coffee.
- Your upgrade channel is set to LTS only. Interim releases will not appear.
- The new LTS upgrade has not been enabled yet. Ubuntu often waits for early bugs to settle.
- Your current release is too old. You may need a step-by-step upgrade.
You can check your Ubuntu version with:
lsb_release -a
You can check the upgrade setting with:
grep Prompt /etc/update-manager/release-upgrades
Should you use the Software Updater instead?
Yes, if you like buttons.
Ubuntu’s graphical Software Updater can handle release upgrades too. It uses the same general upgrade system under the hood. The terminal is just easier to explain and easier to copy.
If you run a server, use the terminal. If you run a desktop and fear command lines, use the app. No shame. The best tool is the one you can use without sweating.
Common mistakes that waste time
- Changing repository names by hand. This can break package sources fast.
- Upgrading over a bad Wi-Fi connection. Use Ethernet if you can.
- Keeping too many PPAs. Disable them before the upgrade.
- Ignoring backups. Bold choice. Bad choice.
- Running random commands from old forum posts. Check the date first.
Expect to waste time on third-party packages. VPN clients, old graphics drivers, and custom desktop tweaks love causing trouble. It is rude, but common.
Quick decision guide
| Goal | Use |
|---|---|
| Install security updates | apt |
| Update apps on the same Ubuntu version | apt |
| Move from Ubuntu 22.04 to 24.04 | do-release-upgrade |
| Clean old unused packages | apt autoremove |
| Fix a half-finished release upgrade | Slow down, read logs, and avoid guessing |
Final verdict
APT updates your current Ubuntu. do-release-upgrade upgrades Ubuntu itself. That is the whole trick.
For everyday care, run:
sudo apt update
sudo apt upgrade
For a real version jump, run:
sudo do-release-upgrade
Back up first. Update first. Reboot when asked. Then let Ubuntu do its thing. With a little patience, your system gets fresh packages, a newer base, and fewer reasons to yell at your screen.
