Rounfcube update failed : "Unable to install core dependencies with Composer"

Bonjour.

J’ai exactement le même problème (même version, même message dans le log).

Dans le log, avant le ynh_die il y a le message suivant:

2024-08-18 16:12:56,613: DEBUG - Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
2024-08-18 16:12:56,614: DEBUG - Do not run Composer as root/super user! See https://getcomposer.org/root for details
2024-08-18 16:12:56,626: DEBUG - Composer could not find a composer.json file in /var/www/roundcube
2024-08-18 16:12:56,626: DEBUG - To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
2024-08-18 16:12:56,649: DEBUG - + ynh_die '--message=Unable to install core dependencies with Composer.'

Il semble que le fichier composer.json semble etre un probléme …

Dans le repertoire /var/www/roundcube/ on trouve un fichier composer.json :

/var/www/roundcube# ls -l composer.*
-rw-r----- 1 roundcube www-data    1169 Aug 19  2022 composer.json
-rw-r----- 1 roundcube www-data    1086 Jul 23  2022 composer.json-dist
-rw-r----- 1 roundcube www-data  135812 Aug 19  2022 composer.lock
-rwxr-x--- 1 roundcube www-data 2719975 Aug 19  2022 composer.phar

Contenu du fichier composer.json :

{
    "name": "roundcube/roundcubemail",
    "description": "The Roundcube Webmail suite",
    "license": "GPL-3.0-or-later",
    "repositories": [
        {
            "type": "composer",
            "url": "https://plugins.roundcube.net"
        }
    ],
    "require": {
        "php": ">=7.3.0",
        "pear/pear-core-minimal": "~1.10.1",
        "pear/auth_sasl": "~1.1.0",
        "pear/mail_mime": "~1.10.0",
        "pear/net_smtp": "~1.10.0",
        "pear/crypt_gpg": "~1.6.3",
        "pear/net_sieve": "~1.4.5",
        "roundcube/plugin-installer": "~0.3.1",
        "roundcube/rtf-html-php": "~2.1",
        "masterminds/html5": "~2.7.0",
        "guzzlehttp/guzzle": "^7.3.0",
        "kolab/net_ldap3": "^1.1",
        "johndoh/contextmenu": "3.3",
        "sblaisot/automatic_addressbook": "v0.4.3",
        "roundcube/carddav": "4.4.1",
        "bacon/bacon-qr-code": "^2.0.0"
    },
    "require-dev": {
        "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6 || ^7"
    },
    "suggest": {
        "kolab/net_ldap3": "~1.1.1 required for connecting to LDAP",
        "bjeavons/zxcvbn-php": "^1.0 required for Zxcvbn password strength driver"
    }
}

Il y a bien un topic qui parle de probléme avec le fichier composer.json à la mise à jour de roundcube : Roundcube Installation issues

Bref … je n’ai pas encore de solution