From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Installed PostgreSQL-11 in Ubuntu 18.04.02 Server Edition: No existing local cluster is suitable as a default target
Date: Wed, 18 Sep 2019 12:03:36 +0200
Message-ID: <20190918100336.GA79895@sh4-5.1blu.de> (raw)
In-Reply-To: <CAFegzBQ2LxM9SAV17dFpEMF+wgZzOXk80HkAPJhvz+DtFY+9Qg@mail.gmail.com>
References: <CAFegzBQ2LxM9SAV17dFpEMF+wgZzOXk80HkAPJhvz+DtFY+9Qg@mail.gmail.com>
El día Wednesday, September 18, 2019 a las 11:50:45AM +0200, Marco Ippolito escribió:
> I installed PostgreSQL-11 in Ubuntu 18.04.02 Server Edition using package
> manager: sudo apt-get install postgresql-11. But now I'm not able to call
> psql:
>
> (base) marco@pc:~$ sudo su -l postgres
> [sudo] password for marco:
> No directory, logging in with HOME=/
> postgres@pc:/$ psql
> Warning: No existing local cluster is suitable as a default target.
> Please
> see man pg_wrapper(1) how to specify one.
> Error: You must install at least one postgresql-client-<version> package
> postgres@pc:/$
>
> I tried to specify the port to use but it asks for a postgresql-client:
>
> (base) marco@pc:~$ sudo -u postgres /usr/bin/psql -p 5432
> Error: You must install at least one postgresql-client-<version> package
>
> But the latest postgresql-client is already installed:
>
> (base) marco@pc:~$ sudo apt-get install postgresql-client-11
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> postgresql-client-11 is already the newest version (11.5-1.pgdg18.04+1).
> 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
>
> How to solve the problem? Looking forward to your kind help.
> Marco
Have you setup and started any PG cluster? See
https://www.postgresql.org/docs/11/runtime.html
(chapter 18. Server Setup and Operation).
matthias
--
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: guru@unixarea.de
Subject: Re: Installed PostgreSQL-11 in Ubuntu 18.04.02 Server Edition: No existing local cluster is suitable as a default target
In-Reply-To: <20190918100336.GA79895@sh4-5.1blu.de>
References: <CAFegzBQ2LxM9SAV17dFpEMF+wgZzOXk80HkAPJhvz+DtFY+9Qg@mail.gmail.com> <20190918100336.GA79895@sh4-5.1blu.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox