I am aware that this could be a duplicate topic but I am struggling for a several days. I upgraded QGIS from 2.8 to 2.18 and after that everything get broken. I couldn't use PostGIS extension on pgadmin3.
I figured out that there were a conflict with a libgdal1h
: if installed, it removes other libraries used by PostGIS and vice versa.
I tried several tutorial about how to install QGIS, like for example:
How do I get and install the latest version of QGIS in Ubuntu?
Install QGIS 2.14 Essen on Ubuntu 16.04 Xenial
I tried every suggestion reported on line, like for example:
https://askubuntu.com/questions/351899/qgis-quantum-gis-install-fails-unmet-dependencies
Where to find a version of libgeos-c1 compatible with libgeos-3.5.0?
QGIS install on Ubuntu 14.04 fails
Always, the reply of sudo apt-get install qgis python-qgis
is:
The following packages have unmet dependencies:
python-qgis : Depends: python-qt4-sql but it is not installable
Depends: python-qgis-common (= 1:2.14.8+20trusty-ubuntugis) but it is not going to be installed
Depends: python-psycopg2 but it is not installable
Depends: python-qscintilla2 but it is not installable
Depends: python-jinja2 but it is not installable
Depends: python-markupsafe but it is not installable
Depends: python-pygments but it is not installable
Depends: python-yaml but it is not installable
Depends: python-pyspatialite but it is not installable
Depends: libqgispython2.14.8 but it is not going to be installed
Depends: libqgis-analysis2.14.8 but it is not going to be installed
Depends: libqgis-core2.14.8 but it is not going to be installed
Depends: libqgis-gui2.14.8 but it is not going to be installed
Depends: libqgis-networkanalysis2.14.8 but it is not going to be installed
Depends: libqgis-server2.14.8 but it is not going to be installed
Recommends: liblwgeom-dev but it is not installable
qgis : Depends: gdal-abi-2-1-0 but it is not installable
Depends: libgdal20 (>= 2.0.1) but it is not installable
Depends: libgeos-c1v5 (>= 3.4.2) but it is not installable
Depends: libqgis-analysis2.14.8 but it is not going to be installed
Depends: libqgis-app2.14.8 but it is not going to be installed
Depends: libqgis-core2.14.8 but it is not going to be installed
Depends: libqgis-gui2.14.8 but it is not going to be installed
Depends: libqgis-networkanalysis2.14.8 but it is not going to be installed
Depends: qgis-providers (= 1:2.14.8+20trusty-ubuntugis) but it is not going to be installed
Depends: qgis-common (= 1:2.14.8+20trusty-ubuntugis) but it is not going to be installed
Recommends: qgis-plugin-globe but it is not going to be installed
Recommends: qgis-plugin-grass but it is not going to be installed
Recommends: qgis-provider-grass but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have removed all the packages and the libraries so I do not have any library related to postgis, postgres and QGIS with the Synaptic Package Manager and all with the commands:
sudo apt-get purge qgis
sudo apt-get autoremove qgis
sudo apt-get --purge remove qgis
sudo apt-get update
But the problem is not solved yet.
I tried to remove the repo of ubuntugis and/or debian on the file /etc/apt/sources.list
.
Nothing.
And I do not understand why, using this source http://qgis.org/ubuntugis/ I still have issues about the dipendences.
What should I do?
I am planning to format my laptop hoping this will help me with broken packages.. for the broken packages, I have already tried:
sudo apt-get update –fix-missing
sudo apt-get install -f
but nothing fixed.