Impossible d'installer Garradin

Mon serveur YunoHost
Matériel: serveur dédié KimSufi
Version de YunoHost: 4.3.6.2
J’ai accès à mon serveur : En SSH |

Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ?: non

Description du problème

Bonjour,
Etant gestionnaire d’un club sportif, j’ai voulu tester l’application Garradin.
J’ai lancer l’installation. Elle plante avec l’erreur suivante : https://paste.yunohost.org/raw/ojewivaziy
Il semble falloir des dépdéndances avec le PHP7.4.

Pouvez vous m’aider?

Merci.
Cordialement,

Est-ce que tu peux partager la sortie de apt policy php-imagick et apt policy php7.4-imagick ?

Voici la sortie de apt policy php-imagick
php-imagick:
Installed: 3.4.3-4.1
Candidate: 3.4.3-4.1
Version table:
3.6.0-4+0~20220117.35+debian10~1.gbp149f82 -1
500 Index of /php/ buster/main amd64 Packages
*** 3.4.3-4.1 500
500 Index of /debian buster/main amd64 Packages
100 /var/lib/dpkg/status

et celle de apt policy php7.4-imagick

php7.4-imagick:
Installed: (none)
Candidate: 3.6.0-4+0~20220117.35+debian10~1.gbp149f82
Version table:
3.6.0-4+0~20220117.35+debian10~1.gbp149f82 500
500 Index of /php/ buster/main amd64 Packages
Merci !

(C’est un soucis un peu “classique” mais très technique - pas sur d’en connaître la cause exacte mais j’ai déjà aidé plusieurs personnes à le dépatouiller, je sais juste plus quelle est la manip exacte à faire mais on va la retrouver)

Est-ce que tu peux partager le retour de apt remove php-imagick --dry-run ?

ok je te remercie !
Voici le retour de la commande :
apt remove php-imagick --dry-run
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don’t depend on the relevance to the real current situation!
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
fontconfig fonts-droid-fallback fonts-noto-mono ghostscript gsfonts hicolor-icon-theme imagemagick imagemagick-6-common imagemagick-6.q16 libarchive13 libavahi-client3 libavahi-common-data
libavahi-common3 libc-client2007e libcairo2 libcups2 libcupsfilters1 libcupsimage2 libdatrie1 libde265-0 libdjvulibre-text libdjvulibre21 libfftw3-double3 libgpgme11 libgraphite2-3 libgs9 libgs9-common
libharfbuzz0b libheif1 libijs-0.35 libilmbase23 libjansson4 libjbig2dec0 libjxr-tools libjxr0 liblcms2-2 libldb1 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
libnetpbm10 libnuma1 libopenexr23 libopenjp2-7 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1 libpixman-1-0 libsmbclient libtalloc2 libtdb1 libtevent0 libthai-data
libthai0 libwbclient0 libwebpmux3 libwmf0.2-7 libx265-165 libxcb-render0 libxcb-shm0 libxext6 libxrender1 libzip4 mlock netpbm php-apcu php-apcu-bc php-igbinary php-redis php7.3-bcmath php7.3-bz2
php7.3-gmp php7.3-imap php7.3-zip poppler-data python-crypto python-gpg python-ldb python-samba python-talloc python-tdb samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient
ttf-dejavu-core
Use ‘apt autoremove’ to remove them.
The following packages will be REMOVED:
nextcloud-ynh-deps php-imagick
0 upgraded, 0 newly installed, 2 to remove and 28 not upgraded.
Remv nextcloud-ynh-deps [22.2.3~ynh1]
Remv php-imagick [3.4.3-4.1]

Oké, avant d’essayer de résoudre le problème pour de vrai, est-ce que tu peux partager le retour de apt show nextcloud-ynh-deps ?

Hello,
Voici le résultat :

Package: nextcloud-ynh-deps
Version: 22.2.3~ynh1
Status: install ok installed
Priority: optional
Section: misc
Maintainer: root root@packer-output-16780523-a26c-4263-b42b-03d83c650e7c
Installed-Size: 10.2 kB
Depends: imagemagick, libmagickcore-6.q16-6-extra, acl, tar, smbclient, at, php7.3-bz2, php7.3-imap, php7.3-gmp, php7.3-gd, php7.3-json, php7.3-intl, php7.3-curl, php7.3-apcu, php7.3-redis, php7.3-ldap, php7.3-imagick, php7.3-zip, php7.3-mbstring, php7.3-xml, php7.3-mysql, php7.3-igbinary, php7.3-bcmath
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Fake package for nextcloud (YunoHost app) dependencies
This meta-package is only responsible of installing its dependencies.

