Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 18932  / 2 Years ago, thu, january 20, 2022, 5:32:10

I'm trying to install GDAL and GDAL development libraries on Ubuntu 20.04 with the following commands (source: https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html):


sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal-bin
ogrinfo --version

GDAL installs successfully and it returns:


GDAL 3.0.4, released 2020/01/28

After that, I tried installing GDAL development libraries:


sudo apt-get install libgdal-dev

It returns the following error:


Reading 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:
libgdal-dev : Depends: libpq-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

What is the problem here?
I read somewhere that "UbuntuGIS stable ppa (launchpad.net/~ubuntugis/+archive/ubuntu/ppa) does not have any 20.04 packages."
Is there a workaround for this? Everything works if I try it on Ubuntu 18.04.


More From » apt

 Answers
0

You don't need to add apt repository for ubuntu 20.04. Just do:



  1. sudo apt update.

  2. sudo apt install libpq-dev gdal-bin libgdal-dev


[#2833] Thursday, January 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ticeate

Total Points: 497
Total Questions: 128
Total Answers: 112

Location: Samoa
Member since Fri, Nov 27, 2020
4 Years ago
;