Installa QGIS 2.14 Essen su Ubuntu 16.04 Xenial


26

Ho problemi con l'installazione di QGIS su Xenial.

rilascio `debian`

Quando provo a utilizzare la debianversione (ovvero senza ubuntugisdipendenze) ricevo i seguenti errori (si noti che non esiste una xenialversione, quindi ho usato wilydurante l'impostazione di sources.list):

~$ sudo apt install qgis python-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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: python-qgis-common (= 1:2.14.1+23wily) but it is not going to be installed
               Depends: libqgispython2.14.1 but it is not going to be installed
               Depends: libqgis-analysis2.14.1 but it is not going to be installed
               Depends: libqgis-core2.14.1 but it is not going to be installed
               Depends: libqgis-gui2.14.1 but it is not going to be installed
               Depends: libqgis-networkanalysis2.14.1 but it is not going to be installed
               Depends: libqgis-server2.14.1 but it is not going to be installed
 qgis : Depends: libgdal.so.1-1.11.2 but it is not installable
        Depends: libgsl0ldbl (>= 1.9) but it is not installable
        Depends: libqgis-analysis2.14.1 but it is not going to be installed
        Depends: libqgis-app2.14.1 but it is not going to be installed
        Depends: libqgis-core2.14.1 but it is not going to be installed
        Depends: libqgis-gui2.14.1 but it is not going to be installed
        Depends: libqgis-networkanalysis2.14.1 but it is not going to be installed
        Depends: qgis-providers (= 1:2.14.1+23wily) but it is not going to be installed
        Recommends: qgis-provider-grass but it is not going to be installed
        Recommends: qgis-plugin-globe but it is not going to be installed
 qgis-plugin-grass : Depends: qgis-provider-grass (= 1:2.14.1+23wily) but it is not going to be installed
                     Depends: libqgis-app2.14.1 but it is not going to be installed
                     Depends: libqgis-core2.14.1 but it is not going to be installed
                     Depends: libqgis-gui2.14.1 but it is not going to be installed
                     Depends: libqgisgrass7-2.14.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Rilascio di `ubuntugis`

Dopo aver fallito con il debianrilascio ho provato il ubuntugisrilascio aggiungendo il ubuntugis-unstablePPA (di nuovo ho usato il wilyrilascio di ubuntugis per coerenza con il rilascio QGIS):

:~$ sudo apt update 
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [92.2 kB]
Hit:2 http://gb.archive.ubuntu.com/ubuntu xenial InRelease                                                                                                
Get:3 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu wily InRelease [15.5 kB]                                                                     
Get:4 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [93.3 kB]                                                                                    
Hit:5 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease                                                                                             
Hit:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease                                                                                   
Hit:7 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease                                                        
Get:8 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu wily/main amd64 Packages [4,297 B]                       
Get:9 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu wily/main i386 Packages [4,307 B]                  
Get:10 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu wily/main Translation-en [2,463 B]     
Ign:11 http://linux.dropbox.com/ubuntu wily InRelease                                                  
Hit:12 http://linux.dropbox.com/ubuntu wily Release                      
Ign:14 https://cloud.r-project.org/bin/linux/ubuntu xenial/ InRelease
Hit:15 https://cloud.r-project.org/bin/linux/ubuntu xenial/ Release
Ign:17 http://qgis.org/ubuntugis wily InRelease    
Err:18 http://qgis.org/ubuntugis wily Release
  404  Not Found [IP: 104.27.138.220 80]
Reading package lists... Done
W: https://cloud.r-project.org/bin/linux/ubuntu/xenial/Release.gpg: Signature by key E298A3A825C0D65DFD57CBB651716619E084DAB9 uses weak digest algorithm (SHA1)
E: The repository 'http://qgis.org/ubuntugis wily Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

La linea E: The repository 'http://qgis.org/ubuntugis wily Release' does not have a Release file.sembrava piuttosto fatale, quindi ho provato trusty(l'ultima versione supportata). Questo è aggiornato, ma quando si tenta di installare:

:~$ sudo apt install qgis python-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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: python-qgis-common (= 1:2.14.1+20trusty-ubuntugis) but it is not going to be installed
               Depends: libqgispython2.14.1 but it is not going to be installed
               Depends: libqgis-analysis2.14.1 but it is not going to be installed
               Depends: libqgis-core2.14.1 but it is not going to be installed
               Depends: libqgis-gui2.14.1 but it is not going to be installed
               Depends: libqgis-networkanalysis2.14.1 but it is not going to be installed
               Depends: libqgis-server2.14.1 but it is not going to be installed
 qgis : Depends: libgdal.so.1-1.11.2
        Depends: libgdal1h (>= 1.8.0) but it is not going to be installed
        Depends: libgeos-c1 (>= 3.4.2) but it is not installable
        Depends: libgsl0ldbl (>= 1.9) but it is not installable
        Depends: libqgis-analysis2.14.1 but it is not going to be installed
        Depends: libqgis-app2.14.1 but it is not going to be installed
        Depends: libqgis-core2.14.1 but it is not going to be installed
        Depends: libqgis-gui2.14.1 but it is not going to be installed
        Depends: libqgis-networkanalysis2.14.1 but it is not going to be installed
        Depends: qgis-providers (= 1:2.14.1+20trusty-ubuntugis) but it is not going to be installed
        Recommends: qgis-provider-grass but it is not going to be installed
        Recommends: qgis-plugin-globe but it is not going to be installed
 qgis-plugin-grass : Depends: qgis-provider-grass (= 1:2.14.1+20trusty-ubuntugis) but it is not going to be installed
                     Depends: libgdal1h (>= 1.8.0) but it is not going to be installed
                     Depends: libqgis-app2.14.1 but it is not going to be installed
                     Depends: libqgis-core2.14.1 but it is not going to be installed
                     Depends: libqgis-gui2.14.1 but it is not going to be installed
                     Depends: libqgisgrass7-2.14.1 but it is not going to be installed
                     Depends: grass-core but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Infine, per completezza, con il xenialrilascio di ubuntugis:

$ sudo apt install qgis python-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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: python-qgis-common (= 1:2.14.1+20trusty-ubuntugis) but it is not going to be installed
               Depends: libqgispython2.14.1 but it is not going to be installed
               Depends: libqgis-analysis2.14.1 but it is not going to be installed
               Depends: libqgis-core2.14.1 but it is not going to be installed
               Depends: libqgis-gui2.14.1 but it is not going to be installed
               Depends: libqgis-networkanalysis2.14.1 but it is not going to be installed
               Depends: libqgis-server2.14.1 but it is not going to be installed
 qgis : Depends: libgdal.so.1-1.11.2 but it is not installable
        Depends: libgdal1h (>= 1.8.0) but it is not installable
        Depends: libgeos-c1 (>= 3.4.2) but it is not installable
        Depends: libgsl0ldbl (>= 1.9) but it is not installable
        Depends: libqgis-analysis2.14.1 but it is not going to be installed
        Depends: libqgis-app2.14.1 but it is not going to be installed
        Depends: libqgis-core2.14.1 but it is not going to be installed
        Depends: libqgis-gui2.14.1 but it is not going to be installed
        Depends: libqgis-networkanalysis2.14.1 but it is not going to be installed
        Depends: qgis-providers (= 1:2.14.1+20trusty-ubuntugis) but it is not going to be installed
        Recommends: qgis-provider-grass but it is not going to be installed
        Recommends: qgis-plugin-globe but it is not going to be installed
 qgis-plugin-grass : Depends: qgis-provider-grass (= 1:2.14.1+20trusty-ubuntugis) but it is not going to be installed
                     Depends: libgdal1h (>= 1.8.0) but it is not installable
                     Depends: libqgis-app2.14.1 but it is not going to be installed
                     Depends: libqgis-core2.14.1 but it is not going to be installed
                     Depends: libqgis-gui2.14.1 but it is not going to be installed
                     Depends: libqgisgrass7-2.14.1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Spero che presto sarà disponibile una versione di QGIS per Xenial, ma qualcuno è riuscito a installare QGIS 2.14 su Xenial?


Ho trovato questa risposta da StackOverflow per fare il trucco: stackoverflow.com/a/39770173/5948083
Dave-Evans

Risposte:


35

Sembra che ci sia effettivamente il supporto Xenial nel repository debian e anche se non ho provato la seguente soluzione, credo che valga la pena provare.

Prima di provare quanto segue disinstallerei tutti i precedenti pacchetti qgis usando sudo apt-get remove qgis python-qgis qgis-plugin-grasse rimuovendo deb http://qgis.org/debian wily maine deb-src http://qgis.org/debian wily mainda /etc/apt/sources.list.

MODIFICA Per rimuovere i pacchetti installati come dipendenze automatiche durante l'installazione di qgis, eseguire il comando sudo apt-get autoremovedopo aver eseguito i comandi precedenti per rimuoverli. MODIFICA FINE

Quanto segue è adattato da qgis.org per includere la xenialparola chiave.

Aggiungi quanto segue al tuo /etc/apt/sources.list:

deb http://qgis.org/debian xenial main

deb-src http://qgis.org/debian xenial main

quindi eseguire:

sudo apt-get update

sudo apt-get install qgis python-qgis qgis-plugin-grass

Sono molto interessato a sapere se riesci a farlo funzionare.


1
L'unica configurazione che non ho provato! Grazie.
Phil

Sono contento di essere in grado di dare una mano!
JonasPedersen,

2
Questa è la soluzione che ho usato, ma non ha funzionato fino a quando non ho rimosso una cartella GDAL 2.1 dalla cartella dist-pacchetti di python. Stava oscurando la versione corretta e causando l'errore mancante python-gdal. Va tutto bene adesso.
Rob Skelly,

per me il download è iniziato ma non è stato verificato alcun avviso. dovrei essere molto preoccupato?
Abhijit Gujar,

2
se riscontri problemi di portachiavi, consulta questa pagina per istruzioni ..
Nxaunxau,

4

Se non sei sicuro di quali distribuzioni siano supportate, inserisci l'URL debnel browser e vai alla distscartella.

Quindi vedi che http://qgis.org/debian/dists/dipende da xenial, mentre http://qgis.org/ubuntugis/dists/supporta solo preciso e affidabile.

Altre fonti sono ubuntugis stable ppa , che attualmente ha solo QGIS 2.8.3 per trust, mentre ubuntugis unstable è ancora su QGIS 2.8.1. Ultimamente ci sono state delle attività su quei ppa, quindi tienili d'occhio.

E QGIS 2.14.1 è disponibile anche per Debian sid dai principali pacchetti debian, mentre i backport di jessie offrono 2.8.6 (come per Ubuntu).


AGGIORNARE

Il PPA ubuntugis-unstable ora supporta QGIS 2.14.1 anche per Xenial.


3

Come utente di Linux Mint 'Cinnamon 17.3 ho anche lottato con queste "dipendenze non soddisfatte (libgdal.so.1-1.11.2 ecc.)" E ho dovuto aggiornare il ppa. Ho fatto questo includendo i seguenti link nel /etc/apt/sources.list:

deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main

1
Funziona anche con Ubuntu xenial? Per quanto vedo non esiste un pacchetto GDAL o QGIS in quel ppa per xenial (ancora).
AndreJ,

Apparentemente non ci sono ancora pacchetti GDAL o QGIS per Xenial. Non so fino a che punto puoi usare quelli di fiducia (nuovi per Linux e QGIS)
eschar

Per Linux Mint 17.3, è consigliabile utilizzare i file binari attendibili. L'equivalente di Ubuntu Xenial nel mondo di Mint, Linux Mint 18, sarà disponibile entro giugno 2016. Potrebbe essere necessario utilizzare i pacchetti debian di QGIS per questo.
AndreJ,

Ecco il riferimento ufficiale nel caso in cui le persone si chiedano
chrismarx

E sì, ora funziona per il 16.04
chrismarx

0

Per installarlo in xenial, devi solo:

sudo apt-get update
sudo apt-get install qgis

Per quello che vale, ho trovato QGIS 2.16.3 instabile in Xubuntu 16.04: crash frequenti (arresto del programma, nessun avviso, nessun rapporto sugli arresti anomali - niente), spesso associati a cambiamenti nelle riproiezioni al volo di progetti contenenti mappatura dello sfondo raster. QGIS 2.16.2 è leggermente più affidabile in Kubuntu 14.04 ma non perfetto.
NickN,

Questo non funzionerà senza l'aggiunta di un ppa aggiuntivo, giusto?
Chrismarx,

L'OP afferma chiaramente di aver già provato questo.
Dave-Evans,

0

Nonostante abbia implementato molti suggerimenti trovati su Internet, non sono riuscito a far installare QGIS su Ubuntu 16.04 fino a quando non mi sono imbattuto in questo breve e utile video: https://www.youtube.com/watch?v=hmJwYaYmRDU

Fino ad allora stavo anche lottando con i messaggi su varie "dipendenze non soddisfatte" e "pacchetti mancanti / rotti" (suggerimento per il creatore di video: Linux Enthusiast)

Ecco i passaggi che devi seguire nel terminale:

Passaggio 1. Digitare:

sudo nano /etc/apt/sources.list [premere Invio]

Passaggio 2. Digitare:

deb https://qgis.org/ubuntugis-ltr xenial main

deb-src https://qgis.org/ubuntugis-ltr xenial main    

deb http:/ppa.launchpad.net/ubuntugis-unstable/ubuntu/ubuntu xenial main

[Premere Invio e quando viene richiesto "Salva buffer modificati" , premere il tasto y]

Passaggio 3. Digitare:

wget -O - https://qgis.org/downloads/qgis-2017.gpg.key | gpg --import [premere Invio]

Digitare:

gpg --fingerprint CAEB3DC3BDF7FB45 [premere Invio]

Passaggio 4. Digitare:

sudo apt-get update [premere Invio]

Passaggio 5. Digitare:

sudo apt-get install qgis-server python-qgis [premere Invio]

Vuoi continuare? - [premere il tasto y]

Installare questi pacchetti senza verifica? [premere il tasto y]

QGIS verrà quindi installato e successivamente lo troverai nel tuo elenco di programmi. Buona fortuna, spero che questo abbia aiutato. **


-2

Debian Xenial lavora per me. Per prima cosa installo bleachbit su un autoremove, pulito.

Quanto sopra è stato tradotto da Google da:

Debian Xenial fonctionne pour moi. J'ai d'abord installa bleachbit pour faire un autoremove, clean.

Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.