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 1mflDh-0002LN-Lx for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 15:52:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mflDg-0001vi-GV for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 15:52:04 +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 1mflDg-0001vZ-5C for pgsql-general@lists.postgresql.org; Wed, 27 Oct 2021 15:52:04 +0000 Received: from 82-64-8-238.subs.proxad.net ([82.64.8.238] helo=mapper.nohost.me) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mflDZ-0007Ei-5J for pgsql-general@lists.postgresql.org; Wed, 27 Oct 2021 15:52:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mapper.fr; s=mail; t=1635349913; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=p26mSz7Qk082ZMA89SrQqxfkvfNOWmISYvjQ2VPAgGw=; b=Dscz01MfqdcVa7Zz4NMmB9ulydPsLleScbHYACLbdys+Gh3ZdUsqlgp+nTgZhWb7CZ3Yx1 e2FVQ8csozst5QfyNfTek0z01SbWqmhCvH9tSpWXkYe+FFWQrHK6b50X0rd7G4tcI7VBkF Pm3nFLA4Qcz7oQ2EU3llNxgJrkuF1cs= Message-ID: <9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr> Date: Wed, 27 Oct 2021 17:51:52 +0200 MIME-Version: 1.0 Content-Language: fr To: pgsql-general@lists.postgresql.org From: =?UTF-8?B?SsOpcsOpbXkgR2FybmlhdXg=?= Subject: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13] 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 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. Thanks, Best regards Jeremy