Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thEjH-000IW3-39 for pgsql-general@arkaria.postgresql.org; Sun, 09 Feb 2025 21:20:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1thEjF-00GsiR-Ql for pgsql-general@arkaria.postgresql.org; Sun, 09 Feb 2025 21:20:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thEjF-00GsiJ-Fg for pgsql-general@lists.postgresql.org; Sun, 09 Feb 2025 21:20:37 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1thEjD-004DJE-17 for pgsql-general@lists.postgresql.org; Sun, 09 Feb 2025 21:20:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 519LKZ4F2057124; Sun, 9 Feb 2025 16:20:35 -0500 From: Tom Lane To: =?UTF-8?B?Q2loYXQgS8O8w6fDvGtiYcSfcsSxYcOnxLFr?= cc: pgsql-general@lists.postgresql.org Subject: Re: Passwordcheck Extension Not Installing In-reply-to: References: Comments: In-reply-to =?UTF-8?B?Q2loYXQgS8O8w6fDvGtiYcSfcsSxYcOnxLFr?= message dated "Sat, 08 Feb 2025 22:28:44 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2057122.1739136035.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 09 Feb 2025 16:20:35 -0500 Message-ID: <2057123.1739136035@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?UTF-8?B?Q2loYXQgS8O8w6fDvGtiYcSfcsSxYcOnxLFr?=3D writes: > I have a PostgreSQL 17.2 database running on Ubuntu 22.04. I'm trying to > install the passwordcheck extension, but I keep getting a "file not foun= d" > error. > postgres=3D# create extension passwordcheck; > ERROR: extension "passwordcheck" is not available > DETAIL: Could not open extension control file > "/usr/share/postgresql/17/extension/passwordcheck.control": No such file= or > directory. > HINT: The extension must first be installed on the system where Postgre= SQL > is running. > Even though I have installed the postgresql-contrib packages, I still > cannot see the extension. Below, I have listed the steps I followed. Cou= ld > you help me with this issue? Are any of the usual extensions present in that directory, or is it just passwordcheck that's missing? The most obvious bet is that you installed a postgresql-contrib package that is not really compatible with the server package you're using and it put all the extension files somewhere else than where the server expects to find them. Try checking the file listing for the postgresql-contrib package you used. regards, tom lane