Migration 0021_migrate_to_bullseye did not complete (mariadb-common)


:fr:

Mon serveur YunoHost

Matériel: Serveur dédié Online
Version de YunoHost: 4.4.2.6
J’ai accès à mon serveur : SSH / WebAdmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Si oui, expliquer:

Description du problème

Je souhaite migrer vers la dernière version de Yunohost via la commande: sudo yunohost tools migrations migrate --accept-disclaimer et upgrade ma distro sur Debian 11 et je n’arrive pas à passer l’étape Failed to reinstall mariadb-common. J’ai l’impression que je ne peut plus upgrade/supprimer des paquets.
Voici les logs:

ended_at: 2022-09-16 12:15:35.850273
error: 'Migration 0021_migrate_to_bullseye did not complete, aborting. Error: Failed
  to reinstall mariadb-common ?'
interface: cli
operation: tools_migrations_migrate_forward
parent: null
started_at: 2022-09-16 12:15:30.013435
success: false
yunohost_version: 4.4.2.6

============

2022-09-16 14:15:30,019: INFO - Running migration 0021_migrate_to_bullseye...
2022-09-16 14:15:30,024: INFO - Starting migration to Bullseye
2022-09-16 14:15:30,654: INFO - Patching the sources.lists...
2022-09-16 14:15:31,134: INFO - Fetching available upgrades for system packages...
2022-09-16 14:15:31,212: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease
2022-09-16 14:15:31,245: DEBUG - Hit:2 http://deb.debian.org/debian bullseye InRelease
2022-09-16 14:15:31,246: DEBUG - Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
2022-09-16 14:15:31,255: DEBUG - Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
2022-09-16 14:15:31,278: DEBUG - Hit:5 http://download.onlyoffice.com/repo/debian squeeze InRelease
2022-09-16 14:15:31,459: DEBUG - Hit:6 https://packages.sury.org/php bullseye InRelease
2022-09-16 14:15:32,641: DEBUG - Reading package lists...
2022-09-16 14:15:33,878: DEBUG - Done
2022-09-16 14:15:34,329: INFO - Applying patch to workaround conflict issue...
2022-09-16 14:15:34,348: DEBUG - Running: sed -i /var/lib/dpkg/status -e 's@Conflicts: apache2, bind9@Conflicts: apache2, bind9@g'
2022-09-16 14:15:34,397: DEBUG - Running: LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none apt install --quiet -o=Dpkg::Use-Pty=0 --fix-broken --assume-yes mariadb-common --reinstall -o Dpkg::Options::='--force-confmiss'
2022-09-16 14:15:34,405: DEBUG - 
2022-09-16 14:15:34,405: WARNING - WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2022-09-16 14:15:34,406: DEBUG - 
2022-09-16 14:15:34,561: INFO - + Reading package lists...
2022-09-16 14:15:34,724: INFO - + Building dependency tree...
2022-09-16 14:15:34,725: INFO - + Reading state information...
2022-09-16 14:15:34,750: INFO - + You might want to run 'apt --fix-broken install' to correct these.
2022-09-16 14:15:34,750: INFO - + The following packages have unmet dependencies:
2022-09-16 14:15:34,829: INFO - +  g++ : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
2022-09-16 14:15:34,830: INFO - +  g++-8 : Depends: gcc-8 (= 8.3.0-6) but it is not installable
2022-09-16 14:15:34,830: INFO - +  gcc : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
2022-09-16 14:15:34,831: INFO - +  nextcloud-ynh-deps : Depends: php7.3-mbstrinphp7.3-xml but it is not installable
2022-09-16 14:15:34,832: INFO - +  roundcube-ynh-deps : Depends: php7.3-mbstrinphp7.3-dom but it is not installable
2022-09-16 14:15:34,832: INFO - +  snappymail-ynh-deps : Depends: php7.4-mbstrinphp7.4 but it is not installable
2022-09-16 14:15:34,832: INFO - +  vaultwarden-ynh-deps : Depends: pkg-confilibssl-dev but it is not installable
2022-09-16 14:15:34,833: INFO - +  wordpress-ynh-deps : Depends: php7.3-mbstrinphp7.3-xml but it is not installable
2022-09-16 14:15:34,847: WARNING - E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
2022-09-16 14:15:35,848: ERROR - Migration 0021_migrate_to_bullseye did not complete, aborting. Error: Failed to reinstall mariadb-common ?
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/tools.py", line 942, in tools_migrations_run
    migration.run()
  File "/usr/lib/moulinette/yunohost/data_migrations/0021_migrate_to_bullseye.py", line 163, in run
    raise YunohostError("Failed to reinstall mariadb-common ?", raw_msg=True)
