[debian-mysql] Bug#1020301: mariadb-server-10.3: postinst called with unknown argument 'triggered'
Philipp Hahn
hahn at univention.de
Mon Sep 19 16:09:35 BST 2022
Package: mariadb-server-10.3
Version: 1:10.3.36-0+deb10u
Severity: important
Dear Maintainer,
I'm working for Univention GmbH and we're running our own piuparts
tests; while doing this I noticed the following error, which is similar
for all plugin packages connect, cracklib-password-check, gssapi-server,
mroongga, opgraph, rocksdb, spider, tokudb:
> Preparing to unpack .../mariadb-plugin-gssapi-server_10.3.36-0+deb10u1_amd64.deb ...
> Unpacking mariadb-plugin-gssapi-server:amd64 (1:10.3.36-0+deb10u1) ...
> Setting up mariadb-plugin-gssapi-server:amd64 (1:10.3.36-0+deb10u1) ...
> Processing triggers for mariadb-server-10.3 (1:10.3.36-0+deb10u1) ...
> postinst called with unknown argument 'triggered'
> dpkg: error processing package mariadb-server-10.3 (--configure):
> installed mariadb-server-10.3 package post-installation script subprocess returned error exit status 1
> Errors were encountered while processing:
> mariadb-server-10.3
> E: Sub-process /usr/bin/dpkg returned an error code (1)
Looking at the installed package itself I find this:
> # cat /var/lib/dpkg/info/mariadb-server-10.3.triggers
> interest-noawait /etc/mysql
> interest-noawait /etc/systemd/system/mariadb.service.d
but `triggered` is not handled by `mariadb-server-10.3.postinst`: https://salsa.debian.org/mariadb-team/mariadb-10.3/-/blob/buster/debian/mariadb-server-10.3.postinst#L148
> case "$1" in
> configure)
…
> ;;
> abort-upgrade|abort-remove|abort-configure)
^ Add "|trigger" here
> ;;
> *)
> echo "postinst called with unknown argument '$1'" 1>&2
> exit 1
> ;;
> esac
I do not (yet) know which debhelper generated `mariadb-server-10.3.triggers`
but the `debian/mariadb-server-10.3.postinst` template shipped in the Debian
source package should not block "$1 = triggered" but shold allow other
debhelper generated fragments inserted at #DEBHELPER# to handle this argument.
Philipp
-- System Information:
Debian Release: 11.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable'), (50, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-17-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de:en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the pkg-mysql-maint
mailing list