So, I am using Ubuntu 18.04.1 LTS and use Qgis 3.4 for GIS analysis. I had a week long pause using QGIS for about a week, and it was quite an unhappy surprise to find out this morning that the whole program had vanished from my OS! I cannot figure out anything else I could have done, but used the software update once as prompted so by the system and installing some new R-packages.
So, I tried re-installation of QGIS, and here come my old friends: dependency issues. Can anyone figure out what is going on here?
> sudo apt-get update && sudo apt-get install qgis python-qgis qgis-plugin-grass saga Hit:1 http://fi.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://fi.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:3 http://fi.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:4 https://qgis.org/debian bionic InRelease Hit:5 http://ppa.launchpad.net/albertomilone/hamster-indicator/ubuntu bionic InRelease Hit:6 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu bionic InRelease Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB] Fetched 83,2 kB in 1s (89,2 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done saga is already the newest version (2.3.1+dfsg-4~bionic0). 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: python-qgis : Depends: libqgis-analysis3.4.2 but it is not going to be installed qgis : Depends: gdal-abi-2-2-3 Depends: libqgis-analysis3.4.2 but it is not going to be installed Depends: libqgis-app3.4.2 but it is not going to be installed qgis-plugin-grass : Depends: libqgis-app3.4.2 but it is not going to be installed Depends: grass740 E: Unable to correct problems, you have held broken packages.
I tried installing the missing packages, with no luck:
> sudo apt-get install gdal-abi-2-2-3 libqgis-analysis3.4.2 libqgis- app3.4.2 grass740 Reading package lists... Done Building dependency tree Reading state information... Done Package gdal-abi-2-2-3 is a virtual package provided by: libgdal20 2.2.3+dfsg-2 [Not candidate version] Package grass740 is a virtual package provided by: grass-core 7.4.0-1 [Not candidate version] E: Package 'gdal-abi-2-2-3' has no installation candidate E: Package 'grass740' has no installation candidate
According to the advice by Heikki I switched the Debian repository to Ubuntugis. Then I removed my previous installation using:
sudo apt-get remove qgis python-qgis qgis-plugin-grass saga
Then I tried re-installation, but still get the same error. There is still the problem of libgis-analysis3.4.2, gdal-abi-2-2-3 and libgis-app3.4.2 being unmet dependencies that cannot be installed for some reason.