在Ubuntu Xenial (16.04)上安装postgresql-10-postgis-2.5时,在2.5.3版本(几天前发布到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 for Ubuntu Xenial (https://packages.ubuntu.com/search?keywords=libgeos-c1v5)。我可以升级到bionic (18.04LTS),但同样的问题也存在,因为它带来了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-scriptsReading 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.发布于 2019-10-21 08:48:53
当我们尝试安装postgresql-9.6-postgis-2.5时,我们在Ubuntu 18上遇到了类似的问题。我们必须安装实验版本3.7才能让它工作。
libgeos-3.7.0_3.7.0-1_bionic0_amd64 libgeos-c1v5_3.7.0-1_bionic0_amd64.deb
https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-experimental/+build/15675841
然而,我不确定你是否可以在xenial上得到这个。
希望这能帮上忙,谢谢。
更新:我们现在已经在仿生库中发布了libgeos的更新版本,希望更新版本也能为xenial发布,谢谢。
apt search libgeos-3.7
Sorting... Done
Full Text Search... Done
libgeos-3.7.1/bionic-pgdg 3.7.1-1~pgdg18.04+1 amd64
Geometry engine for Geographic Information Systems - C++ Library
libgeos-3.7.1-dbgsym/bionic-pgdg 3.7.1-1~pgdg18.04+1 amd64
debug symbols for libgeos-3.7.1https://stackoverflow.com/questions/58472916
复制相似问题