I'm running kolan on Debian 10, with roundcubemail on Debian 11/12 connected to the kolab imap server.
$ dpkg -l roundcubemail Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-============================================================ ii roundcubemail 1:1.5.4.6-1~kolab1 all skinnable AJAX based webmail solution for IMA>
I've tried to remove the package roundcubemail from my testsystem:
[manually translated into english]
Removing roundcubemail (1:1.5.4.6-1~kolab1) ...
/var/lib/dpkg/info/roundcubemail.prerm: 11: reload_apache: not found
dpkg: Error handling package roundcubemail (--remove):
»installed pre-removal-Script of package roundcubemail«-Subprocess returned error code 127
The prerm script in /var/lib/dpkg/info/roundcubemail.prerm contains:
if [ "$1" = "remove" ]; then if [ ! -f "/etc/plesk-release" ]; then a2dissite roundcubemail.conf > /dev/null || true reload_apache restart fi fi
There isn't a command reload_apache on Debian 10 and newer.
I guess that "service apache2 reload" should work fine.