yunohost.utils.error.YunohostError: Failed to reinstall mariadb-common ?

Merci pour votre temps!

Uuuuuuh ben ça c’est chelou, ça ressemble à un truc qui aurait grave magouillé le fichier dpkg et aurait créé un bug de syntaxe dedans … Est-ce que tu as fait des manips particulières …?

Absolument aucune modification hors celles préconisées par le guide de migration

i’m having issues with mariadb-common as well when attempting migration and yes i’ve tampered with some things in the past, but im pretty sure they where the same things i modified on another server where the migration was successful so im pretty confused.

is there a way to reset those things in order to try the migration again?
or is there another way?

1 Like

Bonjour,

Je viens de rencontrer exactement le même soucis.
Tout comme DBR, je n’ai pas fait de modification particulière.

En relançant immédiatement après la migration, sans faire de ‘sudo apt install --fix-broken’ ou quoique ce soit, je n’ai plus d’erreur.


Just encountered the same issue.
As DBR, I did not tempered with anything in particular.

I immediately retried the migration, without trying ‘sudo apt install --fix-broken’ or anything else, and it worked.

Hope this helps.

Après un apt install --fix-broken, voici le résultat:

sudo apt install --fix-broken
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… failed.
The following packages have unmet dependencies:
g++ : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
g+±8 : Depends: gcc-8 (= 8.3.0-6) but it is not installable
gcc : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
nextcloud-ynh-deps : Depends: php7.3-mbstrinphp7.3-xml but it is not installable
roundcube-ynh-deps : Depends: php7.3-mbstrinphp7.3-dom but it is not installable
snappymail-ynh-deps : Depends: php7.4-mbstrinphp7.4 but it is not installable
vaultwarden-ynh-deps : Depends: pkg-confilibssl-dev but it is not installable
wordpress-ynh-deps : Depends: php7.3-mbstrinphp7.3-xml but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Je me rends compte que je ne peut plus installer d’app ni créer de sous domaine via l’admin web Yunohost

Bon je ne sais pas ce qu’il s’est passé pour en arriver là mais bon, on peut tenter de réparer le truc avec:

sudo sed -i 's@mbstrinphp@mbstring, php@g' /var/lib/dpkg/status
sudo sed -i 's@pkg-confilib@pkg-config, lib@g' /var/lib/dpkg/status

Jusque là, toujours la même erreur: https://paste.yunohost.org/raw/hawomuhumo

Beh du coup non c’est pas la même erreur, les erreurs concernant les ynh-deps ont disparu …

Donc essayons de régler les autres avec:

sudo apt remove g++ g++-8 gcc --dry-run

Voici le résultat:

sudo apt remove g++ g+±8 gcc --dry-run
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
build-essential : Depends: gcc (>= 4:8.3) but it is not going to be installed
Depends: g++ (>= 4:8.3) but it is not going to be installed
libtool : Depends: gcc but it is not going to be installed or
c-compiler
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

et le fix broken install:

The following packages have unmet dependencies:
g++ : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
g+±8 : Depends: gcc-8 (= 8.3.0-6) but it is not installable
gcc : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

du coup essayons:

sudo apt remove g++ g+±8 gcc build-essential libtool --dry-run 

et voici:

