[Ubuntu] PostGIS3 conflicts with GDAL

Brent Wood pcreso at yahoo.com
Mon Apr 6 14:00:33 PDT 2020


 I just ran into this dependency problem when building a Bionic system with QGIS, mapserver & Postgis. None of the ubuntugis-unstable Postgres/Postgis combinations I tried would install, with a broken gdal-data dependency. GDAL3.x was installed, Postgis requires 2.x

I got everything installed that I need  to install and work by disabling the ubuntugis-unstable repo & using the ubuntugis-stable one instead. (latest versions are not critical - just the basic functionality - this is for a temporary workstation at home during the COVID-19 lockdown in New Zealand)
Cheers...

Brent
    On Tuesday, April 7, 2020, 2:29:46 AM GMT+12, Sebastiaan Couwenberg <sebastic at xs4all.nl> wrote:  
 
 On 4/6/20 3:50 PM, Jakob Miksch wrote:
> Just to make sure that I understand correctly:
> Ubuntu 18.04 with ubuntugis-unstable should only work safely with
> PostgreSQL 10. It is rather incompatible with PostgreSQL 12.
> 
> Is that right?

Not entirely.

The postgis package for bionic in ubuntugis-unstable is only built
with/for postgresql-10 in bionic, hence its postgresql-10-postgis-3
binary package only works with postgresql-10.

pgapt builds its postgis package for bionic with several postgresql
versions, but it uses the gdal version (and its dependencies) from
bionic which are older version than those in ubuntugis-unstable.

gdal-data from ubuntugis-unstable is incompatible with gdal from bionic
itself as it has been updated to work with PROJ 6.

Hence you need to choose to use packages that have been built with the
gdal (and related packages) from bionic itself (like those in pgapt), or
those that have been built with the version in ubuntugis-unstable (which
only builds for the postgresql version in bionic).

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
_______________________________________________
UbuntuGIS mailing list
Ubuntu at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/ubuntu/attachments/20200406/e46ce148/attachment.html>


More information about the Ubuntu mailing list