无法在ubuntu 12.04中安装QGis

时间:2012-11-30 06:46:11

标签: gis ubuntu-12.04 qgis

我无法在ubuntu12.04中安装QGis。我收到了以下错误。

$ sudo apt-get install qgis
[sudo] password for anju: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
qgis is already the newest version.
The following packages were automatically installed and are no longer required:
  libnss3-dev libnspr4-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 574 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up qgis-providers-common (1.8.0-1~precise2) ...
/usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libgdal.so.1: undefined symbol: pj_ctx_alloc
dpkg: error processing qgis-providers-common (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of qgis-providers:
 qgis-providers depends on qgis-providers-common (= 1.8.0-1~precise2); however:
  Package qgis-providers-common is not configured yet.
dpkg: error processing qgis-providers (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1.8.0-1~precise2); however:
  Package qgis-providers is not configured yet.
dpkg: error processing qgis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-globe:
 qgis-plugin-globe depends on qgis (= 1.8.0-1~precise2); however:
  Package qgis is not configured yet.
dpkg: error processing qgis-plugin-globe (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuNo apport report written because the error message indicates its a followup error from a previous failure.
                                   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
                                                                                           No apport report written because MaxReports is reached already
                                         ration of qgis-plugin-grass:
 qgis-plugin-grass depends on qgis (= 1.8.0-1~precise2); however:
  Package qgis is not configured yet.
dpkg: error processing qgis-plugin-grass (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 qgis-providers-common
 qgis-providers
 qgis
 qgis-plugin-globe
 qgis-plugin-grass
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮帮我..

3 个答案:

答案 0 :(得分:1)

看起来像gem已安装,但其依赖关系未正确配置。

尝试运行sudo dpkg-reconfigure qgis来重新配置它们。

答案 1 :(得分:0)

按照以下链接中的步骤,它修复了qgis中的符号查找错误。

http://ubuntuforums.org/showthread.php?t=1764127

答案 2 :(得分:-1)

如果我删除QGIS,那么我无法重新安装它!