dpkg: error processing package qgis-providers (--configure): exit status 139

Bug #1949068 reported by Cristian Galleguillos
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
qgis (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,

I was trying to do a simple upgrade of the packages and I got this error:

----
Setting up qgis-providers (1:3.16.12+34hirsute) ...
Segmentation fault (core dumped)

Setting up qgis-providers (1:3.16.12+34hirsute) ...
Segmentation fault (core dumped)
dpkg: error processing package qgis-providers (--configure):
 installed qgis-providers package post-installation script subprocess returned error exit status 139
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:3.16.12+34hirsute); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
Setting up libqgis-customwidgets (1:3.16.12+34hirsute) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of qgis-plugin-grass:
 qgis-plugin-grass depends on qgis (= 1:3.16.12+34hirsute); however:
  Package qgis is not configured yet.

dpkg: error processing package qgis-plugin-grass (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-qgis:
 python3-qgis depends on qgis-providers (= 1:3.16.12+34hirsute); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package python3-qgis (--configure):
 dependency problems - leaving unconfigured
Setting up libqgis-app3.16.12 (1:3.16.12+34hirsute) ...
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
                                                                                                                                                                        Setting up python3-qgis-common (1:3
.16.12+34hirsute) ...

Errors were encountered while processing:
 qgis-providers
 qgis
 qgis-plugin-grass
 python3-qgis

-----

I removed all qgis packages and then i reinstalled them:
---
    sudo apt remove *qgis*
    sudo apt autoremove
    sudo apt upgrade
    sudo apt install qgis
---

Despite this, the same error still appears.

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"

uname -a
Linux IDRO-58 5.14.0-051400-generic #202108292331 SMP Sun Aug 29 23:33:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

The postinst script contains a call to a binary called crssync (/usr/lib/qgis/crssync) which seems to be broken (it's also contained in the deb pkg and it also raises a segmentation fault):

~$ /usr/lib/qgis/crssync
Segmentation fault (core dumped)

description: updated
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qgis (Ubuntu):
status: New → Confirmed
Revision history for this message
Addam Dominec (adominec) wrote :

Interestingly enough, the `crssync` binary crashes only when trying to exit:

```
/usr/lib/qgis/crssync --verbose
Synchronizing CRS database with GDAL/PROJ definitions.
No CRS updates were necessary.
Segmentation fault
```

Backtrace points me to `osgeo::proj::common::UnitOfMeasure::~UnitOfMeasure()` but I have no debugging symbols to actually investigate the error.

Anyway, silencing the error seems like a reasonable workaround to me. I just added `|| true` to the troublesome line in `postinst` script. The attached file `edit-postinst.sh` can be used to modify existing archive `qgis-providers_3.22.8+dfsg-1_amd64.deb` in this manner.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.