Ayer decidí actualizar QGIS de 2.16 a 2.18. Esto resultó ser una idea estúpida, porque sucedió lo siguiente:
Después de eliminar, purgar y autorremover qgis, python-gis y grass Intenté instalar la nueva versión utilizando el http://qgis.org/debian de los repositorios.
El resultado fue:
The following packages have unmet dependencies.
python-qgis : Depends: python-qt4-sql but it is not installable
Depends: python-qgis-common (= 1:2.18.1+24xenial) 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-dateutil but it is not installable
Depends: python-requests but it is not installable
Depends: python-tz but it is not installable
Depends: python-yaml but it is not installable
Depends: python-future but it is not installable
Depends: python-pyspatialite but it is not installable
Depends: libqgispython2.18.1 but it is not going to be installed
Depends: libqgis-analysis2.18.1 but it is not going to be installed
Depends: libqgis-core2.18.1 but it is not going to be installed
Depends: libqgis-gui2.18.1 but it is not going to be installed
Depends: libqgis-networkanalysis2.18.1 but it is not going to be installed
Depends: libqgis-server2.18.1 but it is not going to be installed
Depends: libqscintilla2-12v5 (>= 2.8.4) but it is not installable
Recommends: liblwgeom-dev but it is not installable
qgis : Depends: libgdal.so.1-1.11.3 but it is not installable
Depends: libgdal1i (>= 1.8.0) but it is not installable
Depends: libgeos-c1v5 (>= 3.4.2) but it is not installable
Depends: libqgis-analysis2.18.1 but it is not going to be installed
Depends: libqgis-app2.18.1 but it is not going to be installed
Depends: libqgis-core2.18.1 but it is not going to be installed
Depends: libqgis-gui2.18.1 but it is not going to be installed
Depends: libqgis-networkanalysis2.18.1 but it is not going to be installed
Depends: qgis-providers (= 1:2.18.1+24xenial) but it is not going to be installed
Depends: qgis-common (= 1:2.18.1+24xenial) but it is not going to be installed
Recommends: qgis-provider-grass but it is not going to be installed
qgis-plugin-grass : Depends: qgis-provider-grass (= 1:2.18.1+24xenial) but it is not going to be installed
Depends: libgdal1i (>= 1.8.0) but it is not installable
Depends: libqgis-app2.18.1 but it is not going to be installed
Depends: libqgis-core2.18.1 but it is not going to be installed
Depends: libqgis-gui2.18.1 but it is not going to be installed
Depends: libqgisgrass7-2.18.1 but it is not going to be installed
Depends: grass-core but it is not installable
E: Unable to correct problems, you have held broken packages.
Busqué ayuda en Internet y encontré Paquetes rotos e instalación de dependencias no satisfechas QGIS, PostgreSQL y postgis Ubuntu 14.04 y La instalación de QGIS en Ubuntu 14.04 falla
El problema descrito allí es muy similar al mío sólo que yo estoy trabajando en ubuntu 16.04 y los paquetes perdidos son ligeramente diferentes. Desafortunadamente las soluciones propuestas no funcionan para mi caso:
-
Instalar los paquetes nombrados individualmente sólo conduce a más paquetes desinstalables.
-
El uso del repositorio ubuntugis da como resultado el mensaje de error:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 089EBE08314DF160
y al ignorar esto de nuevo no se pueden instalar los archivos.
-
Utilizando
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 073D307A618E5811
sólo conduce a:
gpg: requesting key 618E5811 from hkp server keyserver.ubuntu.com gpg: keyserver timed out gpg: keyserver receive failed: keyserver error
-
apt list --installed | grep gdal
no encuentra nada -
Y la instalación de PostGIS de forma manual también termina en paquetes inistalables.
¿Puede alguien decir si hay algo más que pueda hacer?
Llevo más de un día luchando aquí.
Supongo que algo se ha estropeado con las fuentes pero no sé cómo averiguar qué o cómo repararlo.
EDITAR después de los comentarios
Ahora he conseguido sortear el errow del servidor de claves y acceder al ppa de ubntugis sin problemas.
(La solución para esto fue instalar correctamente el ppa usando sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
)
Tratando de instalar qgis usando las fuentes deb http://qgis.org/ubuntugis xenial main deb-src http://qgis.org/ubuntugis xenial main deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main
de nuevo resulta en una serie de dependencias no satisfechas. Una de ellas es libgdal20. Al intentar instalarla (como recomienda ArneJ), aparecen las siguientes dependencias no satisfechas
libgdal20 : Depends: libarmadillo6 but it is not installable
Depends: libcrypto++9v5 but it is not installable
Depends: libdap17v5 but it is not installable
Depends: libdapclient6v5 but it is not installable
Depends: libepsilon1 (>= 0.8.1) but it is not installable
Depends: libfreexl1 (>= 0.0.2~beta20110817) but it is not installable
Depends: libgeos-c1v5 (>= 3.4.2) but it is not installable
Depends: libgeotiff2 (>= 1.4.1) but it is not installable
Depends: libhdf4-0-alt but it is not installable
Depends: libhdf5-10 but it is not installable
Depends: libkmlbase1 (>= 1.3.0~r864) but it is not installable
Depends: libkmldom1 (>= 1.3.0~rc2) but it is not installable
Depends: libkmlengine1 (>= 1.3.0~r864) but it is not installable
Depends: libmysqlclient20 (>= 5.7.11) but it is not installable
Depends: libnetcdf11 (>= 4.0.1) but it is not installable
Depends: libogdi3.2 but it is not installable
Depends: libopenjp2-7 (>= 2.0.0) but it is not installable
Depends: libpq5 but it is not installable
Depends: libproj9 (>= 4.8.0) but it is not installable
Depends: libqhull7 but it is not installable
Depends: libspatialite7 (>= 4.2.0) but it is not installable
Depends: libxerces-c3.1 but it is not installable
Recommends: proj-bin but it is not installable