Ubuntu Upgrade: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== 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. | 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 | [[Assumptions]] | ||
We assume that you have root or some form of SUDO access. | We assume that you have root or some form of SUDO access. | ||
[[Steps]] | |||
* Disable any 3rd party repositories (these will just get in the way later on. you can rename them to .save). If someone included additional repos in the main /etc/apt/sources.list file comment those out and place them in separate files under the /etc/apt/sources.list.d directory. | |||
* Make sure the system is completely up to date. | |||
sudo apt update; apt upgrade | sudo apt update; apt upgrade | ||
* Once your system is fully up to date, I recommend a reboot. | |||
* After reboot, migrate to the next LTS version of Ubuntu with do-release-upgrade. | |||
sudo 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 | *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 command: | ||
screen -r | |||
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. | *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. |
Latest revision as of 02:14, 12 February 2025
Ubuntu Upgrade Procedure
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.
We assume that you have root or some form of SUDO access.
- Disable any 3rd party repositories (these will just get in the way later on. you can rename them to .save). If someone included additional repos in the main /etc/apt/sources.list file comment those out and place them in separate files under the /etc/apt/sources.list.d directory.
- Make sure the system is completely up to date.
sudo apt update; apt upgrade
- Once your system is fully up to date, I recommend a reboot.
- After reboot, migrate to the next LTS version of Ubuntu with do-release-upgrade.
sudo 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 command:
screen -r
- 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.