安装postgresql-9.6-postgis-2.4时出错(未满足的依赖项)

时间:2018-01-04 01:31:33

标签: postgresql linuxmint

当我尝试安装postgresql-9.6-postgis-2.4时,我收到如下错误消息:

$ sudo apt-get install postgresql-9.6-postgis-2.4`
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
postgresql-9.6-postgis-2.4 : Depends: libgdal1h (>= 1.9.0) but it is not going to be installed
                          Depends: libgeos-c1 (>= 3.4.2) but it is not going to be installed
                          Depends: liblwgeom-2.4-0 (>= 2.4.0~rc1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.`

是怎么回事?有人请帮帮我:?

非常感谢。

1 个答案:

答案 0 :(得分:0)

这有已解决。这是我的解决方案

  1. 首先这是我的错,当我安装postgresql-9.6使用xenial发行版但是当我尝试安装postgresql-9.6-postgis-2.4时我使用可靠的发行版。

  2. 我尝试重新安装相同的发行版,使用可靠的发行版。

  3. 如果您使用存储库,请不要忘记在$("td").each(function(){var n=$(this).html();(n.indexOf("root@")>-1||n.indexOf("anna@")>-1)&&$(this).next().children("input[class*='st13'][value='13'][type='radio']").prop("checked",!0)}); 上编辑source.list

  4. 我从here

  5. 找到解决方案
相关问题