If you try to run the command sudo apt install postgresql
in Ubuntu it will install Postgresql version 14 instead of version 15. As of writing the Ubuntu repository does not include version 15.
Follow the tutorial below for a detailed guide to successfully installing PostgreSQL 15.
Step-by-Step Instructions on Configuring Postgresql 15 in Ubuntu
The following steps were tested in Ubuntu 22.04 LTS. If there are new versions of Ubuntu, I will test the steps again and update this post.
1. Installation
1.1 Add the Postgresql Package Repository to Ubuntu
Run the commands below to add the official Postgresql package repository to Ubuntu.
Continue reading How to install PostgreSQL 15 on Ubuntu