我在Xenial上安装QGIS时遇到问题。
`debian`发布
当我尝试使用debian
发行版(即没有ubuntugis
依赖项)时,出现以下错误(请注意,没有xenial
发行版,因此我wily
在设置时使用了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.
`ubuntugis`发布
在debian
发行失败之后,我尝试ubuntugis
通过添加ubuntugis-unstable
PPA来尝试发行(再次,我使用wily
ubuntugis发行来与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.
该行E: The repository 'http://qgis.org/ubuntugis wily Release' does not have a Release file.
看起来很致命,所以我尝试了trusty
(最新支持的版本)。已更新,但是在尝试安装时:
:~$ 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.
最后,为了完整起见,xenial
发布了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.
希望不久将发布适用于Xenial的QGIS版本,但是有人能在Xenial上安装QGIS 2.14吗?