Unable to install sympa with dbconfig-no-thanks

Bug #1576618 reported by EOLE team
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sympa (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,

I'm trying to install sympa automatically, without database management (done later by another tool), so I installed dbconfig-no-thanks before installing sympa and it fails with the following error :

    Adding system user: sympa.
    /etc/sympa/sympa.conf file has been created
    /etc/sympa/wwsympa.conf file has been created
    Unknown database type .
    dpkg: erreur de traitement du paquet sympa (--configure) :
     le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1

I think the sympa postinst should take care of this case, as describe in dbconfig-common documentation.

Regards.

lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial

Tags: bionic xenial
Revision history for this message
EOLE team (eole-team) wrote :

As reported on dbconfig-common mailing list[1], the code in postinst should be protected by a test.

[1] https://lists.alioth.debian.org/pipermail/dbconfig-common-devel/2016-April/000831.html

Revision history for this message
EOLE team (eole-team) wrote :

The upgrade of the database should be protected too:

https://anonscm.debian.org/cgit/collab-maint/sympa.git/tree/debian/sympa.postinst#n398

Regards.

Revision history for this message
EOLE team (eole-team) wrote :

The problem exists on Bionic too.

tags: added: bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in sympa (Ubuntu):
status: New → Confirmed
Revision history for this message
Mitar (mitar) wrote :

Still present on Jammy.

Revision history for this message
Mitar (mitar) wrote :

You can call before installation:

echo sympa sympa/dbconfig-install boolean false | debconf-set-selections

This prevents attempts at database install, but it fails later on when postinst script calls health check.

Revision history for this message
Mitar (mitar) wrote :

I was able to install it with:

apt-get update
touch /etc/aliases
echo sympa sympa/listmaster string "<email address hidden>" | debconf-set-selections
apt-get --yes --no-install-recommends install dbconfig-sqlite3 sympa

After that you can remove /var/lib/dbconfig-common/sqlite3/sympa.

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.