1

我正在尝试postgresql-13-postgis-3在 ubuntu18.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?任何帮助将不胜感激。

4

1 回答 1

0

缺少的依赖项可用于universe

sudo add-apt-repository universe
sudo apt update
sudo apt install libgdal20 
于 2021-11-12T13:48:07.337 回答