dpkg:处理包 qgis-providers 时出错(--configure):

Adi*_*ker 9 package-management dpkg qgis 20.04

你好,这将安装任何东西。

(base) mi@adib:~$ sudo apt install gnupg software-properties-common
[sudo] password for mi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnupg is already the newest version (2.2.19-3ubuntu2).
software-properties-common is already the newest version (0.98.9.3).
The following packages were automatically installed and are no longer required:
  libgsl23 libgslcblas0 libjs-leaflet libqgis-3d3.16.2 libqgis-analysis3.16.2
  libqgis-app3.16.2 libqgis-app3.16.3 libqgis-core3.16.2 libqgis-gui3.16.2
  libqgis-native3.16.2 libqgis-server3.16.2 libqgispython3.16.2 libqt5charts5
  qgis-common qml-module-qtcharts r-cran-mathjaxr
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
3 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 (1:3.16.3+32focal) ...
    - 'VirtualXPath'    [XML Path Language - XPath]
    - 'VirtualXPath'    [XML Path Language - XPath]
    - 'VirtualXPath'    [XML Path Language - XPath]
free(): invalid pointer
Aborted (core dumped)
dpkg: error processing package qgis-providers (--configure):
 installed qgis-providers package post-installation script subprocess returned e
rror exit status 134
dpkg: dependency problems prevent configuration of python3-qgis:
 python3-qgis depends on qgis-providers (= 1:3.16.3+32focal); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package python3-qgis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-qgis:
 python-qgis depends on python3-qgis; however:
  Package python3-qgis is not configured yet.

dpkg: error processing package python-qgis (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          No apport report written because the error message ind
icates its a followup error from a previous failure.
                                                    Errors were encountered whil
e processing:
 qgis-providers
 python3-qgis
 python-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

And*_*reJ 10

我在更新 QGIS 时遇到了同样的问题。

Github 上已经有一个错误报告

您必须手动删除旧版本的 libproj,如错误报告的答案中所述:

 # remove offending lib while keeping package dependency installed (wow, ugly):
 rm -f /lib/x86_64-linux-gnu/libproj.so.15
 ln -s /lib/x86_64-linux-gnu/libproj.so.19 /lib/x86_64-linux-gnu/libproj.so.15
Run Code Online (Sandbox Code Playgroud)

文件夹名称可能与您不同,因此请手动查找。

另请参阅类似的GisStackExchange主题。


gla*_*roc 7

为了解决这个问题,我必须手动卸载 libproj*

sudo apt remove libproj15 libproj-dev libproj19
Run Code Online (Sandbox Code Playgroud)


use*_*733 0

我们来看看qgis-providers包装。

  • Ubuntu 20.04中的当前版本是3.10.4+dfsg-1ubuntu2
  • 您正在尝试安装版本 3.16.3+32focal。

这告诉我们您正在尝试从某些非 Ubuntu 源安装损坏或不兼容的软件包。

如何修复它:

  1. 从该非 Ubuntu 源卸载所有软件包。
  2. 禁用该非 Ubuntu 源。
  3. 然后从 Ubuntu 存储库安装 qgis。
  4. 向该非 Ubuntu 源提交错误报告,让他们知道他们的软件包与 Ubuntu 20.04 不兼容(或已损坏)。