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 1jrNVU-00019n-IK for pgsql-general@arkaria.postgresql.org; Fri, 03 Jul 2020 15:21:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jrNVT-0000V7-H1 for pgsql-general@arkaria.postgresql.org; Fri, 03 Jul 2020 15:21:39 +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 1jrNVS-0000V0-Gg for pgsql-general@lists.postgresql.org; Fri, 03 Jul 2020 15:21:39 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrNVL-0003fG-Rq for pgsql-general@lists.postgresql.org; Fri, 03 Jul 2020 15:21:37 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 44E562E2; Fri, 3 Jul 2020 11:21:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 03 Jul 2020 11:21:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=o yNkngvkm8tdqxWNZV4apr5xymDLVebabMUITS+Ihcg=; b=ehSWaNtEVEuADPBwa 78pbhN8lP0fstpcLb6H1HcUwuvsWDGjYdDGz9pqDLwp2qT8NUfWLf8XI7odewPaB FGO6433Zl/MKOiObqhsQZ2Q2lco7EBBokLevqiGTxAnpvn6rNZxu7Dre1haUAMk6 /Fwcf/bR6LIFwzAPwJ4I+S2+dzYhxgm8KaSdUU0+WQpsJzXFWMX1JUQslgMSi1cs MW9sChAJlqjcZNX/T6qJdh7wJ5KbvY5ma6UAloAfyyFIVLr1Wzg+bbSEBB224dN9 gLny68zivBPfs/hzVAKoKLI9NN1nJyGNzy4fBYghMuSwfW9IxOcRqv8sqCNBCzuI EF5Og== 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=fm3; bh=oyNkngvkm8tdqxWNZV4apr5xymDLVebabMUITS+Ih cg=; b=B/ZsVmOi4Y0VpD7XOKOWxpFlwHM1jnRVmAe0taaLGTZpQ4Q8FcYC1JRPe n1l2jkEC2dxWfTe0zQEWABC6PKJTc1C00kYEhUW66Lw0Co5BvYx6ZDeZaI1nsaPM RT4OIeCstvBxJwxgJUrtyOyiea2YgSkbA7Ke/6KGB2Rh0Z4JGzfvGvZJTFMnnaRw 8v90e1hxC5ZYsnrUFAhBvN79UbqtF50Ruo8TOnJzM2CLM1HWg8OsWiAYTuUBWnuf 0XTZmplEoS3sQlMeW3ZP3Rv8WfuTVuesCZacvfYsmfV8/JIJ5H7HRK+cIftS3M1p ZEPic/jb4tpavw6xpqKvUDT+WBdcw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtdeigdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeelnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnheptedtvdetteehueeihfejheevtedvuddtgfevvefgiedv feevtdffgfelvddtvedunecuffhomhgrihhnpehhthhtphgtlhhivghnthdrphihnecukf hppeejhedrudejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id C946D3060066; Fri, 3 Jul 2020 11:21:28 -0400 (EDT) Subject: Re: Unable to run psql on 9.5 after broken 12 remove To: Moreno Andreo , pgsql-general@lists.postgresql.org References: <1c06a811-15e4-aca7-7a2a-6f80b662954c@evolu-s.it> <116c3181-0599-52ba-cd78-4ffa9df5ede2@evolu-s.it> <63353cb5-f9c3-4c54-6416-ff667744da15@aklaver.com> <7557a9ec-f360-b10e-93cb-401acb635ec8@evolu-s.it> From: Adrian Klaver Message-ID: <72e461f5-b12a-aba5-8113-4773e9342d01@aklaver.com> Date: Fri, 3 Jul 2020 08:21:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <7557a9ec-f360-b10e-93cb-401acb635ec8@evolu-s.it> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/3/20 8:15 AM, Moreno Andreo wrote: > Il 03/07/2020 16:51, Adrian Klaver ha scritto: >> On 7/3/20 1:54 AM, Moreno Andreo wrote: >> >> Looks like the cluster was not removed from the pgcommon setup. This >> would explain why you can't run psql. By default pgcommon looks for >> the version of psql connected with the most recent version of Postgres >> it knows about, in this case 12. Unfortunately that binary no longer >> exists. You still have psql. Do: >> >> /usr/lib/postgresql/9.5/bin/psql --help > OK, it confirms that 9.5 client is still ok >> >> To avoid having to do that try: >> >> sudo pg_dropcluster  12 main > This reported a warning Yeah, I'm guessing the original uninstall clean up process went off the rails here: " Processing triggers for postgresql-common (215.pgdg80+1) ... Building PostgreSQL dictionaries from installed myspell/hunspell packages... Removing obsolete dictionary files: Setting up python3.4 (3.4.2-1+deb8u3) ... File "/usr/lib/python3.4/http/client.py", line 1014 raise InvalidURL(f"URL can't contain control characters. {url!r} " ^ SyntaxError: invalid syntax dpkg: error processing package python3.4 (--configure): " The below just finished what the above started. > > root@datastore-1:/home/user# pg_dropcluster 12 main > Warning: corrupted cluster: data directory does not exist > > ... but it did its job > > root@datastore-1:/home/user# sudo -u postgres psql > psql (9.5.6) > Type "help" for help. > > postgres=# \q > > > Thanks, you saved my day again! > > Moreno. > >> >>> >>> -- Adrian Klaver adrian.klaver@aklaver.com