[DebianGIS-dev] Bug#560409: postgis can't be purged if postgresql is not installed due to missing directory

Jean-Baptiste Lallement jeanbaptiste.lallement at gmail.com
Thu Dec 10 23:02:55 UTC 2009


Package: postgis
Usertags: origin-ubuntu lucid ubuntu-patch
Version: 1.3.6-2
Severity: normal
Tags: patch

This report has also been filed here: https://bugs.launchpad.net/bugs/392143

postgis can't be removed if postgresql is not installed due to missing
"/usr/lib/postgresql/8.3/lib" directory

:: VERSION ::
   postgis | 1.3.3-3 | intrepid/universe | source, amd64, i386
   postgis | 1.3.3-3 | jaunty/universe | source, amd64, i386
   postgis | 1.3.5-1 | karmic/universe | source, amd64, i386
   postgis | 1.3.6-2 | lucid/universe | source, amd64, i386

:: TEST CASE ::
Check that postgresql is not installed then
$ sudo apt-get install postgis
$ sudo apt-get remove --purge postgis

Removing postgis ...
Purging configuration files for postgis ...
find: `/usr/lib/postgresql/8.3/lib': No such file or directory
dpkg: error processing postgis (--purge):
 subprocess post-removal script returned error exit status 1

:: WORKAROUND ::
$ sudo rm /var/lib/dpkg/info/postgis.postrm
$ sudo apt-get remove --purge postgis


In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/postgis-generic.postrm.in : check if postgresql directory
exists before searching for postgis shared libs to purge (LP #392143)

We thought you might be interested in doing the same.

Thanks.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: postgis_1.3.6-2ubuntu1.debdiff
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20091211/fbcfadb7/attachment.txt>


More information about the Pkg-grass-devel mailing list