Ubuntu 15.10 服务器上的 Postgis 安装出现依赖项错误

Postgis installation on Ubuntu 15.10 server gives dependencies error

我正在尝试使用以下命令在 Ubuntu 服务器 15.10 上安装 postgis

sudo apt-get install postgresql-9.5-postgis-2.2

但我收到以下错误:

The following packages have unmet dependencies:
postgresql-9.5-postgis-2.2 : Depends: libgdal1h (>= 1.9.0) but it is not installable

刚刚解决了。问题出在我的 sources.list 文件上。它缺少正确的 postgresql 存储库。我编辑了源文件:

sudo gedit /etc/apt/sources.list

那里我不得不改线:

deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main

至:

deb http://apt.postgresql.org/pub/repos/apt wily-pgdg main