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

时间:2014-10-01 19:05:16

标签: 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今天早上更新了。

2 个答案:

答案 0 :(得分:3)

我能够通过这样做来解决我的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

答案 1 :(得分:2)

通常,如果您遇到apt.postgresql.org问题,请使用邮件列表:pgsql-pkg-debian@postgresql.org

我们现在正在重新启动postgis,并禁用后退。