To install PostgreSQL on Ubuntu 26.04, use the distro package (PostgreSQL 18).
Step 1 : Update.

Step 2 : Install PostgreSQL.


Step 3 : Start and enable.

Step 4 : Check status.

Step 5 : Open psql as the postgres user.

Step 6 : Create a user and database (change the password).

You have installed PostgreSQL on Ubuntu 26.04.