wrror updating dietpi

Having issues with your DietPi installation or found a bug? Post it here.
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

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?


Code: Select all

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:~$
User avatar
MichaIng
Site Admin
Posts: 3011
Joined: Sat Nov 18, 2017 6:21 pm

Re: wrror updating dietpi

Post by MichaIng »

Code: Select all

/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 :roll:.
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

dietpi@DietPi:~$ sudo /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
dietpi@DietPi:~$ echo $?
1


That's all I have
User avatar
MichaIng
Site Admin
Posts: 3011
Joined: Sat Nov 18, 2017 6:21 pm

Re: wrror updating dietpi

Post by MichaIng »

The frontend seems to fail. Let's see if we get some debug output of it:

Code: Select all

perl -w -d /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
echo $?
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

When i enter the command I geto into an interactive shell. Is it normal?

Code: Select all

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>
User avatar
MichaIng
Site Admin
Posts: 3011
Joined: Sat Nov 18, 2017 6:21 pm

Re: wrror updating dietpi

Post by MichaIng »

Probably the following works better:

Code: Select all

perl -w -- /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
echo $?
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

Here it is

Code: Select all

dietpi@DietPi:~$ sudo perl -w -- /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.1.postinst configure
dietpi@DietPi:~$ echo $?
1
User avatar
MichaIng
Site Admin
Posts: 3011
Joined: Sat Nov 18, 2017 6:21 pm

Re: wrror updating dietpi

Post by MichaIng »

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:

Code: Select all

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
Post Reply