我正在尝试使用以下命令在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
答案 0 :(得分:1)
刚刚解决了。问题出在我的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