postgresql-10-postgis-2.5
在 2.5.3 版本(几天前发布到 PostgreSQL Apt Repo)之后在 Ubuntu Xenial (16.04) 上安装时存在一些依赖性问题。原因是现在postgresql-10-postgis-2.5
(版本2.5.3+dfsg-2.pgdg16.04+1
)需要libgeos-c1v5 (>= 3.7.0)
但最新版本libgeos-c1v5
是3.5.0-1ubuntu2
用于 Ubuntu Xenial(https://packages.ubuntu.com/search?keywords=libgeos-c1v5)。我可以升级到仿生(18.04 LTS),但同样的问题存在,因为它带来了 3.6.2 版本。19.04
目前对我来说不是一个选择。
有没有办法使用 Ubuntu Xenial (16.04)安装libgeos-c1v5 >= 3.7.0
或安装?postgresql-10-postgis-2.5 2.5.2
apt
在 Docker 容器上本地重现它的步骤:
docker run -it ubuntu:xenial /bin/bash
apt update
apt install -y curl
echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt update
apt install postgresql-10-postgis-2.5 postgresql-10-postgis-2.5-scripts
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-10-postgis-2.5 : Depends: libgeos-c1v5 (>= 3.7.0) but 3.5.0-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.