Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1037537: Upgrade To Bookworm Fails with Roundcube Update

162 views
Skip to first unread message

Bryan K. Walton

unread,
Jun 13, 2023, 5:40:05 PM6/13/23
to
Package: roundcube-core
Version: 1.6.1+dfsg-1

Today, I tried to upgrade my webserver to Debian 12.0 (bookworm).
Everything succeeded but Roundcube. The upgrade of Roundcube fails with
the following:

Installing new version of config file /etc/roundcube/htaccess ...
Installing new version of config file /etc/roundcube/mimetypes.php ...
INFO: Running /usr/share/roundcube/bin/update.sh as user 'www-data'
dpkg: error processing package roundcube-core (--configure):
installed roundcube-core package post-installation script subprocess returned error exit status 255
dpkg: dependency problems prevent configuration of roundcube-plugins:
roundcube-plugins depends on roundcube-core (= 1.6.1+dfsg-1); however:
Package roundcube-core is not configured yet.

dpkg: error processing package roundcube-plugins (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of roundcube:
roundcube depends on roundcube-core (= 1.6.1+dfsg-1); however:
Package roundcube-core is not configured yet.

dpkg: error processing package roundcube (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
roundcube-core
roundcube-plugins
roundcube
E: Sub-process /usr/bin/dpkg returned an error code (1)

Guilhem Moulin

unread,
Jun 13, 2023, 5:50:05 PM6/13/23
to
Control: tag -1 unreproducible moreinfo

On Tue, 13 Jun 2023 at 16:16:51 -0500, Bryan K. Walton via Pkg-roundcube-maintainers wrote:
> Today, I tried to upgrade my webserver to Debian 12.0 (bookworm).
> Everything succeeded but Roundcube.

What was the previous Roundcube (and Debian itself) version? Please
also share your roundcube configuration file. piuparts checks the
upgrade path of the stock config (for all of DB backends) and that
appear to be smooth.

--
Guilhem.
signature.asc

Bryan K. Walton

unread,
Jun 13, 2023, 10:00:05 PM6/13/23
to
Thank you for your reply!

Previous Roundcube version: 1.4.13+dfsg.1-1~deb11u1
Previous Debian version: 11.7

I've attached the Roundcube configuration file, as requested. Please
note, for privacy reasons, I have replaced the real des_key value with a
series of "#" symbols. The same applies to the host value in the
default_host setting.

Thanks!
Bryan Walton
config.inc.php

Guilhem Moulin

unread,
Jun 14, 2023, 7:30:05 AM6/14/23
to
On Tue, 13 Jun 2023 at 20:45:19 -0500, Bryan K. Walton wrote:
> Previous Roundcube version: 1.4.13+dfsg.1-1~deb11u1
> Previous Debian version: 11.7

Which DB backend are you using? I'm unable to reproduce this in a
Bullseye (11.7) VM with roundcube-mysql (the default):

~# apt install -y default-mysql-server
~# apt install -y roundcube-core ## don't change pre-selected debconf values
## replace /etc/roundcube/config.inc.php with yours (except $config['des_key'])
~# sed -i s/bullseye/bookworm/ /etc/apt/sources.list
~# apt update
~# apt dist-upgrade

Works here, both when selecting “install the package maintainer's
version” or “keep the local version currently installed” for
/etc/roundcube/config.inc.php. (In both cases, I answered “Yes” to
“Perform upgrade on database for roundcube with dbconfig-common?”.)

Does `apt install -f` fix the problem for you? If not, you might want
to edit /var/lib/dpkg/info/roundcube-core.postinst and replace `set -e`
with `set -ex` to get a debug trace.

> $config['plugins'] = array(
> 'archive',
> 'twofactor_gauthenticator',
> 'carddav',
> 'chbox',
> );

AFAICT ‘twofactor_gauthenticator’, ‘carddav’ and ‘chbox’ don't come from
Debian. Does it help to remove these 3 from the array?

--
Guilhem.
signature.asc

Bryan K. Walton

unread,
Jun 15, 2023, 10:30:04 AM6/15/23
to
Thanks for the reply, Guilhem.

After restoring my VM back to Debian 11.7, I then tried upgrading
Roundcube, first:

# sed -i s/bullseye/bookworm/ /etc/apt/sources.list
# apt-get install roundcube-core

This worked. I then was able to do the full upgrade to bookworm.

While I'm not sure why this worked, I'm happy to get the upgrade
completed.

Thanks,
Bryan
0 new messages