Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWMow-0006cc-I2 for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 18 Feb 2016 11:32:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWMow-0006b7-1j for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 18 Feb 2016 11:32:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWMor-0006X3-RT for pgsql-pkg-debian@postgresql.org; Thu, 18 Feb 2016 11:32:25 +0000 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWMok-0003jH-Pg for pgsql-pkg-debian@postgresql.org; Thu, 18 Feb 2016 11:32:24 +0000 Received: from mfilter33-d.gandi.net (mfilter33-d.gandi.net [217.70.178.164]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id ABADBC5A72 for ; Thu, 18 Feb 2016 12:32:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter33-d.gandi.net Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter33-d.gandi.net (mfilter33-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id Hr1D55cui7xb for ; Thu, 18 Feb 2016 12:32:14 +0100 (CET) X-Originating-IP: 82.233.19.59 Received: from [192.168.1.143] (jou95-1-82-233-19-59.fbx.proxad.net [82.233.19.59]) (Authenticated sender: dev@ljouanneau.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 59761C5A2D for ; Thu, 18 Feb 2016 12:32:14 +0100 (CET) To: pgsql-pkg-debian@postgresql.org From: laurent Subject: Dependency issue with postgresql-9.3-postgis-2.1 package, postgis does not work anymore Message-ID: <56C5ABBE.5060707@ljouanneau.com> Date: Thu, 18 Feb 2016 12:32:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Hi, I'm using packages from apt.postgresql.org. My OS: ubuntu 14.04. On a new machine, I installed postgresql-9.3-postgis-2.1, and postgis doesn't work any more. Package version are: postgresql-9.3-postgis-2.1: 2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1 postgresql-9.3-postgis-scripts: 2.2.1+dfsg-2.pgdg14.04+1 On other machines, installed versions are: postgresql-9.3-postgis-2.1: 2.1.5+dfsg-1~exp2~90.git884bcd4.pgdg14.04+1 postgresql-9.3-postgis-scripts: 2.1.5+dfsg-1~exp2~90.git884bcd4.pgdg14.04+1 And it works well. The issue : $ psql -d test -c "CREATE EXTENSION postgis" ERROR: cannot access to « $libdir/postgis-2.2 » : No such file or directory In fact, postgresql-9.3-postgis-scripts contains scripts for Postgis *2.2* (/usr/share/postgresql/9.3/contrib/postgis-2.2) whereas scripts for Postgis *2.1* are expected. older version of postgresql-9.3-postgis-scripts contained scripts for Postgis *2.1*. So a simple apt-get update && apt-get upgrade on machines having this old version break postgis :-/ postgresql-9.3-postgis-2.1 should not have dependency to postgresql-9.3-postgis-scripts but to an other package which should contains /usr/share/postgresql/9.3/contrib/postgis-2.1. A solution for me is to upgrade to postgresql-9.3-postgis-2.2 but this is tricky on production machines... Laurent -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian