如何修复这些损坏的包依赖关系?

如何修复这些损坏的包依赖关系?

免责声明:我已经在另一个网站上问过这个问题SE 网站,因为我最初以为这是由特定 GIS 软件引起的问题。我越深入研究,就越意识到正是它dpkg导致了问题,因此如下:

操作系统:Ubuntu 16.04.3(内核 4.10.0-33-generic)

我想升级该软件包qgis,但收到一条错误消息:

/usr/bin/qgis.bin:符号查找错误:/usr/lib/libqgis_core.so.2.14.17:未定义符号:OGR_F_SetFieldNull

我尝试重新安装整个东西

sudo apt purge qgis* python-qgis* --auto-remove
sudo apt install qgis python-qgis qgis-plugin-grass

然而,我最终收到以下错误消息:

dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 2.14.17+dfsg-1~xenial3); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
Setting up qgis-plugin-grass-common (2.14.17+dfsg-1~xenial3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of qgis-provider-grass:
 qgis-provider-grass depends on qgis (= 2.14.17+dfsg-1~xenial3); however:
  Package qgis is not configured yet.

dpkg: error processing package qgis-provider-grass (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-grass:
 qgis-plugin-grass depends on qgis (= 2.14.17+dfsg-1~xenial3); however:
  Package qgis is not configured yet.
 qgis-plugin-grass depends on qgis-provider-grass (= 2.14.17+dfsg-1~xenial3); however:
  Package qgis-provider-grass is not configured yet.

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: error processing package qgis-plugin-grass (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 qgis-providers
 qgis
 qgis-provider-grass
 qgis-plugin-grass
E: Sub-process /usr/bin/dpkg returned an error code (1)

到目前为止,我尝试dpkg修复dpkg如果安装了 QGIS,重新安装会给出与上述相同的错误消息。显然,旧安装的一些残留部分remove --purge没有被清除,我不知道还能尝试什么。有人知道这是怎么回事吗?

编辑:以下是输出sudo dpkg --configure -a

相关内容