postgresql - Debian 包 postgresql-9.3-postgis-2.1 突然停止安装

标签 postgresql debian postgis

<分区>

一夜之间,postgresql-9.3-postgis-2.1 包停止在 Debian 7.6 上成功安装。我在网上看到的不多,而且 postgresql IRC 似乎没有意识到这个问题。

我收到的错误:

root@debian:/home/vagrant# apt-get install postgresql-9.3-postgis-2.1
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.3-postgis-2.1 : Depends: liblwgeom-2.1.4 (>= 2.1.2) but it is not going to be installed
                          Recommends: postgis but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

安装步骤:

echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" >> /etc/apt/sources.list
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
apt-get update -y
apt-get install -y postgresql-9.3-postgis-2.1

还有其他人遇到此错误吗?看起来 liblwgeom 今天早上更新了。

最佳答案

通过这样做,我能够解决我的 debian wheezy 上的问题:

sh -c 'echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list'
apt-get update
apt-get install libjson-c2
apt-get install liblwgeom-2.1.4
apt-get install -y postgresql-9.3-postgis-2.1

关于postgresql - Debian 包 postgresql-9.3-postgis-2.1 突然停止安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26148709/

相关文章:

sql - WHERE 和 AND 子句不返回值

postgresql - 为什么我的 COMMIT 在 SELECT-only 事务之后使用 PostgreSQL 变慢?

java - 使用 SQL (Postgres) 触发表锁的 native 查询

php - 在 Debian 服务器上安装 php 7.4 的 redis 扩展

postgresql - 过滤函数返回的数据

postgresql - 在 postgresql 中对 array_agg 进行子选择

linux - Debian - GIT 从 1.5 升级到 1.7

linux - smbclient linux/os x nt_status_pipe_broken

postgresql - 从 postgresql osm db 中的 planet_osm_polygon.way 获取经纬度

postgis - 在变更集验证之前在哪里以及如何包装参数?