Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mflJf-0002dY-Hk for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 15:58:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mflJe-0007Q3-Ex for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 15:58:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mflJc-0007Pu-Ny for pgsql-general@lists.postgresql.org; Wed, 27 Oct 2021 15:58:14 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mflJZ-0007HE-SN for pgsql-general@lists.postgresql.org; Wed, 27 Oct 2021 15:58:11 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6D6A65C01BC; Wed, 27 Oct 2021 11:58:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 27 Oct 2021 11:58:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=f QOHjVZcv+dLvWrD4ya9lbtMqq8jQnYwXuggtairDMA=; b=CYYgpZmo02BekaLGl cLTm7kEEoiV9A06EqcmH+KdkuTpg0yIpmYRyd8IqOmWdB63zBomeu6OQEwQh2yJT o1sBz/2uMJ9j7aJ7R9TH/W4gfG4s52bhhNfFyQarHST2s4rDH0G8m84GSYINqq8C tqLzWT6QHJwDQByVk217QCz6DRov3K1phvDeBKqH5HY5SI67S2w6piZ5c2ika0Yq wvP+fA0re6le2STA9xqOmtSJ/iP7Uv36y8NwCr2PBjsVnBfS++kW2u1pebCg2Jmr xhjK5VhO87iQEliz2TNqLAXfKJsA6vD4CRXjxdSNauvA8bppj4sf4Nncy/9Xso9N G0SyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=fQOHjVZcv+dLvWrD4ya9lbtMqq8jQnYwXuggtairD MA=; b=hJNr0hNzpgZgtE17FC1Jkpn5RM0BpZtP0Og5y9vWNvXiTmY25ObNWrefO X6W/FBw5tO7Zn862WL7IUzrIK0dZV/uOfe84aqZawRf+8U8V56agdvoqp+cx7aA4 pTZcO8KPStADv/za8vn7QagFvieD7Rajzj1ftrCesyUNzdJ6suJ7qHhlUpdVtrsT q7D2OFbd64Wwz/N/nrkSIF37bJxPctfsRJgfHl3u3B9tP1j84ivXzNCqjHhfb9en KWWHleB21fUtrXhYeGJoikbhm5VDgK0oKS4RLrdb58E1jRJVYUq1z/kvcgQxDqc2 PfXkVFxBhQfEnSzBGxzu+9KAKJu/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdegtddgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpedugfeuleegveffhfegleejhefhtedtgeeileeggfeh fefffeevgeejtdeutefftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Oct 2021 11:58:07 -0400 (EDT) Message-ID: Date: Wed, 27 Oct 2021 08:58:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13] Content-Language: en-US To: =?UTF-8?B?SsOpcsOpbXkgR2FybmlhdXg=?= , pgsql-general@lists.postgresql.org References: <9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr> From: Adrian Klaver In-Reply-To: <9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/27/21 08:51, Jérémy Garniaux wrote: > Hi, > > After experiencing issues related to the existence of two different > PostgreSQL versions installed on the same machine, I decided to do a > "remove --purge postgresql*" and reinstall postgresql-13. Now the output > of "psql --version" is "psql (PostgreSQL) 13.4 (Ubuntu 13.4-1)". > However, trying to enter psql, I have this error: > > psql: error: could not connect to server: Aucun fichier ou dossier de ce > type >     Is the server running locally and accepting >     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? > > I assume this has been asked many times, but I tried different solutions > proposed on similar posts and none solved my issue. Same response as to your SO question: What is the output of pg_lsclusters? > > Thanks, > > Best regards > > Jeremy > > > -- Adrian Klaver adrian.klaver@aklaver.com