0

I've been trying to install several extensions on my newly installed GRASS GIS 7.2 (installed following instructions here), amongst them "i.fusion.hpf". The extension doesn't seem to matter as the problem is the same for everyone of them. So when I run g.extension, and try to add an extension, I get the message

ERROR: Please install GRASS development package

On g.extension's manual I read that this error meant I had to install the "grass-dev" package. I tried to do so but when I do it in the terminal, I get dependencies error messages... (google-translated from french)

~$ sudo apt install grass-dev
    Reading package lists ... Done
    Building the dependency tree
    Reading status information ...
    Some packages can not be installed. This can mean
    that you asked for the impossible, or, if you use
    the unstable distribution, that some packages have not yet
    been created or did not come out of entering.
    The following information will help you resolve the situation:


    Following packages contain unsatisfied dependencies:
    grass-dev: depends: libgdal-dev but won't be installed
               depends: libpq-dev but won't be installed
    E: impossible to fix problems, defective packages are in "keep as is" mode.

Here's what happens when I try to install libgdal-dev and libpq-dev:

$ sudo apt installs libgdal-dev libpq-dev
Reading package lists ... Done
Building the dependency tree
Reading status information ...
Some packages can not be installed. This can mean
that you asked for the impossible, or, if you use
the unstable distribution, that some packages have not yet
been created or did not come out of entering.
The following information will help you resolve the situation:

The following packages of unmet dependencies:
libpq-dev: Depends: libpq5 (= 9.5.8-0ubuntu0.16.04.1) but 9.5.9-0ubuntu0.16.04 must be installed
E: Unable to fix problems, packages are in "keep as is" mode.

I tried sudo apt install libpq5 but it's already installed.... strange. And sudo apt install -f didn't work out as well....

I tried uninstalling and reinstalling GRASS GIS but nothing changed... except now QGIS is uninstalled (so I reinstalled it, seems to work fine). I tried changing ppa. I went from ppa:ubuntugis/ubuntugis-unstable to ppa:grass/grass-stable and then downgraded to GRASS 7.0. Problem was even worse as I couldn't even access the add-ons database! Now I'm back on 7.2.

Starting to think it's because the packages are in development, somehow? Could the developers be updating them and thus they are inaccessible? I don't really know how that works to be honest... Also on g.extension's manial/troubleshooting, it says:

Since extensions have to be compiled on Unix based systems (Linux, Mac OSX etc.) unless a Python extension is installed, a full compiler environment must be present on the user's computer.

Does that mean I can install some Python extension? I'm really not sure what this means.

closed as off-topic by aldo_tapia, whyzar, HDunn, BERA, lynxlynxlynx Nov 16 '17 at 14:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions relating to general IT or with no clear GIS component, are off-topic here but can be researched/asked at Stack Overflow (software development), Super User (computing hardware and software), Database Administrators (relational databases) and other SE sites" – aldo_tapia, whyzar, HDunn, BERA, lynxlynxlynx
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Why off-topic? The question is quite clear. – markusN Nov 16 '17 at 21:39
2

So, I stumbled upon this thread and I managed to install grass-dev with sudo aptitude install grass-dev.

Not really sure what the aptitude command does but it worked! I had to go through multiple options as to which solution I wanted to apply for the missing dependencies, and I chose one that installed libgdal-dev and libpq-dev. Libpq5 and other packages were downgraded. For what purpose I dont' know, but hey it works now :-D

  • Please consider to accept your answer. Glad you found the way to solve it. – markusN Nov 16 '17 at 21:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.