在 Debian 8.5 jessie 上安装 postgresql-9.5-postgis-2.2 时出错

Error with installing postgresql-9.5-postgis-2.2 on Debian 8.5 jessie

我安装了 PostgreSQL 9.5 并在 Debian 8.5 jessie 上工作。

The following packages have unmet dependencies: 
  postgresql-9.5-postgis-2.2 : Depends: libgdal1h (>= 1.9.0) but it is not going to be installed
                               Depends: liblwgeom-2.2-5 (>= 2.2.0) but it is not going to be installed
                               Depends: libsfcgal1 (>= 1.2.0) but it is not going to be installed 
  E: Unable to correct problems, you have held broken packages.

已尝试修复:

root@dbServer:~$ apt-get -f install
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我的sources.list:

deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free
deb http://ftp.de.debian.org/debian jessie main
deb http://ftp.debian.org/debian stretch main contrib non-free
deb-src http://ftp.debian.org/debian stretch main contrib non-free
deb http://apt.postgresql.org/pub/repos/apt jessie-pgdg main

有人知道我应该怎么做才能更进一步吗?谢谢

好的。如果还有人遇到问题 - 我从 /etc/apt/preferences.d/ 中删除了 testing.pref 并删除了

deb http://ftp.debian.org/debian stretch main contrib non-free
deb-src http://ftp.debian.org/debian stretch main contrib non-free\

来自 sources.list 所以所有依赖项都降级到稳定的 jessie 版本