为了自动部署包含Postgresql 9.2和PostGIS 2.x的Ubuntu 12.04服务器(使用Puppet),我最终安装了PostgreSQL 9.1和9.2,并且他们的服务都在端口5432和5433上启动。
为什么即使我只安装了postgresql-9.2
,也会发生这种情况?如何解决问题?
安装程序
apt-get install postgresql-9.2 postgresql-server-dev-9.2 postgresql-client-9.2 postgresql-contrib-9.2 postgis
apt-get install libxml2-dev, libjson0-dev, xsltproc, docbook-xsl, docbook-mathml, gettext, libgeos-3.2.2, libgeos-c1, libgeos-dev, proj, geos, pg_top
repo:
ppa:pitti/postgresql
ppa:ubuntugis/ubuntugis-unstable
apt-cache show postgis
Package: postgis
Priority: optional
Section: misc
Installed-Size: 2917
Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Architecture: amd64
Version: 2.0.1-2~precise3
Depends: libc6 (>= 2.14), libgdal1 (>= 1.9.0), libgeos-c1 (>= 3.3.3), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.14.0), libpq5, postgresql-9.1-postgis
Filename: pool/main/p/postgis/postgis_2.0.1-2~precise3_amd64.deb
Size: 889350
MD5sum: 243ef9b2668417391a4d911024b43260
SHA1: 3588bca6e15f6bbb6e2c478d33da424a1fc8da77
Description-en: Geographic objects support for PostgreSQL -- common files
PostGIS adds support for geographic objects to the PostgreSQL object-relational
database. In effect, PostGIS "spatially enables" the PostgreSQL server,
allowing it to be used as a backend spatial database for geographic information
systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS
follows the OpenGIS "Simple Features Specification for SQL".
.
This package contains the PostGIS userland binaries, common files and
documentation.
apt-cache政策
postgis:
Installed: 2.0.1-2~precise3
Candidate: 2.0.1-2~precise3
Version table:
*** 2.0.1-2~precise3 0
500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
1.5.3-2 0
500 http://ubuntu.bhs.mirrors.ovh.net/ubuntu/ precise/universe amd64 Packages