Sono consapevole che questo potrebbe essere un argomento duplicato, ma sto lottando da diversi giorni. Ho aggiornato QGIS da 2.8 a 2.18 e dopo tutto si è rotto. Non ho potuto usare l'estensione PostGIS su pgadmin3.
Ho capito che c'era un conflitto con un libgdal1h
: se installato, rimuove altre librerie utilizzate da PostGIS e viceversa.
Ho provato diversi tutorial su come installare QGIS, come ad esempio:
Come ottengo e installo l'ultima versione di QGIS in Ubuntu?
Installa QGIS 2.14 Essen su Ubuntu 16.04 Xenial
Ho provato tutti i suggerimenti riportati online, come ad esempio:
/ubuntu/351899/qgis-quantum-gis-install-fails-unmet-dependencies
/ubuntu/621406/dist-upgrade-in-ubuntu-14-04-uninstalled-qgis-and-results-in-unmet-dependencies
Dove trovare una versione di libgeos-c1 compatibile con libgeos-3.5.0?
L'installazione di QGIS su Ubuntu 14.04 non riesce
Sempre, la risposta di sudo apt-get install qgis python-qgis
è:
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.
Ho rimosso tutti i pacchetti e le librerie, quindi non ho alcuna libreria relativa a Postgis, Postgres e QGIS con Synaptic Package Manager e tutti con i comandi:
sudo apt-get purge qgis
sudo apt-get autoremove qgis
sudo apt-get --purge remove qgis
sudo apt-get update
Ma il problema non è ancora risolto.
Ho provato a rimuovere il repository di ubuntugis e / o debian sul file /etc/apt/sources.list
.
Niente.
E non capisco perché, usando questa fonte http://qgis.org/ubuntugis/ ho ancora problemi sulle dipendenze.
Cosa dovrei fare?
Sto programmando di formattare il mio laptop sperando che questo mi aiuti con i pacchetti rotti .. per i pacchetti rotti, ho già provato:
sudo apt-get update –fix-missing
sudo apt-get install -f
ma niente di fisso.