WP Newsify
Weekly News About WordPress
  • Home
  • WordPress
    • Premium Themes
    • Free Themes
    • Plugins
    • Tutorials
    • Hosting
  • Blog
  • Services
    • Testimonials
  • Exclusive Deals
  • About
    • Privacy Policy
    • Terms and Conditions
    • Press
  • Contact

Follow Us

A computer screen with a program running on it ubuntu terminal, update commands, package manager

How to Upgrade Ubuntu From the Terminal: APT vs do-release-upgrade for Updating Linux

Editorial Staff Blog

FacebookTweetPinLinkedIn

Use APT for routine package updates, and use do-release-upgrade only when you want to move Ubuntu to a new release. APT keeps your current Ubuntu version patched. do-release-upgrade changes the operating system release itself, such as moving from Ubuntu 22.04 LTS to 24.04 LTS. Ubuntu LTS releases get five years of standard security maintenance, so many servers should not rush release upgrades without a reason [source: Ubuntu].

TLDR: Run sudo apt update && sudo apt upgrade for normal updates, security fixes, and package patches. Use sudo do-release-upgrade when you are ready to upgrade to the next Ubuntu release, for example from 22.04 LTS to 24.04 LTS. In a small office with 25 Ubuntu workstations, weekly APT updates may take 10 to 20 minutes per machine, while a release upgrade can take 45 to 90 minutes and may need manual checks. Always back up first, because fixing a broken upgrade at 1 a.m. is not character building.

APT vs do-release-upgrade: the short version

APT is Ubuntu’s package management tool. It updates installed packages inside the same Ubuntu release. If you are already on Ubuntu 24.04, APT keeps you on 24.04 while installing newer approved versions of packages from your configured repositories.

do-release-upgrade is different. It upgrades Ubuntu from one release to another. It checks upgrade paths, disables third-party repositories, changes software sources, calculates package removals, and moves the system to the target release.

Think of APT as servicing a car. Think of do-release-upgrade as trading it for the next model while keeping your luggage in the trunk.

When to use APT

Use APT for regular maintenance. This is the command set most Ubuntu users should know first:

sudo apt update
sudo apt upgrade

apt update refreshes the package index. It does not install anything. apt upgrade installs available upgrades without removing packages unless required by policy.

For a fuller upgrade inside the same release, use:

sudo apt full-upgrade

full-upgrade can install or remove packages to complete upgrades. It is useful for kernel updates and dependency changes, but read the prompt before pressing Y. If it wants to remove half your desktop, stop and inspect the issue.

APT is the right tool for:

  • Security updates within your current Ubuntu version.
  • Bug fixes delivered through official repositories.
  • Kernel updates that stay within the supported release.
  • Server patching during a normal maintenance window.
  • Desktop updates for installed applications and libraries.

A common weekly routine is simple:

sudo apt update
apt list --upgradable
sudo apt upgrade
sudo reboot

The reboot is only needed when the kernel, core libraries, or certain services are updated. Still, many admins schedule it after patching servers because it proves the machine can boot cleanly.

When to use do-release-upgrade

Use do-release-upgrade when you want a new Ubuntu release. For example, you may want newer hardware support, a newer compiler, a newer GNOME desktop, or a longer support period.

The standard command is:

sudo do-release-upgrade

On a server, especially over SSH, install and use a terminal multiplexer first:

sudo apt install tmux
tmux
sudo do-release-upgrade

This protects you if the SSH session drops. Honestly, it feels like a small extra step until the network blips 37 minutes into an upgrade. Then it feels like genius.

Before running it, fully update the current system:

sudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove

Then reboot:

sudo reboot

After the reboot, start the release upgrade. Ubuntu’s release upgrader is designed for supported upgrade paths and performs checks that plain APT does not handle in the same way [source: Ubuntu Help].

Do not upgrade blindly

A release upgrade changes a lot. Packages may be removed. Configuration files may be replaced or left for review. Third-party repositories may be disabled. Drivers may behave differently. That is normal, but it can still be annoying.

Before using do-release-upgrade, do these checks:

  • Back up user data, databases, websites, and configuration files.
  • Snapshot the machine if it is a virtual server or VM.
  • Check free disk space with df -h.
  • List third-party repositories in /etc/apt/sources.list.d/.
  • Record services with systemctl --type=service --state=running.
  • Read prompts carefully, especially package removal lists.

Can APT upgrade Ubuntu to a new release?

Not safely in the normal sense. You may see people edit /etc/apt/sources.list by hand and run APT against a newer release. Avoid that method unless you are recovering a system or working in a controlled lab.

do-release-upgrade exists because a release upgrade is more than changing repository names. It handles release-specific upgrade logic. It can warn about unsupported paths. It can calculate package transitions in a way that fits Ubuntu’s upgrade process.

APT is still used underneath, but do-release-upgrade controls the larger process. That distinction matters.

Recommended command paths

For normal updates:

sudo apt update
sudo apt upgrade

For a more complete same-release update:

sudo apt update
sudo apt full-upgrade
sudo apt autoremove

For a release upgrade:

sudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo reboot
sudo do-release-upgrade

For checking your Ubuntu version:

lsb_release -a

For checking whether a reboot is needed:

test -f /var/run/reboot-required && cat /var/run/reboot-required

Common problems and sensible fixes

Problem: “No new release found.”
Check /etc/update-manager/release-upgrades. For LTS-to-LTS upgrades, the Prompt line should usually be:

