Migration 4.x => 11.x / Failed to force the install of php dependencies

Mon serveur YunoHost

Matériel: Machine virtuelle sous ProxMox
Version de YunoHost: 4.4.3
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : non
Si oui, expliquer:

Description du problème

Je cherche à mettre à jour mon Yunohost de la version 4.x à la 11.x. Opération via la ligne de commande (sudo yunohost tools migrations run).

ended_at: 2024-03-25 12:07:05.651066
error: "La migration 0021_migrate_to_bullseye a \xE9chou\xE9 avec l'exception Failed\
  \ to force the install of php dependencies ? : annulation"
interface: cli
operation: tools_migrations_migrate_forward
parent: null
started_at: 2024-03-25 12:06:43.739822
success: false
yunohost_version: 4.4.3

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

2024-03-25 13:06:43,758: INFO - Exécution de la migration 0021_migrate_to_bullseye...
2024-03-25 13:06:43,791: INFO - Démarrage de la migration vers Bullseye
2024-03-25 13:06:45,509: INFO - Mise à jour du fichier sources.lists...
2024-03-25 13:06:45,812: INFO - Récupération des mises à jour disponibles pour les paquets du système...
2024-03-25 13:06:46,002: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease
2024-03-25 13:06:46,004: DEBUG - Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
2024-03-25 13:06:46,005: DEBUG - Hit:3 http://ftp.debian.org/debian bullseye InRelease
2024-03-25 13:06:46,019: DEBUG - Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
2024-03-25 13:06:49,184: DEBUG - Reading package lists...
2024-03-25 13:06:50,943: DEBUG - Terminé
2024-03-25 13:06:52,064: INFO - Application du correctif pour contourner le problème de conflit...
2024-03-25 13:06:52,115: DEBUG - Running: sed -i /var/lib/dpkg/status -e 's@Conflicts: apache2, bind9@Conflicts: apache2, bind9@g'
2024-03-25 13:06:52,198: 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'
2024-03-25 13:06:52,216: DEBUG - 
2024-03-25 13:06:52,217: WARNING - WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2024-03-25 13:06:52,222: DEBUG - 
2024-03-25 13:06:52,559: INFO - + Reading package lists...
2024-03-25 13:06:53,095: INFO - + Building dependency tree...
2024-03-25 13:06:53,102: INFO - + Reading state information...
2024-03-25 13:06:54,473: INFO - + 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
2024-03-25 13:06:54,477: INFO - + Need to get 37.2 kB of archives.
2024-03-25 13:06:54,480: INFO - + After this operation, 0 B of additional disk space will be used.
2024-03-25 13:06:54,483: INFO - + Get:1 http://ftp.debian.org/debian bullseye/main amd64 mariadb-common all 1:10.5.23-0+deb11u1 [37.2 kB]
2024-03-25 13:06:55,887: INFO - + Fetched 37.2 kB in 0s (620 kB/s)
2024-03-25 13:06:56,203: DEBUG - (Reading database ... 65359 files and directories currently installed.)
2024-03-25 13:06:56,218: DEBUG - Preparing to unpack .../mariadb-common_1%3a10.5.23-0+deb11u1_all.deb ...
2024-03-25 13:06:56,247: INFO - + Unpacking mariadb-common (1:10.5.23-0+deb11u1) over (1:10.5.23-0+deb11u1) ...
2024-03-25 13:06:56,393: INFO - + Setting up mariadb-common (1:10.5.23-0+deb11u1) ...
2024-03-25 13:06:56,410: DEBUG - 
2024-03-25 13:06:56,411: DEBUG - Configuration file '/etc/mysql/mariadb.cnf', does not exist on system.
2024-03-25 13:06:56,411: DEBUG - Installing new config file as you requested.
2024-03-25 13:06:56,433: DEBUG - update-alternatives: warning: forcing reinstallation of alternative /etc/mysql/mariadb.cnf because link group my.cnf is broken
2024-03-25 13:06:56,519: INFO - + Processing triggers for mariadb-server-10.5 (1:10.5.23-0+deb11u1) ...
2024-03-25 13:06:59,625: INFO - Démarrage de la mise à niveau générale...
2024-03-25 13:07:01,916: INFO - Mise à jour des paquets en cours...
2024-03-25 13:07:01,939: SUCCESS - Système mis à jour
2024-03-25 13:07:01,948: DEBUG - Pour voir le journal de cette opération 'Mettre à jour les paquets du système', utilisez la commande 'yunohost log show 20240325-120701-tools_upgrade'
2024-03-25 13:07:02,889: DEBUG - Running: LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none apt install --quiet -o=Dpkg::Use-Pty=0 --fix-broken --assume-yes php7.4-fpm php7.4-common php7.4-ldap php7.4-intl php7.4-mysql php7.4-gd php7.4-curl php-php-gettext php7.4-apcu php7.4-bcmath php7.4-bz2 php7.4-dom php7.4-gmp php7.4-igbinary php7.4-imagick php7.4-imap php7.4-mbstring php7.4-mysqli php7.4-redis php7.4-xml php7.4-zip $(dpkg --list | grep ynh-deps | awk '{print $2}') -o Dpkg::Options::='--force-confmiss'
2024-03-25 13:07:02,959: DEBUG - 
2024-03-25 13:07:02,961: WARNING - WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2024-03-25 13:07:02,966: DEBUG - 
2024-03-25 13:07:03,048: INFO - + Reading package lists...
2024-03-25 13:07:03,529: INFO - + Building dependency tree...
2024-03-25 13:07:03,546: INFO - + Reading state information...
2024-03-25 13:07:04,092: INFO - + php-php-gettext is already the newest version (1.0.12-4).
2024-03-25 13:07:04,096: INFO - + php-php-gettext set to manually installed.
2024-03-25 13:07:04,098: INFO - + php7.4-common is already the newest version (7.4.33-1+deb11u4).
2024-03-25 13:07:04,101: INFO - + php7.4-common set to manually installed.
2024-03-25 13:07:04,103: INFO - + php7.4-gd is already the newest version (7.4.33-1+deb11u4).
2024-03-25 13:07:04,106: INFO - + php7.4-gd set to manually installed.
2024-03-25 13:07:04,118: INFO - + php7.4-mbstring is already the newest version (7.4.33-1+deb11u4).
2024-03-25 13:07:04,121: INFO - + php7.4-mbstring set to manually installed.
2024-03-25 13:07:04,123: INFO - + php7.4-xml is already the newest version (7.4.33-1+deb11u4).
2024-03-25 13:07:04,126: INFO - + php7.4-xml set to manually installed.
2024-03-25 13:07:04,128: INFO - + nextcloud-ynh-deps is already the newest version (22.2.7~ynh1).
2024-03-25 13:07:04,131: INFO - + opensondage-ynh-deps is already the newest version (1.1.17~ynh2).
2024-03-25 13:07:04,134: INFO - + php7.4-apcu is already the newest version (5.1.20+4.0.11-1+0~20210304.24+debian10~1.gbp1c3d4d).
2024-03-25 13:07:04,136: INFO - + php7.4-apcu set to manually installed.
2024-03-25 13:07:04,140: INFO - + phpmyadmin-ynh-deps is already the newest version (5.1.3~ynh1).
2024-03-25 13:07:04,143: INFO - + piwigo-ynh-deps is already the newest version (12.3.0~ynh1).
2024-03-25 13:07:04,146: INFO - + rainloop-ynh-deps is already the newest version (1.16.0~ynh4).
2024-03-25 13:07:04,148: INFO - + shellinabox-ynh-deps is already the newest version (2.21~ynh2).
2024-03-25 13:07:04,151: INFO - + ttrss-ynh-deps is already the newest version (20220222~ynh1).
2024-03-25 13:07:04,153: INFO - + Some packages could not be installed. This may mean that you have
2024-03-25 13:07:04,156: INFO - + requested an impossible situation or if you are using the unstable
2024-03-25 13:07:04,158: INFO - + distribution that some required packages have not yet been created
2024-03-25 13:07:04,161: INFO - + or been moved out of Incoming.
2024-03-25 13:07:04,164: INFO - + The following information may help to resolve the situation:
2024-03-25 13:07:04,166: DEBUG - 
2024-03-25 13:07:04,167: INFO - + The following packages have unmet dependencies:
2024-03-25 13:07:04,549: INFO - +  nextcloud-ynh-deps : Depends: php7.3-redis but it is not going to be installed
2024-03-25 13:07:04,554: INFO - +                       Depends: php7.3-imagick but it is not going to be installed
2024-03-25 13:07:04,556: INFO - +                       Depends: php7.3-igbinary but it is not going to be installed
2024-03-25 13:07:04,559: INFO - +  piwigo-ynh-deps : Depends: php7.3-imagick but it is not going to be installed
2024-03-25 13:07:04,632: WARNING - E: Unable to correct problems, you have held broken packages.
2024-03-25 13:07:05,642: ERROR - La migration 0021_migrate_to_bullseye a échoué avec l'exception Failed to force the install of php dependencies ? : annulation
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/tools.py", line 944, in tools_migrations_run
    migration.run()
  File "/usr/lib/moulinette/yunohost/data_migrations/0021_migrate_to_bullseye.py", line 299, in run
    raise YunohostError(
yunohost.utils.error.YunohostError: Failed to force the install of php dependencies ?

Sur mon instance j’ai entre autres un Nextcloud et 3 myWebApp (php/Symfony)

Quand je lance la commande “lsb_release -a” ça me dit bien que que je suis sous Debian 11 (bullseye).

Je n’ai pas trouvé de problème similaire sur le forum.

Je vous remercie par avance pour votre aide.

Can you please try updating piwigo prior to migration to 13.4.0? Command (from shell) would be:

sudo yunohost app upgrade piwigo -u https://github.com/YunoHost-Apps/piwigo_ynh/tree/e896cf25ee97e32e5dc77fb526b31915de40171a

Later versions require YNH 11.x, so upgrade from web admin is a no-go :confused: