The following bug has been logged on the website:
Bug reference: 16278
Logged by: Uday Spellbound
Email address: uday(dot)spellbound(at)gmail(dot)com
PostgreSQL version: 9.5.19
Operating system: UBUNTU 16.04 LTS
Description:
could not connect to database template1: could not connect to server: No
such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?