TransWikia.com

Installing GDAL on Ubuntu 20.04 - unmet dependencies

Geographic Information Systems Asked by Marin Leontenko on February 6, 2021

I’m trying to install GDAL on my Ubuntu 20.04 with the following commands:

sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update
sudo apt-get update
sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev

After running the last line, I get 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?

One Answer

sudo apt-get install build-essential

then proceed with the installation

Answered by BillyFranks on February 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP