首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >dpkg:错误处理包qgis-提供者(--配置):

dpkg:错误处理包qgis-提供者(--配置):
EN

Ask Ubuntu用户
提问于 2021-01-19 03:45:31
回答 3查看 5.6K关注 0票数 8

嗨,这是威尔安装的任何东西。

代码语言:javascript
复制
(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)
EN

回答 3

Ask Ubuntu用户

发布于 2021-03-09 20:02:30

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

它已经有了一个Github中的bug报告

您必须手动删除较早版本的libproj,如bug报告的答案所述:

代码语言:javascript
复制
 # 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

文件夹名称对您可能不一样,所以手动查找它们。

还请参阅这个类似的GisStackExchange主题。

票数 9
EN

Ask Ubuntu用户

发布于 2021-03-15 20:57:10

要修复这一点,我必须手动卸载libproj*。

代码语言:javascript
复制
sudo apt remove libproj15 libproj-dev libproj19
票数 7
EN

Ask Ubuntu用户

发布于 2021-01-19 04:33:51

让我们看看qgis-providers包。

这告诉我们,您正在尝试从某个非Ubuntu源代码安装一个损坏或不兼容的包。

如何修复:

  1. 从非Ubuntu源代码卸载所有软件包。
  2. 禁用非Ubuntu源。
  3. 然后从Ubuntu存储库安装qgis。
  4. 向非Ubuntu源代码提交一个bug报告,让他们知道他们的包与Ubuntu20.04(或损坏)不兼容。
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1309161

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档