Roundcube updated fails

DEBUG - + sudo -E -u roundcube php8.5 /var/www/roundcube/composer.phar install --no-dev -d /var/www/roundcube --no-interaction --no-ansi
DEBUG - Composer could not detect the root package (roundcube/roundcubemail) version, defaulting to ‘1.0.0’. See Troubleshooting - Composer
DEBUG - Installing dependencies from lock file
DEBUG - Verifying lock file contents can be installed on current platform.
DEBUG - Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run composer update or composer update <package name>.
DEBUG - - Required package “mlocati/ip-lib” is not present in the lock file.
DEBUG - This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
DEBUG - Read more about correctly resolving merge conflicts Resolving merge conflicts - Composer
DEBUG - and prefer using the “require” command over editing the composer.json file directly Command-line interface / Commands - Composer

Solution found: The file needs to be renamed “composer.lock => composer.lock.bkp”. Before you begin, make a backup of Roundcube:

yunohost backup create --apps roundcube

Then, make a copy/backup of the “composer.lock” file:

mv /var/www/roundcube/composer.lock /var/www/roundcube/composer.lock.bkp

Update Roundcube:

yunohost app upgrade roundcube

And if everything works, remember to delete the “composer.lock.bkp” file:

rm /var/www/roundcube/composer.lock.bkp

It worked for me.

2 Likes