我正在尝试用下面的方法在ubuntu 18.04版本上安装postgresql-13-postgis-3包。我尝试了下面的方法,
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.有没有人能给我提个建议,如何在ubuntu18.04中安装postGIS?任何帮助都将受到高度的感谢。
发布于 2021-11-12 13:48:07
缺少的依赖项在universe中可用
sudo add-apt-repository universe
sudo apt update
sudo apt install libgdal20 https://stackoverflow.com/questions/69943541
复制相似问题