gpt4 book ai didi

postgresql - 在 Ubuntu 16.04 Xenial 上安装 PostGIS

转载 作者:行者123 更新时间:2023-11-29 11:51:34 26 4
gpt4 key购买 nike

我想在 Ubuntu xenial 16.04 上安装 PostGIS 2.3 和 PostgreSQL 9.6:

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main" >> /etc/apt/sources.list'
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

然后安装postgis:

sudo apt-get install postgresql-9.6-postgis-2.3

但这会返回:

The following packages have unmet dependencies:

postgis : Depends: libgdal1h (>= 1.9.0) but it is not installable
Depends: libgeos-c1 (>= 3.4.2) but it is not installable
Depends: liblwgeom-2.3-0 (>= 2.0.0) but it is not going to be installed

最佳答案

我知道要晚一点但是对于那些遇到这个问题的人,试试使用 16.04 时设置 xenial-pgdg 而不是 trusty-pgdg

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt xenial-pgdg main" >> /etc/apt/sources.list' 
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

关于postgresql - 在 Ubuntu 16.04 Xenial 上安装 PostGIS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41242173/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com