我正在尝试在 Ubuntu 14.04 LTS 上安装 QGIS。我运行了以下命令:
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install qgis
但我收到以下消息,
The following packages have unmet dependencies:
qgis : Depends: gdal-abi-2-1-0
Depends: libgdal20 (>= 2.0.1) but it is not going to be installed
Depends: libgeos-c1v5 (>= 3.4.2) but it is not going to be installed
Depends: libqgis-analysis2.14.3 (>= 2.14.0) but it is not going to be installed
Depends: libqgis-app2.14.3 (>= 2.14.0) but it is not going to be installed
Depends: libqgis-core2.14.3 (>= 2.14.3) but it is not going to be installed
Depends: libqgis-gui2.14.3 (>= 2.14.0) but it is not going to be installed
Depends: libqgis-networkanalysis2.14.3 (>= 2.0.1) but it is not going to be installed
Depends: python-qgis (= 2.14.3+dfsg-2~trusty1build1) but it is not going to be installed
Depends: qgis-providers (= 2.14.3+dfsg-2~trusty1build1) but it is not going to be installed
Depends: qgis-common (= 2.14.3+dfsg-2~trusty1build1) but 1:2.18.6+24xenial is 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
Recommends: qgis-plugin-globe but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我还是 Linux/Ubuntu 新手,不知道如何继续前进。
答案1
这邮政很有帮助!我只需要修改几件事就可以更新答案。
在第2步我需要在最后一行添加以下内容/etc/apt/sources.list
,
deb http://qgis.org/debian trusty main
deb-src http://qgis.org/debian trusty main
然后执行下面两个命令添加public key
for地理信息系统,
gpg --keyserver keyserver.ubuntu.com --recv DD45F6C3
gpg --export --armor DD45F6C3 | sudo apt-key add -
更新存储库,
sudo apt-get update
只需按照帖子的其余部分操作它就应该有效,至少对我来说是有效的!