Unattended-upgrades of Debian12 Bookworm fails while processing roundcube. The following error is reported: Code: INFO: Running /usr/share/roundcube/bin/update.sh as user 'www-data' PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in /usr/share/roundcube/program/lib/Roundcube/rcube_utils.php on line 431 Fatal error: Please check the Roundcube error log and/or server error logs for more information. Any insights on how to correct this ?
What shows command Code: apt policy roundcube What is in line 431 of that file /usr/share/roundcube/program/lib/Roundcube/rcube_utils.php ? Show two or three lines before and after that line. What is in /var/log/dpkg.log and unatted-upgrades log?
The code is : Code: /** * Converts a human readable IP address to its packed in_addr representation * Like the builtin inet_pton() function, but fallback to * inet_aton(3)-behavior for IPv4. * * @param string $ip A human readable IPv4 or IPv6 address. * * @return string|false */ public static function inet_pton2(string $ip) : string|bool { $address = @inet_pton($ip); if (is_string($address)) { return $address; } /var/log/dkpg.log is terse on the subject: Code: 2026-06-01 06:51:16 configure roundcube-core:all 1.6.5+dfsg-1+deb12u9 <none> 2026-06-01 06:51:16 status half-configured roundcube-core:all 1.6.5+dfsg-1+deb12u9 2026-06-01 06:51:17 configure dovecot-core:amd64 1:2.3.19.1+dfsg1-2.1+deb12u6 <none> 2026-06-01 06:51:17 status unpacked dovecot-core:amd64 1:2.3.19.1+dfsg1-2.1+deb12u6 2026-06-01 06:51:17 status half-configured dovecot-core:amd64 1:2.3.19.1+dfsg1-2.1+deb12u6 2026-06-01 06:51:23 status installed dovecot-core:amd64 1:2.3.19.1+dfsg1-2.1+deb12u6 2026-06-01 06:51:23 configure dovecot-imapd:amd64 1:2.3.19.1+dfsg1-2.1+deb12u6 <none> 2 The output of Unattended-upgrades has: Code: INFO: Running /usr/share/roundcube/bin/update.sh as user 'www-data' PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in /usr/share/roundcube/program/lib/Roundcube/rcube_utils.php on line 431 Fatal error: Please check the Roundcube error log and/or server error logs for more information. dpkg: erreur de traitement du paquet roundcube-core (--configure) : le sous-processus paquet roundcube-core script post-installation installé a renvoyé un état de sortie d'erreur 255 and: Code: dpkg: des problèmes de dépendances empêchent la configuration de roundcube-plugins : roundcube-plugins dépend de roundcube-core (= 1.6.5+dfsg-1+deb12u9); cependant : Le paquet roundcube-core n'est pas encore configuré. dpkg: erreur de traitement du paquet roundcube-plugins (--configure) : problèmes de dépendances - laissé non configuré dpkg: des problèmes de dépendances empêchent la configuration de roundcube : roundcube dépend de roundcube-core (= 1.6.5+dfsg-1+deb12u9); cependant : Le paquet roundcube-core n'est pas encore configuré. dpkg: erreur de traitement du paquet roundcube (--configure) : problèmes de dépendances - laissé non configuré Paramétrage de linux-image-amd64 (6.1.174-1) ... Des erreurs ont été rencontrées pendant l'exécution : roundcube-core roundcube-plugins roundcube E:Sub-process /usr/bin/dpkg returned an error code (1) Log ended: 2026-05-31 06:18:22
PHP 7.4.33 (cli) (built: Dec 18 2025 23:29:28) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
There we have the issue, default PHP on Debian 12 is 8.2, not 7.4. You can set the correct default PHP version as described in chapter 6 of this post: https://forum.howtoforge.com/threads/please-read-before-posting.58408/
OK, I have found that PHP 8.5 CLI is on the system, but it does not have all the extensions. How can I know which ones are required ? (The only one I have installed explicitly is soap) Is there a risk to break existing packages ???