The issue is that there is a PostgreSQL server running on port 5432, as you can check using pg_lsclusters. You need to identify which server instance you actually want to connect to
pg_lsclusters