Prompt=lts

Problem: third-party packages block the upgrade.
Disable external repositories, update again, and retry. PPAs are convenient until they stall a major upgrade. It drives me crazy that one forgotten repository can waste 20 minutes, but it happens often.

Problem: held packages.
Check them with:

apt-mark showhold

Unhold only packages you understand:

sudo apt-mark unhold package_name

Problem: not enough space.
Clean package cache and remove unused dependencies:

sudo apt autoremove
sudo apt clean

Which method should you choose?

Choose APT if your Ubuntu version is still supported and you only need patches. This is the safer, faster, and more routine task. It should be part of normal maintenance.

Choose do-release-upgrade when your release is nearing end of life, when you need newer platform features, or when you are standardizing machines on a newer LTS version. Treat it as a planned change, not a casual command.

For production servers, test the release upgrade on a clone first. For desktops, back up home folders and browser profiles. For laptops, plug in power and avoid doing it on hotel Wi-Fi.

The best rule is simple: APT updates Ubuntu; do-release-upgrade upgrades Ubuntu. Use the right tool, read every prompt, and keep a rollback plan close. That saves more time than any clever terminal shortcut.

  • Author
  • Recent Posts
Editorial Staff
Follow Us
Editorial Staff
Editorial Staff at WP Newsify is a team of WordPress experts. For more news, updates and deals follow WP Newsify on Facebook, Twitter, Pinterest, Google +, and our Newsletter.
Editorial Staff
Follow Us
Latest posts by Editorial Staff (see all)
  • Password Generator Tools Compared: 8 Options for Creating Strong Random Passwords, Custom Lengths, and Memorable Passphrases - November 13, 2026
  • The Best Alternatives to Amplemarket: 6 Sales Engagement Platforms for Prospecting, Multichannel Outreach, and Pipeline Generation - November 12, 2026
  • The Best Alternatives to Retool for Internal Tools: 5 Low-Code Platforms for Admin Apps, Operational Dashboards, and Database-Connected Workflows - November 12, 2026
FacebookTweetPinLinkedIn

Editorial Staff

→ Editorial Staff

Google Site Verification TXT Record: Google Search Console vs DNS Provider Tools for Domain Verification How to Clear SSL Cache: Windows SSL State vs Browser Cache for Troubleshooting HTTPS

Related Posts

black iphone 5 on yellow textile password reset screen, email notification on phone, secure login concept

Blog

Password Generator Tools Compared: 8 Options for Creating Strong Random Passwords, Custom Lengths, and Memorable Passphrases

a close up of a screen with numbers on it manufacturing procurement, supplier risk, sales dashboard, account list

Blog

The Best Alternatives to Amplemarket: 6 Sales Engagement Platforms for Prospecting, Multichannel Outreach, and Pipeline Generation

Admin Dashboard

Blog

The Best Alternatives to Retool for Internal Tools: 5 Low-Code Platforms for Admin Apps, Operational Dashboards, and Database-Connected Workflows

Recent Posts

  • Password Generator Tools Compared: 8 Options for Creating Strong Random Passwords, Custom Lengths, and Memorable Passphrases
  • The Best Alternatives to Amplemarket: 6 Sales Engagement Platforms for Prospecting, Multichannel Outreach, and Pipeline Generation
  • The Best Alternatives to Retool for Internal Tools: 5 Low-Code Platforms for Admin Apps, Operational Dashboards, and Database-Connected Workflows
  • The Best Alternatives to CleverTap: 6 Customer Engagement Platforms for Mobile Messaging, Lifecycle Marketing, and Behavioral Analytics
  • 6 Accounting Practice Management Software Options: Compare Karbon, TaxDome, and Canopy for Client Workflows, Billing, and Firm Operations
WP Newsify

The WordPress® trademark is the intellectual property of the WordPress Foundation. Uses of the WordPress® name in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation. WebFactory Ltd is not endorsed or owned by, or affiliated with, the WordPress Foundation.

Recent Posts

  • Password Generator Tools Compared: 8 Options for Creating Strong Random Passwords, Custom Lengths, and Memorable Passphrases
  • The Best Alternatives to Amplemarket: 6 Sales Engagement Platforms for Prospecting, Multichannel Outreach, and Pipeline Generation
  • The Best Alternatives to Retool for Internal Tools: 5 Low-Code Platforms for Admin Apps, Operational Dashboards, and Database-Connected Workflows
  • The Best Alternatives to CleverTap: 6 Customer Engagement Platforms for Mobile Messaging, Lifecycle Marketing, and Behavioral Analytics
  • 6 Accounting Practice Management Software Options: Compare Karbon, TaxDome, and Canopy for Client Workflows, Billing, and Firm Operations

Categories

  • Blog (1,863)
  • Free Themes (13)
  • Hosting (16)
  • Plugins (157)
  • Premium Themes (41)
  • Tutorials (155)
  • Uncategorized (35)
  • WordPress (153)

Pages

  • About WP Newsify
  • Contact
  • Exclusive Deals
  • Press
  • Privacy Policy
  • Terms and Conditions
  • Testimonials
© WP Newsify 2017-2021. Operated by WebFactory Ltd Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to WP Newsify with appropriate and specific direction to the original content. Powered by WordPress
Like every other site, this one uses cookies too. Read the fine print to learn more. By continuing to browse, you agree to our use of cookies.X