~ $ gdalinfo --version gdalinfo:符号查找错误:/lib/libgdal.so.28:未定义符号:proj_crs_get_datum_ensemble
最近升级到 Ubuntu 21.04 并且事情停止工作,尝试删除所有 gdal、qgis 安装并重新安装,这是最新的。上一个错误是 https://gist.github.com/adoug/f551c96ae49bcf0dd4905cfb3ed1c910。从 gui 安装 qgis 也出现错误 Unable to install QGIS Desktop: Error while installing package: installed qgis-providers package post-installation script subprocess returned error exit status 127
~ $ pip3 install gdal
Requirement already satisfied: gdal in /usr/lib/python3/dist-packages (3.2.2)
~ $ pip3 uninstall gdal
Found existing installation: GDAL 3.2.2
Not uninstalling gdal at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'GDAL'. No files were found to uninstall.
整个安装似乎被破坏了,有没有办法清除所有并重新安装或以某种方式从中恢复?
答案 0 :(得分:0)
并不是为了修复当前问题,而是使用全新的 anaconda 安装作为让 gdal 再次工作的解决方法
conda update --all
conda install -c conda-forge gdal