[Ubuntu] qgis-providers fails to install

Jorge Gustavo Rocha jgr at di.uminho.pt
Mon Jan 10 04:43:57 PST 2022


Hi Martin,

It seems to happens when some QGIS tool runs.
My wild guess is to check if you are not running QGIS against some old 
PROJ or GDAL version. Check if you have some dangling PROJ or GDAL libs 
around.

I hope it helps. Good luck,

Jorge

On 08/01/22 23:24, Martin Weis wrote:
> Hello,
> 
> Recently I wanted to upgrade qgis, but it fails due to package
> qgis-providers, which core dumps here during installation.
> 
>> Setting up qgis-providers (1:3.22.2+32focal-ubuntugis) ...
>> free(): invalid pointer
>> Aborted (core dumped)
>> dpkg: error processing package qgis-providers (--configure):
>>   installed qgis-providers package post-installation script subprocess returned error exit status 134
>> Setting up python3-owslib (0.25.0-1~focal0) ...
>> dpkg: dependency problems prevent configuration of qgis:
>>   qgis depends on qgis-providers (= 1:3.22.2+32focal-ubuntugis); however:
>>    Package qgis-providers is not configured yet.
> 
> I have no clue what exactly fails here, the crash dump did not contain
> more hints than this (I can provide it, if it helps you, excerpt with
> versions below).
> 
> Any idea how to debug the installation further?
> dpkg does not really show more details:
> 
> dpkg --debug=72200 -i
> /var/cache/apt/archives/qgis-providers_1%3a3.22.2+32focal-ubuntugis_amd64.deb
> 
> (Reading database ... 660139 files and directories currently installed.)
> Preparing to unpack
> .../qgis-providers_1%3a3.22.2+32focal-ubuntugis_amd64.deb ...
> D020000: trigproc_activate_packageprocessing pkg=qgis-providers:amd64
> Unpacking qgis-providers (1:3.22.2+32focal-ubuntugis) over
> (1:3.22.2+32focal-ubuntugis) ...
> D002000: infodb foreach file this pkg
> D002000: infodb foreach file this pkg
> D002000: infodb foreach file this pkg
> D002000: infodb foreach file this pkg
> Setting up qgis-providers (1:3.22.2+32focal-ubuntugis) ...
> D020000: trigproc_activate_packageprocessing pkg=qgis-providers:amd64
> free(): invalid pointer
> Aborted (core dumped)
> 
> 
> Unpacking the deb (ar -x ...deb, tar xf ...) yields only few control files
> 
> # md5sum -c md5sums # all OK
> # ./postinst # OK, returns 0
> 
> 
> 
> The only other thing I can spot is a warning in plotly (I guess it is
> unrelated, because some more packages follow successful after):
> 
>> Setting up python3-plotly (4.4.1+dfsg-1) ...
>> /usr/lib/python3/dist-packages/_plotly_utils/utils.py:214: SyntaxWarning: "is" with a literal. Did you mean "=="?
>>    if (iso_string.split("-")[:3] is "00:00") or (iso_string.split("+")[0] is "00:00"):
> 
> 
> I am on 20.04 with
> 
>> apt-cache policy qgis-providers
>> qgis-providers:
>>    Installed: 1:3.22.2+32focal-ubuntugis
>>    Candidate: 1:3.22.2+32focal-ubuntugis
>>    Version table:
>>   *** 1:3.22.2+32focal-ubuntugis 500
>>          500 https://qgis.org/ubuntugis focal/main amd64 Packages
>>          100 /var/lib/dpkg/status
>>       3.16.14+dfsg-1~focal0 500
>>          500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main amd64 Packages
>>       3.10.4+dfsg-1ubuntu2 500
>>          500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
> 
>> apt-cache policy | grep gis
>>   500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main i386 Packages
>>       release v=20.04,o=LP-PPA-ubuntugis-ubuntugis-unstable,a=focal,n=focal,l=ubuntugis-unstable,c=main,b=i386
>>   500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main amd64 Packages
>>       release v=20.04,o=LP-PPA-ubuntugis-ubuntugis-unstable,a=focal,n=focal,l=ubuntugis-unstable,c=main,b=amd64
>>   500 https://qgis.org/ubuntugis focal/main amd64 Packages
>>       origin qgis.org
> 
> 
> Small excerpt from crash report
> 
>> == ProcVersionSignature =================================
>> Ubuntu 5.11.0-43.47~20.04.2-generic 5.11.22
>>
>> == Python3Details =================================
>> /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
>>
>> == PythonDetails =================================
>> /usr/bin/python3.8, Python 3.8.10, python-is-python3, 3.8.2-4
>>
>> == Title =================================
>> package qgis-providers 1:3.22.2+32focal-ubuntugis [origin: QGIS project] failed to install/upgrade: installed qgis-providers package post-installation script subprocess returned error exit status 134
> 
> _______________________________________________
> UbuntuGIS mailing list
> Ubuntu at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/ubuntu
> http://trac.osgeo.org/ubuntugis/wiki
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Gabinete 3.29 (Piso 3)
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor


More information about the Ubuntu mailing list