【发布时间】:2020-02-16 18:04:39
【问题描述】:
在 Ubuntu Xenial (16.04) 2.5.3 版本之后安装postgresql-10-postgis-2.5 时存在一些依赖问题(几天前发布到 PostgreSQL Apt Repo)。原因是现在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) 上使用 apt 安装 libgeos-c1v5 >= 3.7.0 或安装 postgresql-10-postgis-2.5 2.5.2?
在 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.
【问题讨论】:
标签: postgresql ubuntu ubuntu-16.04 postgis postgis-installation