Updating your server from Ubuntu 20.04LTS to Ubuntu 22.04 LTS

Ubuntu 20.04 LTS goes end of life in April 2025, this means you must update to Ubuntu 22.04 LTS in order to keep receiving security and bug updates from the Ubuntu repos.

Ubuntu 22.04 LTS has been tested with RSpace and is fully compatible.

It is the responsibility of the customer to ensure that software on their on-prem IT infrastructure is kept upto date, this includes the Ubuntu operating system.

To start, you must have the following:

  1. No packages installed from external repos. They must all come from the default Ubuntu repos. If you have packages installed from external repos, then you must remove them or replace them with the version from the Ubuntu repo.
  2. Have a full backup before you attempt any upgrade

You can perform the Ubuntu upgrade by running "sudo do-release-upgrade". You must perform a full "sudo apt update && sudo apt upgrade -y" before you can run the 20.04 --> 22.04 upgrade script.

Once you've ran "sudo do-release-upgrade" you will be asked some questions about downloading extra content and automatically restarting services, which you can answer yes to.

You will be asked multiple times if you wish to replace config files with a new version from the repo, or to keep using your existing config files. You must select to keep your existing config files.

Once the new packages have been installed, you will be asked to remove the old packages and then reboot the server. That should be the upgrade complete.

Some services like apache2, shibd or tomcat9 might not automatically start up after the upgrade. You may need to start them up and enable them manually for the first time via systemctl

For a more detailed guide you can visit - https://krystal.io/blog/post/upgrading-ubuntu-20-04-to-22-04-lts-using-the-command-line


How did we do?


Powered by HelpDocs (opens in a new tab)