QGIS 无法与 Wily 15.10 上的 Python 安装一起使用:路径/依赖项损坏

QGIS 无法与 Wily 15.10 上的 Python 安装一起使用:路径/依赖项损坏

当我尝试运行 QGIS 时,启动时出现以下错误:

An error occured during execution of following code:
import pyplugin_installer


Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named pyplugin_installer


Python version:
2.7.10 (default, Oct 14 2015, 16:09:02) 
[GCC 5.2.1 20151010]

QGIS version:
2.12.1-Lyon 'Lyon', exported

Python path:
['/usr/share/qgis/python', u'/home/jesse/.qgis2/python', u'/home/jesse/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/jesse/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2', u'/home/jesse/.qgis2//python']


##################################


An error occured during execution of following code:
pyplugin_installer.initPluginInstaller()


Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'pyplugin_installer' is not defined


Python version:
2.7.10 (default, Oct 14 2015, 16:09:02) 
[GCC 5.2.1 20151010]

QGIS version:
2.12.1-Lyon 'Lyon', exported

Python path:
['/usr/share/qgis/python', u'/home/jesse/.qgis2/python', u'/home/jesse/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/jesse/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2', u'/home/jesse/.qgis2//python']

此后,QGIS 启动。当我尝试打开 Python 控制台或插件菜单时,我收到类似的错误消息。

我尝试过apt-get purge qgis,然后用 重新安装它apt-get install qgis -f。但在尝试清除/安装时,我收到以下错误消息:

Processing triggers for man-db (2.7.4-1) ...
Setting up qgis-providers-common (1:2.12.1+git20151211+80c5cb6+23wily) ...
cp: cannot stat ‘/usr/share/qgis/resources/srs-template.db’: No such file or directory
dpkg: error processing package qgis-providers-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of qgis-providers:
 qgis-providers depends on qgis-providers-common (= 1:2.12.1+git20151211+80c5cb6+23wily); however:
  Package qgis-providers-common is not configured yet.

dpkg: error processing package qgis-providers (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 qgis-providers-common
 qgis-providers
E: Sub-process /usr/bin/dpkg returned an error code (1)

显然,这个问题似乎与 Python 有关,但我不知道如何诊断这里出了什么问题。有人知道如何修复这个问题吗?或者有关于其他地方可以找到线索以了解发生了什么事情的想法吗?谢谢。

答案1

我遇到了同样的问题,但现在它又可以正常工作了。

此问题已在此更新中修复,我今天可以安装它:

http://hub.qgis.org/issues/13981

相关内容