Estou ciente de que esse pode ser um tópico duplicado, mas estou lutando por vários dias. Atualizei o QGIS de 2,8 para 2,18 e depois disso tudo fica quebrado. Não pude usar a extensão PostGIS no pgadmin3.
Eu descobri que havia um conflito com um libgdal1h
: se instalado, ele remove outras bibliotecas usadas pelo PostGIS e vice-versa.
Eu tentei vários tutoriais sobre como instalar o QGIS, como por exemplo:
Como obtenho e instalo a versão mais recente do QGIS no Ubuntu?
Instale o QGIS 2.14 Essen no Ubuntu 16.04 Xenial
Tentei todas as sugestões relatadas on-line, como por exemplo:
/ubuntu/351899/qgis-quantum-gis-install-fails-unmet-dependencies
/ubuntu/621406/dist-upgrade-in-ubuntu-14-04-uninstalled-qgis-and-results-in-unmet-dependencies
Onde encontrar uma versão do libgeos-c1 compatível com o libgeos-3.5.0?
Falha na instalação do QGIS no Ubuntu 14.04
Sempre, a resposta de 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.
Eu removi todos os pacotes e as bibliotecas para não ter nenhuma biblioteca relacionada ao postgis, postgres e QGIS com o Synaptic Package Manager e todos com os comandos:
sudo apt-get purge qgis
sudo apt-get autoremove qgis
sudo apt-get --purge remove qgis
sudo apt-get update
Mas o problema ainda não está resolvido.
Tentei remover o repositório de ubuntugis e / ou debian no arquivo /etc/apt/sources.list
.
Nada.
E não entendo o porquê, usando esta fonte http://qgis.org/ubuntugis/ ainda tenho problemas com as dipendências.
O que devo fazer?
Estou planejando formatar meu laptop, esperando que isso me ajude com pacotes quebrados. Para os pacotes quebrados, eu já tentei:
sudo apt-get update –fix-missing
sudo apt-get install -f
mas nada consertado.