L’opération "Installer l’application kanboard'' a échoué

J’ai rajouté un autre correctif sur la branche … est-ce que tu peux retenter l’installer avec

yunohost app install https://github.com/YunoHost-Apps/kanboard_ynh/tree/fix-php-dom-dep

Désolé, toujours pas:

Info : Installation de l’application kanboard …
Info : [....................] > Validating installation parameters...
Info : [....................] > Storing installation settings...
Info : [++++++..............] > Installing dependencies...
Attention : E: Packages need to be removed but remove is disabled.
Attention : E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Attention : You might want to run 'apt --fix-broken install' to correct these.
Attention : The following packages have unmet dependencies:
Attention :  php-zip : Depends: php7.0-zip but it is not going to be installed
Attention : Unable to install dependencies
Erreur : Impossible d’installer kanboard : Une erreur est survenue dans le script d’installation de l’application
Info : L’opération 'Installer l’application 'kanboard'' a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en utilisant la commande 'yunohost log display 20200605-154246-app_install-kanboard --share'
Attention : Here's an extract of the logs before the crash. It might help debugging the error:
Info : DEBUG - Building dependency tree...
Info : DEBUG - Reading state information...
Info : DEBUG - Correcting dependencies... Done
Info : DEBUG - The following packages will be REMOVED:
Info : WARNING - E: Packages need to be removed but remove is disabled.
Info : DEBUG -   kanboard-ynh-deps
Info : DEBUG - 0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded.
Info : DEBUG - ++ sed 's/^ Depends: //'
Info : DEBUG - ++ sed s/,//g
Info : DEBUG - ++ grep Depends
Info : DEBUG - ++ dpkg --info /tmp/tmp.nW9PJFA89t/kanboard-ynh-deps_1.2.12~ynh1_all.deb
Info : DEBUG - + local 'dependencies=php-gd php-zip php7.0-dom php7.0-mbstring'
Info : DEBUG - + sed --quiet '/--fix-broken/,$p'
Info : DEBUG - + ynh_package_install php-gd php-zip php7.0-dom php7.0-mbstring --dry-run
Info : DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install php-gd php-zip php7.0-dom php7.0-mbstring --dry-run
Info : DEBUG - + ynh_wait_dpkg_free
Info : DEBUG - + return 0
Info : DEBUG - + LC_ALL=C
Info : DEBUG - + DEBIAN_FRONTEND=noninteractive
Info : DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install php-gd php-zip php7.0-dom php7.0-mbstring --dry-run
Info : DEBUG - + ynh_die '--message=Unable to install dependencies'
Attention : Supprimer l’application après l’échec de l’installation …
Info : [....................] > Loading installation settings...
Info : [+++++++.............] > Removing dependencies...
Attention : ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Attention : ynh_secure_remove called with empty argument, ignoring.
Info : [#######+++..........] > Removing the MySQL database...
Info : [##########..........] > Removing app main directory...
Info : [##########+.........] > Removing nginx web server configuration...
Info : '/etc/nginx/conf.d/lrouff.net.d/kanboard.conf' wasn't deleted because it doesn't exist.
Info : [###########+........] > Removing php-fpm configuration...
Info : '/etc/php/7.0/fpm/pool.d/kanboard.conf' wasn't deleted because it doesn't exist.
Info : [############+++++...] > Removing fail2ban configuration...
Info : '/etc/fail2ban/jail.d/kanboard.conf' wasn't deleted because it doesn't exist.
Info : '/etc/fail2ban/filter.d/kanboard.conf' wasn't deleted because it doesn't exist.
Attention : The user kanboard was not found
Info : [#################++.] > Removing the dedicated system user...
Info : [####################] > Removal of kanboard completed
Erreur : L’opération 'Installer l’application 'kanboard'' a échoué ! 

@_@

Et si tu tentes manuellement apt install php7.0-zip ?

apt install php7.0-zip
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 php7.0-zip : Dépend: php7.0-common (= 7.0.33-0+deb9u7) mais 7.0.33-29+0~20200514.36+debian9~1.gbp126f6f devra être installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

Et apt policy php7.0-zip ? :confused:

apt policy php7.0-zip
php7.0-zip:
  Installé : (aucun)
  Candidat : 7.0.33-0+deb9u7
 Table de version :
     7.0.33-29+0~20200514.36+debian9~1.gbp126f6f 50
         50 https://packages.sury.org/php stretch/main amd64 Packages
     7.0.33-0+deb9u7 500
        500 http://security.debian.org stretch/updates/main amd64 Packages
     7.0.33-0+deb9u6 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages

Mouarf bon c’est encore super compliqué mais si t’as encore de la patience:

Tu peux ouvrir le fichier de preferences de apt avec

nano /etc/apt/preferences.d/extra_php_version

Puis au tout début rajouter:

Package: php7.0*
Pin: origin "packages.sury.org"
Pin-Priority: 600

Enregistrer/quitter avec Ctrl+X (puis Y et Entrée pour valider)

Puis retenter un apt policy php7.0-zip

Si tu as bien Candidat: 7.0.33-29+0~20200514.36+debian9~1.gbp126f6f

alors tente un apt install php7.0-zip

C’est bon cette fois, les paquets

libzip4 php7.0-zip

ont été installés.

Dois-je maintenant faire l’installation à partir de ton fix ou de la webadmin?

Merci !

A partir de mon fix, oui

Bravo ! C’est bon Kanboard est installé et semble fonctionner. Je m’en vais la tester maintenant.
Un grand merci Aleks :clap:

1 Like

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