Upgrade older Ubuntu versions: Difference between revisions

From CES IT Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== How to upgrade older versions of Ubuntu
== How to upgrade older versions of Ubuntu ==
Some of our Digital Ocean servers are running older versions of Ubuntu, some as old as 16.04. These cannot upgrade using the standard distros and need to have their sources file edited to look for the correct upgrade paths, which have been sent to an archive mirror path.
Some of our Digital Ocean servers are running older versions of Ubuntu, some as old as 16.04. These cannot upgrade using the standard distros and need to have their sources file edited to look for the correct upgrade paths, which have been sent to an archive mirror path.



Revision as of 19:59, 8 October 2024

How to upgrade older versions of Ubuntu

Some of our Digital Ocean servers are running older versions of Ubuntu, some as old as 16.04. These cannot upgrade using the standard distros and need to have their sources file edited to look for the correct upgrade paths, which have been sent to an archive mirror path.

To run an upgrade of Ubuntu, type

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

If the upgrade fails due to not finding sources or not downloading the correct packages, try the fix below.

Steps to upgrade

  1. Log in to Digital Ocean server via SSH
  2. Navigate to /etc/apt/
    1. Edit the sources.list file and remove (comment) any third part sources. Digital Ocean mirrors may need to be switched to Ubuntu repositories, but this requires testing.
    2. Also edit any lists in /etc/apt/sources.list.d to see if other third party sources are blocking the update.
  3. Run the update again and see if it installs the correct packages.