1

I'n not an experienced user of Linux. But I just wanted to install the latest version of GRASS GIS and QGIS on Ubuntu 18.04. There are many different ways to do this I guess. There are the ppa's, there are the normal qgis-repositories for ubuntu and than there is also ubuntugis. It's all a little bit overwhelming and in the process of installing QGIS I think I messed some things up.

When I run sudo nano /etc/apt/sources.list I added these two repositories:

deb http://qgis.org/ubuntu bionic main
deb-src http://qgis.org/ubuntu bionic main

Then I do all the steps provided here:

https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

But when I run sudo apt install qgis I get:

The following packages have unmet dependencies:
 qgis : Depends: gdal-abi-2-2-3 but it is not installable
        Depends: libqgis-analysis3.10.2 but it is not going to be installed
        Depends: libqgis-app3.10.2 but it is not going to be installed
        Depends: libqgis-core3.10.2 but it is not going to be installed
        Depends: libqgis-gui3.10.2 but it is not going to be installed
        Depends: python3-qgis (= 1:3.10.2+28bionic) but it is not going to be installed
        Depends: qgis-providers (= 1:3.10.2+28bionic) but it is not going to be installed
        Recommends: qgis-plugin-grass but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I don't know if this has anything to do with the one time I tried to add the ppa. When I run ls /etc/apt/sources.list.d/, I get:

...
ubuntugis-ubuntu-ppa-bionic.list
ubuntugis-ubuntu-ppa-bionic.list.save
ubuntugis-ubuntu-ubuntugis-unstable-bionic.list
ubuntugis-ubuntu-ubuntugis-unstable-bionic.list.save

I just wanted to have the newest version of QGIS and GRASS (due to Python3) and now I don't know how to get back. Does anyone have a pointer?

  • you might find help on the mailing list as well lists.osgeo.org/mailman/listinfo/qgis-user – Jakob Miksch Feb 12 at 11:04
  • maybe it helps, I have these lines for Ubuntu 18.04: (for the nightly version though) # QGIS Nightly deb https://qgis.org/ubuntugis-nightly bionic main deb-src https://qgis.org/ubuntugis-nightly bionic main # UbuntuGIS unstable deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu bionic main deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu bionic main – Jakob Miksch Feb 12 at 11:43
3

You have to decide if you want to go the ubuntugis way, or not.

If you don't want ubuntugis, comment out all references to that ppa. You will get GDAL 2.2.3, GRASS 7.4 and QGIS 3.10.2

If you take ubuntugis, you get GDAL 3.0.2, GRASS 7.8 and QGIS 3.10.2.

The error message Depends: gdal-abi-2-2-3 but it is not installable indicates that you request or have a wrong GDAL version. Maybe you already have a newer one from ubuntugis, which blocks the non-ubuntugis QGIS package.

And the final commannd line should be:

sudo apt-get update
sudo apt-get install qgis qgis-plugin-grass python3-qgis
| improve this answer | |
  • Thank you very much!! I'm really new to work on Linux. If I don't want to work with ubuntugis, what other option do I have? Use directly the qgis-repositories? I somehow managed to install qgis. But it's just 3.4... I'd love to get a "clean" setup, but don't know where to start:/ – Robin Kohrs Feb 12 at 17:39
  • Remove the lines referring to ubuntugis, and all packages you got from there. Especially gdal. Try apt-cache policy libgdal* to see what you have and what you can get. – AndreJ Feb 12 at 19:13
1

I would edit and comment out (add # at the start of the line) all of the ubuntugis and ubuntugis-unstable lines in those files in /etc/apt/sources.lists.d/*.

As far as I can tell I have only the following repositories:

deb https://qgis.org/ubuntu bionic main # disabled on upgrade to bionic
deb-src https://qgis.org/ubuntu bionic main # disabled on upgrade to bionic
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main

and since I'm running bionic I'm pretty sure the xenial one is not used (it doesn't show up when I run an apt update). I'm currently running QGis 3.10.2 with no issues.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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