在Ubuntu18.04.5LTS上,当我尝试安装python3-venv或卸载python3.8时,我收到以下错误消息,从下面一行开始:
/usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libgdal.so.26: undefined symbol: GEOSMakeValid_r有人能帮我解决这个问题吗?可能出了什么问题?提前感谢!
❯ sudo apt-get install python3-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-venv is already the newest version (3.6.7-1~18.04).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
4 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 (3.10.12+dfsg-1~bionic1) ...
/usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libgdal.so.26: undefined symbol: GEOSMakeValid_r
dpkg: error processing package qgis-providers (--configure):
installed qgis-providers package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of qgis:
qgis depends on qgis-providers (= 3.10.12+dfsg-1~bionic1); however:
Package qgis-providers is not configured yet.
dpkg: error processing package qgis (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-qgis:
python3-qgis depends on qgis-providers (= 3.10.12+dfsg-1~bionic1); 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 qgis-plugin-grass:
qgis-plugin-grass depends on qgis (= 3.10.12+dfsg-1~bionic1); however:
Package qgis is not configured yet.
dpkg: error processing package qgis-plugin-grass (--configure):
dependency problems - leaving unconfigured
No 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
Errors were encountered while processing:
qgis-providers
qgis
python3-qgis
qgis-plugin-grass
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2021-03-12 20:53:08
当我尝试在ubuntu 18.04上安装qgis时,我也遇到了同样的问题和错误信息。
根据这篇讨论中的提示,https://github.com/OSGeo/gdal/issues/2214似乎问题在于,在我的系统上安装了geos-3.5.0时,gdal期望的是geos-3.8.0或更高版本。
手动安装源码中的geos-3.8.1 (可以在这里找到:https://trac.osgeo.org/geos/)解决了这个问题,并允许我安装qgis。
https://stackoverflow.com/questions/65991311
复制相似问题