Ubuntu Upgrade

From Computer Science Wiki
Revision as of 11:04, 10 February 2025 by Rhunter (talk | contribs)
Jump to navigation Jump to search

Ubuntu Upgrade Procedure

Overview

This is a rough upgrade procedure that we (TechStaff) recommend for VMs and Servers. Desktops generally follow a GUI interface to complete an upgrade between versions of Ubuntu but this procedure will also work on them.

Assumptions

We assume that you have root or some form of SUDO access.

Steps

  1. Disable any 3rd party repositories (these will just get in the way later on. you can rename them to .save
  1. Make sure the system is completely up to date.
sudo apt update; apt upgrade

If any errors about 3rd party repositories that can not be found etc then disable those 3rd party repositories and run again. Do this until your system is fully up to date. At this point, I recommend a reboot.

  1. Once system is up to date in the current Ubuntu version run do-release-upgrade.
do-release-upgrade

Follow the steps and recommendations (defaults usually work best in most cases) and follow through until the end when it asks you to reboot (this will be the last step).


If you get disconnected early for any reason DO NOT REBOOT!!! Contact TechStaff to help you recover your upgrade. In most cases, you can reconnect to port 1022

or locally via the "screen -r" command.

If the command fails for any other reason, look at the listed reasons and take the steps recommended. Again if you have any questions during a difficult upgrade ask TechStaff for advise.