hpr4492 :: How to do a distribution upgrade of an Ubuntu LTS on a Digital Ocean droplet

Rho`n upgrades his Ubuntu 20.04 LTS Digital Ocean droplet to 22.04 LTS

<< First, < Previous, Next > Latest >>

Thumbnail of Rho`n
Hosted by Rho`n on Tuesday, 2025-10-21 is flagged as Clean and is released under a CC-BY-SA license.
ubuntu, upgrades, nextcloud, postgres. (Be the first).

Listen in ogg, opus, or mp3 format. Play now:

Duration: 00:05:52
Download the transcription and subtitles.

general.

Digital Ocean maintains its own version of the Ubuntu core packages which are hosted in 

it's own repositories. To upgrade from one LTS to the next the do-release-upgrade program 

must know to use third party repositories during the upgrade process.


RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade


Moving data from a previous version of Postgres to the latest. In this case, the 

obsolete Postgres v12 to the default Postgres v14 on Ubuntu 22.04 LTS.


 pg_dropcluster --stop 14 main
 pg_upgradecluster -v 14 12 main


Fixing NextCloud after the upgrade.


The version of PHP upgraded from v7.4 to v8.1. The old versions of the Apache2 PHP modules must be disabled and the new versions enabled.


a2dismod php7.4
a2enmod php8.1
apt install php8.1-pgsql
apt install php8.1-gd


References:



Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?