2
我想更多PostgreSQL 9.6安装了PostGIS 2.3 Ubuntu的xenial 16.04有:在Ubuntu 16.04安装了PostGIS Xenial
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main" >> /etc/apt/sources.list'
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
然后安装了PostGIS:
sudo apt-get install postgresql-9.6-postgis-2.3
但这返回:
The following packages have unmet dependencies:
postgis : Depends: libgdal1h (>= 1.9.0) but it is not installable
Depends: libgeos-c1 (>= 3.4.2) but it is not installable
Depends: liblwgeom-2.3-0 (>= 2.0.0) but it is not going to be installed
是的时候,而不是尼亚尔 - pgdg信赖-pgdg的,我也遇到了一些类似这样的矛盾升级时,不得不卸载一些其他的东西来得到这个工作。请尝试'sudo aptitude install'而不是'apt-get install',它可以给你更多的选择。我选择卸载一些东西并放入postgis中。 – e4c5
我使用'aptitude'获得了相同的结果,您能更具体地了解您的方法吗? – API
能力向你展示了冲突是什么,并问你如何处理它们。 – e4c5