No problem at all, I reissued the corret command but to be hones I’ve had even less feedback than before.
Is thee any output in a file maybe?
dietpi@DietPi:~$ sudo bash -e -x /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
dietpi@DietPi:~$
/var/lib/dpkg/info/mariadb-server-10.1.postinst configure
echo $?
I’m not sure whether /usr/share/debconf/frontend is supposed to produce any output or not. This is why I’m no big fans of using all these debconf stuff, as it’s hard to debug or even understand what’s exactly going on
.
dietpi@DietPi:~$ sudo /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
dietpi@DietPi:~$ echo $?
1
That’s all I have
The frontend seems to fail. Let’s see if we get some debug output of it:
perl -w -d /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
echo $?
When i enter the command I geto into an interactive shell. Is it normal?
dietpi@DietPi:~$ sudo perl -w -d /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
Loading DB routines from perl5db.pl version 1.49_05
Editor support available.
Enter h or 'h h' for help, or 'man perldebug' for more help.
main::(/usr/share/debconf/frontend:11):
11: Debconf::Db->load;
DB<1>
Probably the following works better:
perl -w -- /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
echo $?
Here it is
dietpi@DietPi:~$ sudo perl -w -- /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
dietpi@DietPi:~$ echo $?
1
Okay, zero output but an error, I’m out of ideas what is wrong there. Probably debconf itself is broken, but it cannot be fixed (reinstalled) without fixing MariaDB first. Let’s go a more radical approach and simply make that postinst script a no-op:
echo -e '#!/bin/dash\nexit 0' > /var/lib/dpkg/info/mariadb-server-10.1.postinst
apt -f install
apt install --reinstall debconf
systemctl restart mariadb