Skip to main content

Upgrade Server to latest Ubuntu version

sudo apt update && sudo apt full-upgrade -y
# needs reboot after update and before upgrade
sudo reboot


do-release-upgrade

# If you continue, an additional ssh daemon will be started at port '1022'.

# Answer yes to all questions other than when it asks to overwrite configuration files
# In this case overwrite everything other than the nginx files

# PostgreSQL upgrade to new (Only applicable to database server)
# │ Obsolete major version 12                                                                                            │
# │                                                                                                                      │
# │ The PostgreSQL version 12 is obsolete, but the server or client packages are still installed. Please install the     │
# │ latest packages (postgresql-14 and postgresql-client-14) and upgrade the existing  clusters with pg_upgradecluster   │
# │ (see manpage).                                                                                                       │
# │                                                                                                                      │
# │ Please be aware that the installation of postgresql-14 will automatically create a default cluster 14/main. If you   │
# │ want to upgrade the 12/main cluster, you need to remove the already existing 14 cluster (pg_dropcluster --stop 14    │
# │ main, see manpage for details).                                                                                      │
# │                                                                                                                      │
# │ The old server and client packages are no longer supported. After the existing clusters are upgraded, the            │
# │ postgresql-12 and postgresql-client-12 packages should be removed.                                                   │
# │                                                                                                                      │
# │ Please see /usr/share/doc/postgresql-common/README.Debian.gz for details. 

# Start the services after reboot

systemctl --user start celery 
systemctl --user start npm-homestead
systemctl --user start gunicorn-homestead-dev

# You might also need to re-enable the services...
systemctl --user enable SERVICENAME