gpt4 book ai didi

postgresql-13-postgis-3 : Depends: libgdal20 (>= 2. 0.1) 但它不会被安装

转载 作者:行者123 更新时间:2023-12-04 18:48:25 29 4
gpt4 key购买 nike

我正在尝试安装 postgresql-13-postgis-3在 ubuntu 18.04 上使用以下方法打包版本。我试过以下方法,

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update -y; sudo apt install -y postgresql-13 postgresql-13-postgis-3 postgresql-13-postgis-3-scripts postgresql-13 postgresql-client-13
但我收到以下错误,

postgresql-client-13 is already the newest version (13.5-1.pgdg18.04+1).
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-13-postgis-3 : Depends: libgdal20 (>= 2.0.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
谁能向我建议,如何在 ubuntu 18.04 中安装 postGIS?任何帮助将不胜感激。

最佳答案

缺少的依赖项在 universe 中可用:

sudo add-apt-repository universe
sudo apt update
sudo apt install libgdal20

关于postgresql-13-postgis-3 : Depends: libgdal20 (>= 2. 0.1) 但它不会被安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69943541/

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