Saya mengalami kesulitan menginstal QGIS di Xenial.
rilis `debian`
Ketika saya mencoba menggunakan debian
rilis (yaitu tanpa ubuntugis
dependensi) saya mendapatkan kesalahan berikut (harap dicatat tidak ada xenial
rilis jadi saya telah menggunakan wily
ketika mengatur 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.
rilis `ubuntugis`
Setelah gagal dengan debian
rilis saya sudah mencoba ubuntugis
rilis dengan menambahkan ubuntugis-unstable
PPA (sekali lagi saya menggunakan wily
rilis ubuntugis untuk konsistensi dengan rilis 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.
Garis E: The repository 'http://qgis.org/ubuntugis wily Release' does not have a Release file.
terlihat sangat fatal jadi saya mencoba trusty
(rilis yang didukung paling baru). Ini diperbarui, tetapi ketika mencoba menginstal:
:~$ 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.
Akhirnya, demi kelengkapan, dengan xenial
dirilisnya 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.
Semoga rilis QGIS untuk Xenial akan segera tersedia, tetapi apakah ada yang berhasil menginstal QGIS 2.14 di Xenial?
sumber
Jawaban:
Sepertinya sebenarnya ada dukungan Xenial di repositori debian dan meskipun saya belum mencoba solusi berikut ini sendiri, saya rasa ini patut dicoba.
Sebelum mencoba yang berikut ini, saya akan menghapus semua paket qgis sebelumnya menggunakan
sudo apt-get remove qgis python-qgis qgis-plugin-grass
dan menghapusdeb http://qgis.org/debian wily main
dandeb-src http://qgis.org/debian wily main
dari/etc/apt/sources.list
.EDIT Untuk menghapus paket yang diinstal sebagai dependensi otomatis saat menginstal qgis, jalankan perintah
sudo apt-get autoremove
setelah menjalankan perintah di atas untuk menghapusnya. AKHIR EDITBerikut ini diadaptasi dari qgis.org untuk memasukkan
xenial
kata kunci.Tambahkan yang berikut ke Anda
/etc/apt/sources.list
:deb http://qgis.org/debian xenial main
deb-src http://qgis.org/debian xenial main
kemudian jalankan:
sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass
Saya sangat tertarik untuk mendengar jika Anda membuatnya bekerja.
sumber
Jika Anda tidak yakin distribusi mana yang didukung, masukkan url setelah
deb
ke browser Anda, dan navigasikan kedists
folder.Maka Anda melihat bahwa
http://qgis.org/debian/dists/
itu hingga akhir, sementarahttp://qgis.org/ubuntugis/dists/
hanya mendukung tepat dan dapat dipercaya.Sumber lain adalah ubuntugis stable ppa , yang saat ini hanya memiliki QGIS 2.8.3 untuk dipercaya, sementara ubuntugis tidak stabil masih di QGIS 2.8.1. Ada beberapa kegiatan akhir-akhir ini pada ppa tersebut, jadi awasi mereka.
Dan QGIS 2.14.1 juga tersedia untuk sid Debian dari paket debian utama, sementara jessie backports menawarkan 2.8.6 (sama seperti untuk Ubuntu).
MEMPERBARUI
The PPA ubuntugis-tidak stabil sekarang mendukung QGIS 2.14.1 untuk Xenial juga.
sumber
Sebagai pengguna Linux Mint 'Cinnamon' 17.3, saya juga berjuang dengan "dependensi yang tidak terpenuhi ini (libgdal.so.1-1.11.2 dll)" dan harus memperbarui ppa. Saya melakukan ini dengan memasukkan tautan berikut dalam
/etc/apt/sources.list
:sumber
Untuk menginstalnya di xenial, Anda hanya perlu:
sumber
Meskipun menerapkan banyak tips yang ditemukan di Internet, saya tidak dapat menginstal QGIS di Ubuntu 16.04 sampai saya menemukan video pendek dan bermanfaat ini: https://www.youtube.com/watch?v=hmJwYaYmRDU
Sampai saat itu saya juga berjuang dengan pesan tentang berbagai "dependensi yang tidak terpenuhi" dan "paket yang hilang / rusak" (ujung hatikan ke pembuat video: Linux Enthusiast)
Berikut langkah-langkah yang perlu Anda ikuti di terminal:
Langkah 1. Ketikkan:
sudo nano /etc/apt/sources.list
[tekan enter]Langkah 2. Ketikkan:
[Tekan Enter, dan ketika diminta untuk "Simpan buffer yang dimodifikasi" , tekan tombol y]
Langkah 3. Ketikkan:
wget -O - https://qgis.org/downloads/qgis-2017.gpg.key | gpg --import
[tekan enter]Ketikkan:
gpg --fingerprint CAEB3DC3BDF7FB45
[tekan enter]Langkah 4. Ketikkan:
sudo apt-get update
[tekan enter]Langkah 5. Ketikkan:
sudo apt-get install qgis-server python-qgis
[tekan enter]Apakah Anda ingin melanjutkan? - [tekan tombol y]
Instal paket-paket ini tanpa verifikasi? [tekan tombol y]
QGIS kemudian akan menginstal dan setelah itu Anda akan menemukannya di antara daftar program Anda. Semoga berhasil, semoga ini membantu. **
sumber
Debian Xenial bekerja untuk saya. Saya pertama kali menginstal bleachbit ke autoremove, bersih.
Di atas adalah Google yang diterjemahkan dari:
sumber