【问题标题】:Error install postgresql-9.6-postgis-2.4 (unmet dependencies)安装 postgresql-9.6-postgis-2.4 时出错(未满足的依赖项)
【发布时间】:2018-01-04 01:31:33
【问题描述】:

当我尝试安装 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.`

发生了什么事?任何人请帮助我:?

非常感谢。

【问题讨论】:

  • 请不要在问题中加入“已解决”。添加答案并接受。这是将问题标记为“已解决”的唯一方法
  • 感谢您的建议。

标签: postgresql linux-mint


【解决方案1】:

这已经解决了。这是我的解决方案

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

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

  3. 如果您使用存储库,请不要忘记在/etc/apt/sources.list.d/postgresql.list 上编辑 source.list

  4. 我从here找到解决方案

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-11-17
    • 1970-01-01
    • 1970-01-01
    • 2013-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多