I have installed postgresql on my ubuntu 24 box using apt install postgresql postgresql-contrib
- the install works fine no issues. I can start postgresql fine as well.
However when I try 'psql' I get error
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?
I think the reason may be that no postgres user is created on install. When I do getent passwd postgres
nothing is returned
Also /var/run/postgresql
doesn't exist
This seems like an odd one, I can't find anything on it. Perhaps the install is silent failing? Any help really appreciated