2014-10-01 75 views
1

在一夜之間,postgresql-9.3-postgis-2.1軟件包停止在Debian 7.6上成功安裝。我在網上看不到太多,而postgresql IRC似乎沒有意識到這個問題。Debian軟件包postgresql-9.3-postgis-2.1突然停止安裝

錯誤我收到:

[email protected]:/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今天早上更新了。

回答

3

我能夠闖過這個問題上我的Debian喘息通過這樣做:一般

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 
+0

這對我有用。 – 2014-10-02 16:22:58

2

,如果你有apt.postgresql.org問題,請使用郵件列表的pgsql-章pkg- [email protected]

我們現在正在用禁用backports重新構建postgis。

+0

我確實寫過郵件列表,今天早上收到了馬庫斯的一封非常好的郵件。他重申了上述LR1234567給出的同樣答案。 – 2014-10-02 16:25:56