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

wrror updating dietpi

Post by Tarrasque »

Hi.

I tried updating my RPi3 with dietpi-update.

The process fails because it seems there's a problem with mariadb.

What could be the problem?

Code: Select all

APT upgrade
- Command: apt-get -qq upgrade
- Exit code: 100
- DietPi version: v6.25.3 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 | DISTRO: 4
- Image creator: DietPi Core Team
- Pre-image: Raspbian Lite
- Error log:
Setting up mariadb-server-10.1 (10.1.47-0+deb9u1) ...
dpkg: error processing package mariadb-server-10.1 (--configure):
  subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
  mariadb-server depends on mariadb-server-10.1 (>= 10.1.47-0+deb9u1); however:
    Package mariadb-server-10.1 is not configured yet.
dpkg: error processing package mariadb-server (--configure):
  dependency problems - leaving unconfigured
Errors were encountered while processing:
  mariadb-server-10.1
  mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: wrror updating dietpi

Post by Joulinar »

Hi,

many thanks for your message. Before a DietPi update will be implemented, your system is trying to update all packaged manages by apt package manager.

Looks like this is failing in your case. As far as I can see, you are on a very old DietPi release (1,5 years) and I guess quite some packages are pending to be updated now. Let's try to get it sorted.

pls can you run apt update && apt upgrade and post full output.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

Yes, my installation is quite old but it's your fault. My mini DietPi server works so well that sometimes I forget I have it.

I did the upgrade. The output is fairly long but basically it fails with the same packege.


dpkg: errore nell'elaborare il pacchetto mariadb-server-10.1 (--configure):
il sottoprocesso installato script di post-installation ha restituito lo stato di errore 1

...

dpkg: problemi con le dipendenze impediscono la configurazione di mariadb-server:
mariadb-server dipende da mariadb-server-10.1 (>= 10.1.47-0+deb9u1); comunque:
Il pacchetto mariadb-server-10.1 non è ancora configurato.

...

dpkg: errore nell'elaborare il pacchetto mariadb-server (--configure):
problemi con le dipendenze - lasciato non configurato

...

Si sono verificati degli errori nell'elaborazione:
mariadb-server-10.1
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: wrror updating dietpi

Post by Joulinar »

Tarrasque wrote: Fri Jan 29, 2021 10:48 pm but it's your fault.
Not sure why it is my fault but ok

can you post dpkg -l maria*
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

Joulinar wrote: Fri Jan 29, 2021 11:19 pm
Tarrasque wrote: Fri Jan 29, 2021 10:48 pm but it's your fault.
Not sure why it is my fault but ok

can you post dpkg -l maria*
That's because I thought you were in the development team ;)


Code: Select all

dietpi@DietPi:~$ dpkg -l maria*
Voluto=U (non noto)/I (installato)/R (rimosso)/P (rimosso totale)/H (in attesa)
| Stato=Non/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(nessuno)/R (reinstallazione richiesta) (Stato,Err: maiuscolo=grave)
||/ Nome                                      Versione                  Architettura              Descrizione
+++-=========================================-=========================-=========================-========================================================================================
un  mariadb-client-10.0                       <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
ii  mariadb-client-10.1                       10.1.47-0+deb9u1          armhf                     MariaDB database client binaries
un  mariadb-client-5.5                        <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-client-core-10.0                  <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
ii  mariadb-client-core-10.1                  10.1.47-0+deb9u1          armhf                     MariaDB database core client binaries
un  mariadb-client-core-5.5                   <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
ii  mariadb-common                            10.1.47-0+deb9u1          all                       MariaDB common metapackage
un  mariadb-galera-server                     <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-galera-server-10.0                <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-galera-server-5.5                 <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
iU  mariadb-server                            10.1.47-0+deb9u1          all                       MariaDB database server (metapackage depending on the latest version)
un  mariadb-server-10.0                       <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
iF  mariadb-server-10.1                       10.1.47-0+deb9u1          armhf                     MariaDB database server binaries
un  mariadb-server-5.5                        <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-server-core-10.0                  <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
ii  mariadb-server-core-10.1                  10.1.47-0+deb9u1          armhf                     MariaDB database core server files
un  mariadb-server-core-5.5                   <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-test                              <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-tokudb-engine-10.0                <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-tokudb-engine-10.1                <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
un  mariadb-tokudb-engine-5.5                 <nessuna>                 <nessuna>                 (nessuna descrizione disponibile)
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: wrror updating dietpi

Post by Joulinar »

Hi,

the step you are failing is a default Debian functionality. At the moment your system is trying to update Debian software packages using APT package manager. This has nothing to do with DietPi and could not have been prevented by DietPi !!

For your reference I'm linking a Wikipedia page describing APT

https://en.wikipedia.org/wiki/APT_(soft ... tributions.

Looks like MariaDB software package is in an undefined status. Let's try to get it corrected

Code: Select all

apt --reinstall install mariadb-server-10.1
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

Mh. Seems it can't find the package in the repository

dietpi@DietPi:/mnt/storage/aMule/Completed$ sudo apt --reinstall install mariadb-server-10.1
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
libbluray2 libicu64
Usare "sudo apt autoremove" per rimuoverli.
0 aggiornati, 0 installati, 1 reinstallati, 0 da rimuovere e 0 non aggiornati.
2 non completamente installati o rimossi.
Dopo quest'operazione, verranno occupati 0 B di spazio su disco.
E: Internal Error, No file name for mariadb-server-10.1:armhf
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: wrror updating dietpi

Post by Joulinar »

let's try it manually. pls use user root

Code: Select all

cd /tmp/
wget http://raspbian.raspberrypi.org/raspbian/pool/main/m/mariadb-10.1/mariadb-server-10.1_10.1.47-0+deb9u1_armhf.deb
dpkg -i mariadb-server-10.1_10.1.47-0+deb9u1_armhf.deb
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Tarrasque
Posts: 23
Joined: Wed Jun 26, 2019 11:13 am

Re: wrror updating dietpi

Post by Tarrasque »

Seems there are still errors during the installation process

dietpi@DietPi:/tmp$ sudo dpkg -i mariadb-server-10.1_10.1.47-0+deb9u1_armhf.deb
(Lettura del database... 81454 file e directory attualmente installati.)
Preparativi per estrarre mariadb-server-10.1_10.1.47-0+deb9u1_armhf.deb...
/var/lib/mysql: found previous version 10.1
Estrazione di mariadb-server-10.1 (10.1.47-0+deb9u1) su (10.1.47-0+deb9u1)...
Configurazione di mariadb-server-10.1 (10.1.47-0+deb9u1)...
dpkg: errore nell'elaborare il pacchetto mariadb-server-10.1 (--install):
il sottoprocesso installato script di post-installation ha restituito lo stato
di errore 1
Elaborazione dei trigger per systemd (232-25+deb9u12)...
Si sono verificati degli errori nell'elaborazione:
mariadb-server-10.1
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: wrror updating dietpi

Post by Joulinar »

looks like MariaDB package is brocken completely. Before next step, I recommend to create a dietpi-backup or better to clone you SD card as we will remove MariaDB and try to get it installed again.

Code: Select all

systemctl stop mariadb.service
apt remove mariadb-server-10.1
apt update
apt install mariadb-server
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply