
Ubuntu is a widely adopted open-source Linux distribution released on a predictable schedule, with Long Term Support (LTS) versions receiving security and maintenance updates for five years. Ubuntu 26.04 LTS, codenamed Resolute Raccoon, ships with the Linux 7.0 kernel, an updated set of default packages, and security improvements over Ubuntu 24.04. Upgrading an existing server carries forward your data and configurations to the newer release without requiring a fresh deployment.
This article explains how to upgrade a server from Ubuntu 24.04 LTS to Ubuntu 26.04 LTS. It covers verifying application compatibility, preparing the system, running the upgrade tool, testing the result, and resolving common post-upgrade issues.
Before you begin, you need to:
Have access to an Ubuntu 24.04 server instance as a non-root user with sudo privileges.
Ensure at least 5 GB of free disk space is available. Run the command below to check.
Output:
Some packages installed on Ubuntu 24.04 may not be compatible with Ubuntu 26.04, which can cause dependency conflicts or runtime errors after the upgrade. Auditing your installed software before starting reduces the chance of post-upgrade failures. Follow the steps below to export and review your package list.
Save a list of all installed packages to a file.
Browse the exported package list.
Review the official Ubuntu 26.04 release notes to identify any known incompatible dependencies or removed packages.
Upgrading all existing packages before starting the release upgrade minimizes the risk of conflicts introduced by outdated software. Follow the steps below to bring the system up to date and remove unnecessary packages.
Confirm the server is running Ubuntu 24.04.
Update the package information index.
Upgrade all installed packages to their latest available versions.
If the system displays the following kernel warning after upgrading, restart the server before continuing.
Remove packages that are no longer needed.
Clear the local package cache.
The do-release-upgrade tool starts an auxiliary SSH daemon on port 1022 during the upgrade. This fallback connection allows you to reconnect if the primary SSH session drops mid-upgrade. Follow the steps below to open this port in the firewall before launching the upgrade.
Allow port 1022 through UFW.
Reload UFW to activate the new rule.
Verify that port 1022 appears in the active ruleset.
Output:
With the server prepared, launch the release upgrade tool to begin the transition to Ubuntu 26.04 LTS. The tool downloads updated packages, asks you to resolve configuration file conflicts, and restarts the server when the upgrade is complete. Follow the steps below to run the upgrade.
Launch the release upgrade tool.
Enter y and press Enter when prompted to confirm the upgrade to Ubuntu 26.04 LTS.
Enter y and press Enter to allow the upgrade tool to open an auxiliary SSH daemon on port 1022.
Press Enter to acknowledge the auxiliary SSH daemon notice and proceed.
Enter y and press Enter to begin downloading and installing the upgrade packages.
Use the arrow keys to select the country of origin for your keyboard and press Enter when the Configuring keyboard-configuration dialog appears.
Use the arrow keys to select the specific keyboard layout variant for your country and press Enter to confirm.
Press Enter to select N and keep the existing /etc/systemd/journald.conf file when prompted.
Select keep the local version currently installed and press Enter when the upgrade tool prompts about /etc/ssh/sshd_config.
Select keep the local version currently installed and press Enter when prompted about /etc/default/grub.
Press Enter to select N and keep the current /etc/cloud/cloud.cfg file.
Enter d to review the list of obsolete packages, then enter y and press Enter to remove them.
Wait for the upgrade to complete — the process typically takes 30 minutes or longer depending on the packages installed on the server. Enter y and press Enter when prompted to restart.
After the server restarts, confirm that the upgrade succeeded and the system is running Ubuntu 26.04 LTS. Follow the steps below to verify the distribution version, kernel, and firewall configuration.
Display the active distribution information.
Output:
Check the running kernel version.
Output:
Remove the temporary UFW rule for port 1022.
Third-party APT repositories configured on the server may still reference the Ubuntu 24.04 (Noble Numbat) codename and fail to fetch updates until they are corrected. Follow the steps below to inspect repository sources and update all packages.
List the files in the APT sources directory.
Output:
Update any repository files that still reference the Ubuntu 24.04 codename to use the Ubuntu 26.04 sources instead.
Refresh the package information index.
Output:
Verify that all repository entries reference resolute rather than noble.
Apply any available package upgrades.
Output:
Remove unused packages and clear the package cache.
Output:
You have upgraded your server from Ubuntu 24.04 LTS to Ubuntu 26.04 LTS (Resolute Raccoon). The system now runs the Linux 7.0 kernel with updated packages, security patches, and the improvements introduced in this LTS release. For more information about new features and upgrade considerations, visit the official Ubuntu 26.04 release notes.
0 Comments
Be the first to comment and share your perspective with the community.