Est-ce que j’essaie de retirer le package php-imagick?

Je pense qu’on peut tenter un dpkg --remove php-imagick --force-depends, puis apt install php7.3-imagick php7.4-imagick

J’ai cette erreur à la 1ère commande : sudo dpkg --remove php-imagick --force-depends

dpkg: error: --remove needs a valid package name but ‘–force-depends’ is not: illegal package name in specifier ‘–force-depends’: must start with an alphanumeric character

Type dpkg --help for help about installing and deinstalling packages [*];
Use ‘apt’ or ‘aptitude’ for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through ‘less’ or ‘more’ !

J’ai inversé les arguments de la commande : sudo dpkg --force-depends --remove php-imagick
Voici le résultat :
dpkg: php-imagick: dependency problems, but removing anyway as you requested:
nextcloud-ynh-deps depends on php7.3-imagick; however:
Package php7.3-imagick is not installed.
Package php-imagick which provides php7.3-imagick is to be removed.

(Reading database … 58735 files and directories currently installed.)
Removing php-imagick (3.4.3-4.1) …

Et la 2e commande :
sudo apt install php7.3-imagick php7.4-imagick
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:
php7.4-imagick : Depends: php7.4-common but it is not going to be installed
Depends: phpapi-20190902
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Je ne me rappelle plus la solution… j’ai eu moi aussi ce soucis et on avait résolu ce problème de dépendances…
Par contre, voici les retours de imagick au cas où ça aide, sachant que j’ai Nextcloud et 2 Garradin installés…

$ apt policy php-imagick
php-imagick:
  Installed: (none)
  Candidate: 3.4.3-4.1
  Version table:
     3.6.0-4+0~20220117.35+debian10~1.gbp149f82 -1
        500 https://packages.sury.org/php buster/main amd64 Packages
     3.4.3-4.1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages

$ apt policy php7.4-imagick
php7.4-imagick:
  Installed: 3.6.0-4+0~20220117.35+debian10~1.gbp149f82
  Candidate: 3.6.0-4+0~20220117.35+debian10~1.gbp149f82
  Version table:
 *** 3.6.0-4+0~20220117.35+debian10~1.gbp149f82 500
        500 https://packages.sury.org/php buster/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt policy php7.3-imagick
php7.3-imagick:
  Installed: 3.6.0-4+0~20220117.35+debian10~1.gbp149f82
  Candidate: 3.6.0-4+0~20220117.35+debian10~1.gbp149f82
  Version table:
 *** 3.6.0-4+0~20220117.35+debian10~1.gbp149f82 500
        500 https://packages.sury.org/php buster/main amd64 Packages
        100 /var/lib/dpkg/status

J’ai aussi php7.3-imagick…
As-tu essayé du coup un sudo apt --fix-broken install ?

Je me demande du coup comme je maintiens l’application si on ne pourrait pas se passer de imagick comme dépendances et ne garder que gd:
https://fossil.kd2.org/garradin/wiki?name=Installation
il faudrait que je teste, cela serait peut-être la solution…

Salut, je viens de tester sur la branche testing et d’upgrader une version stable, ça semble fonctionner… Est-ce que tu peux tester
sudo yunohost app install https://github.com/YunoHost-Apps/garradin_ynh/tree/testing ?

Salut Rodinux,
J’ai testé la commande sudo apt --fix-broken install et j’ai réinstallé derrière.
Ca a fonctionné.
Par contre, je n’ai pas testé ta version de test.
Veux-tu que je réinstalle à partir de ta version de test?

Comme tu veux, je pense que ça fonctionne, mais je devrais faire plusieurs tests pour en être sûr que cela ne produira plus ce problème de dépendances avec Nextcloud et imagick…
Si ça fonctionne ainsi, dans le prochain PR de garradin, il n’y aura plus cette dépendance de php7.4-imagick qui apparemment n’est pas indispensable si je garde que php7.4-gd.

d’ailleurs si @Aleks est ok, je suis en train de faire un PR pour l’upgrade de garradin next update by rodinux · Pull Request #80 · YunoHost-Apps/garradin_ynh · GitHub

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