Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAWoK-0002sz-I9 for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 10:03:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAWoJ-0001ov-B4 for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 10:03:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAWoJ-0001oj-0a for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 10:03:43 +0000 Received: from smh-06.1blu.de ([178.254.0.206]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAWoG-0000tf-EC for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 10:03:42 +0000 Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1iAWoC-0007vS-M3 for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 12:03:37 +0200 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.86_2) (envelope-from ) id 1iAWoC-000L7B-KU for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 12:03:36 +0200 Date: Wed, 18 Sep 2019 12:03:36 +0200 From: Matthias Apitz 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 Message-ID: <20190918100336.GA79895@sh4-5.1blu.de> Reply-To: Matthias Apitz References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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- 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- 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!