sudo apt remove g++ g++8 gcc build-essential libtool --dry-run
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘liblablgtk2-gnome-ocaml-dev-g8ns9’ for regex ‘g++8’
Note, selecting ‘libocplib-endian-ocaml-dev-wwg80’ for regex ‘g++8’
Note, selecting ‘4g8’ for regex ‘g++8’
Note, selecting ‘libgeocoding8’ for regex ‘g++8’
Note, selecting ‘libntfs-3g883’ for regex ‘g++8’
Note, selecting ‘libopus-ocaml-2klg8’ for regex ‘g++8’
Note, selecting ‘g810-led’ for regex ‘g++8’
Note, selecting ‘libconfig8-dev’ for regex ‘g++8’
Note, selecting ‘python-pg8000-doc’ for regex ‘g++8’
Note, selecting ‘libocplib-endian-ocaml-wwg80’ for regex ‘g++8’
Note, selecting ‘libg810-led-dev’ for regex ‘g++8’
Note, selecting ‘python3-pg8000’ for regex ‘g++8’
Note, selecting ‘libjpeg8-dev’ for regex ‘g++8’
Note, selecting ‘libg810-led0’ for regex ‘g++8’
Note, selecting ‘libopus-ocaml-dev-2klg8’ for regex ‘g++8’
Note, selecting ‘liblablgtk2-gnome-ocaml-g8ns9’ for regex ‘g++8’
Note, selecting ‘liblablgtk2-gnome-ocaml’ instead of ‘liblablgtk2-gnome-ocaml-g8ns9’
Note, selecting ‘liblablgtk2-gnome-ocaml-dev’ instead of ‘liblablgtk2-gnome-ocaml-dev-g8ns9’
Package ‘libconfig8-dev’ is not installed, so not removed
Package ‘libjpeg8-dev’ is not installed, so not removed
Note, selecting ‘libocplib-endian-ocaml’ instead of ‘libocplib-endian-ocaml-wwg80’
Note, selecting ‘libocplib-endian-ocaml-dev’ instead of ‘libocplib-endian-ocaml-dev-wwg80’
Note, selecting ‘libopus-ocaml’ instead of ‘libopus-ocaml-2klg8’
Note, selecting ‘libopus-ocaml-dev’ instead of ‘libopus-ocaml-dev-2klg8’
Package ‘4g8’ is not installed, so not removed
Package ‘g810-led’ is not installed, so not removed
Package ‘libg810-led-dev’ is not installed, so not removed
Package ‘libg810-led0’ is not installed, so not removed
Package ‘libgeocoding8’ is not installed, so not removed
Package ‘libntfs-3g883’ is not installed, so not removed
Package ‘python-pg8000-doc’ is not installed, so not removed
Package ‘python3-pg8000’ is not installed, so not removed
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
dh-autoreconf : Depends: libtool (>= 2.4.2) but it is not going to be installed
g+±8 : Depends: gcc-8 (= 8.3.0-6) but it is not installable
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

et le fix broken install:

sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… failed.
The following packages have unmet dependencies:
g++ : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
g+±8 : Depends: gcc-8 (= 8.3.0-6) but it is not installable
gcc : Depends: gcc-8 (>= 8.3.0-1~) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Looking at your log, it is a different error than in DBR’s case:


2022-09-18 18:46:49,238: INFO - + Processing triggers for mariadb-server-10.3 (1:10.3.36-0+deb10u1) ...
2022-09-18 18:46:49,450: WARNING - postinst called with unknown argument 'triggered'
2022-09-18 18:46:49,560: WARNING - dpkg: error processing package mariadb-server-10.3 (--configure):

@tituspijean and @Lapineige found a (recent) bug report and a fix (just a few days ago). The fix is available for apt, to be sure to receive it I would

$ sudo apt clean #to remove cached packages
$ sudo apt update #to inform apt of new packages
$ yunohost tools migrations run # with some luck it will now `just work`

Après un downgrade du repo bullseye vers buster, j’ai pu mettre à jour quelques paquets, la distrib est passée sur Debian 11.

Mais toujours impossible de mettre à jour Yunohost, logs ici: https://paste.yunohost.org/raw/ocisarumih

+ The following packages have unmet dependencies:
+  ffsync-ynh-deps 

ffsync n’est plus supporté car dépends de python2, et l’upstream n’est plus maintenu. Il n’y a pas beaucoup de solution à part désinstaller complètement l’app malheureusement.

Après suppression de ffsync et upgrade, ça passe, problème résolu !

Merci pour votre aide !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.