在Ubuntu 14中安装QGIS

2 投票
1 回答
1509 浏览
提问于 2025-04-18 18:10

我把我的Ubuntu系统从12.04升级到了14,现在无法运行QGIS这个软件。

我尝试重新安装,安装了QGIS 2.4和QGIS 2.0,但都没有成功。

在添加了Trusty软件源(为了安装QGIS 2.4)或者普通的Ubuntu软件源(为了安装2.0)后,我收到了这个错误信息。

看起来我在一些软件包上遇到了问题,具体是:

  • qgis-providers
  • qgis
  • qgis-plugin-globe
  • qgis-plugin-grass

我现在不知道该怎么办。是不是应该再把系统降级回Ubuntu 12呢?

错误信息是:

> 
Setting up qgis-providers (2.0.1-2build2) ...
/usr/lib/qgis/crssync: error while loading shared libraries: libnetcdf.so.6: cannot open shared object file: No such file or directory
dpkg: error processing package qgis-providers (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up qgis-common (2.0.1-2build2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 2.0.1-2build2); however:
  Package qgis-providers is not configured yet.
>
dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
Setting up qgis-plugin-globe-common (2.0.1-2build2) ...
Setting up libosgearth2 (2.4.0+dfsg-6) ...
Setting up libosgearthsymbology2 (2.4.0+dfsg-6) ...
Setting up libosgearthfeatures2 (2.4.0+dfsg-6) ...
Setting up libosgearthannotation2 (2.4.0+dfsg-6) ...
Setting up libosgearthutil2 (2.4.0+dfsg-6) ...
Setting up libosgearthqt2 (2.4.0+dfsg-6) ...
dpkg: dependency problems prevent configuration of qgis-plugin-globe:
 qgis-plugin-globe depends on qgis (= 2.0.1-2build2); however:
  Package qgis is not configured yet.
>
dpkg: error processing package qgis-plugin-globe (--configure):
 dependency problems - leaving unconfigured
Setting up qgis-plugin-grass-common (2.0.1-2build2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of qgis-plugin-grass:
 qgis-plugin-grass depends on qgis (= 2.0.1-2build2); however:
  Package qgis is not configured yet.
>
dpkg: error processing package qgis-plugin-grass (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.1) ...
Errors were encountered while processing:
 qgis-providers
 qgis
 qgis-plugin-globe
 qgis-plugin-grass
Error in function: 
Setting up qgis-providers (2.0.1-2build2) ...
/usr/lib/qgis/crssync: error while loading shared libraries: libnetcdf.so.6: cannot open shared object file: No such file or directory
dpkg: error processing package qgis-providers (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 2.0.1-2build2); however:
  Package qgis-providers is not configured yet.
>
dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-grass:
 qgis-plugin-grass depends on qgis (= 2.0.1-2build2); however:
  Package qgis is not configured yet.
>
dpkg: error processing package qgis-plugin-grass (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-globe:
 qgis-plugin-globe depends on qgis (= 2.0.1-2build2); however:
  Package qgis is not configured yet.
>
dpkg: error processing package qgis-plugin-globe (--configure):
 dependency problems - leaving unconfigured

1 个回答

1

我也没能成功安装,但找到了一个解决办法。

ubuntugis项目提供了各种FOSSGIS软件包的新版本,其中就包括QGIS。

https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

sudo apt-get update

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

撰写回答