
<p>
Digital Ocean maintains its own version of the Ubuntu core packages which are hosted in&nbsp;</p>
<p>
it's own repositories. To upgrade from one LTS to the next the do-release-upgrade program&nbsp;</p>
<p>
must know to use third party repositories during the upgrade process.</p>
<p>
<br>
</p>
<pre class="ql-syntax" spellcheck="false">
RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade
</pre>
<p>
<br>
</p>
<p>
Moving data from a previous version of Postgres to the latest. In this case, the&nbsp;</p>
<p>
obsolete Postgres v12 to the default Postgres v14 on Ubuntu 22.04 LTS.</p>
<p>
<br>
</p>
<pre class="ql-syntax" spellcheck="false">
&nbsp;pg_dropcluster --stop 14 main
&nbsp;pg_upgradecluster -v 14 12 main
</pre>
<p>
<br>
</p>
<p>
Fixing NextCloud after the upgrade.</p>
<p>
<br>
</p>
<p>
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.</p>
<p>
<br>
</p>
<pre class="ql-syntax" spellcheck="false">
a2dismod php7.4
a2enmod php8.1
apt install php8.1-pgsql
apt install php8.1-gd
</pre>
<p>
<br>
</p>
<p>
References:</p>
<ul>
<li>
<a href="https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-22-04-jammy-jellyfish" rel="noopener noreferrer" target="_blank">
How To Upgrade to Ubuntu 22.04 Jammy Jellyfish</a>
</li>
<li>
<a href="https://askubuntu.com/questions/1231817/invalid-package-information-error-when-upgrading-to-ubuntu-20-04" rel="noopener noreferrer" target="_blank">
"Invalid package information" error when upgrading to Ubuntu 20.04</a>
</li>
</ul>
<p>
<br>
</p>


