# Migration 0021\_migrate\_to\_bullseye did not complete (mariadb-common)

**URL:** <https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264>\
**Category:** Support\
**Tags:** french\
**Created:** [September 16, 2022, 12:25pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264 "2022-09-16T12:25:34Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [September 16, 2022, 12:25pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/1 "2022-09-16T12:25:34Z")

</div>

* * *

## 🇫🇷

### 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:

```plaintext
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!

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [September 17, 2022, 6:01pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/2 "2022-09-17T18:01:09Z")

</div>

> [@DBR](#):
>
> ```auto
> 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
> 
> ```

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 …?

---

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [September 18, 2022, 4:11pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/3 "2022-09-18T16:11:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)\
**Post date:** [September 18, 2022, 8:38pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/4 "2022-09-18T20:38:27Z")

</div>

i’m having [issues with mariadb-common](https://paste.yunohost.org/raw/anikofebin) 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?

---

<div class="post-metadata">

**Author:** ![tigresansrayure](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tigresansrayure/32/447_2.png) [@tigresansrayure](https://forum.yunohost.org/u/tigresansrayure)\
**Post date:** [September 24, 2022, 12:23pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/5 "2022-09-24T12:23:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [September 28, 2022, 12:57pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/6 "2022-09-28T12:57:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [September 29, 2022, 3:21pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/7 "2022-09-29T15:21:21Z")

</div>

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:

```bash
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

```

---

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [September 30, 2022, 12:37pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/8 "2022-09-30T12:37:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [September 30, 2022, 2:14pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/9 "2022-09-30T14:14:03Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [September 30, 2022, 3:34pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/10 "2022-09-30T15:34:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [September 30, 2022, 4:04pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/11 "2022-09-30T16:04:27Z")

</div>

du coup essayons:

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

```

---

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [September 30, 2022, 5:02pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/12 "2022-09-30T17:02:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [September 30, 2022, 8:02pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/13 "2022-09-30T20:02:33Z")

</div>

> [@unmy](#):
>
> i’m having [issues with mariadb-common](https://paste.yunohost.org/raw/anikofebin) as well

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

```auto

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](https://forum.yunohost.org/t/migration-to-ynh11-runs-great-but-not-every-time-mariadb-issue/21320/7) (just a few days ago). The fix is available for apt, to be sure to receive it I would

```auto
$ 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`
```

---

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [September 30, 2022, 9:37pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/14 "2022-09-30T21:37:05Z")

</div>

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](https://paste.yunohost.org/raw/ocisarumih)

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [October 2, 2022, 11:10am UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/15 "2022-10-02T11:10:00Z")

</div>

```auto
+ 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.

---

<div class="post-metadata">

**Author:** ![DBR](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@DBR](https://forum.yunohost.org/u/DBR)\
**Post date:** [October 2, 2022, 1:53pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/16 "2022-10-02T13:53:38Z")

</div>

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

Merci pour votre aide !

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [November 1, 2022, 1:53pm UTC](https://forum.yunohost.org/t/migration-0021-migrate-to-bullseye-did-not-complete-mariadb-common/21264/17 "2022-11-01T13:53:53Z")

</div>

Closed on November 1, 2022, 1:53pm UTC

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