Ubuntu – How to install postgresql-9.4-postgis-2.1 on Ubuntu 14.04(Trusty Tahr)

14.04aptpackage-managementsynaptic

I get the following error when trying to install postgres-9.4-postgis-2.1 on Ubuntu 14.04(Trusty Tahr):

Depends: libgdal1 (>= 1.9.0) but it is not installable

I also tried to install the package via synaptic but nothing. I have installed libgdal1-1.10.1-grass and libgdal1h but the error persisted.

Although One possible solution may be is to install the libgdal1 from saucy repo instead of downloading it from trusty, but what should I do to download it from saucy repo??

Also tell me if there is any other possible solution.Thanks!

Best Answer

You should install the meta-package gdal (and pretty much all other FOSS4G) from the ubuntugis-unstable PPA:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable 
sudo apt-get update
sudo apt-get install postgres-9.4-postgis-2.1