Re: Fwd: Update Kolab16 on Debian 10 broken? still broken?

Christoph Erhardt <[email protected]> Fri, 19 Aug 2022 17:52:21 +0200
Newsgroups gmane.comp.kde.devel.kroupware
Message-ID <1830067.tdWV9SEqCh__49532.3855940782$1660924693$gmane$org@terra>
Hi all,

as hede analysed correctly, the core issue here is that the *old* 
`roundcubemail-core` package's `prerm` script is broken: it tries to call a 
shell function named `reload_apache()` but that function is not defined within 
the script. If you take a look at the package's `postinst` script, the 
function is there.

hede's workaround should do the trick. As an alternative, edit
`/var/lib/dpkg/info/roundcubemail-core.prerm` and comment out the offending 
line 11.

I might be able to fix this for the fortunate ones who haven't run
`apt dist-upgrade` yet. In theory, shipping an updated `roundcubemail-core` 
package with a fixed `prerm` script should suffice. However, the question is 
whether this update will actually be installed if `roundcubemail-core` is 
about to be uninstalled anyway... But I'll try.

Best,
Christoph

On Friday, 19 August 2022 15:46:16 CEST hede wrote:
> Hello Matthias,
> 
> Am 17.08.2022 21:03, schrieb Matthias Busch:
> > thanks for replies!
> 
> sorry for my late reply now :-(
> 
> > [...]
> > @hede
> > how do you propose to remove roundcube so I can install the new version
> > without it all breaking apt / dependencies of kolab?
> 
> it maybe breaks, but that's typically not a problem if things get fixed
> afterwards.
> 
> > (see my last logfile, it tries to remove and breaks everything)
> > I am not too stupid with debian, but with this very, highly integrated,
> > package dependency mess, I am too far out of the water...
> 
> I do not remember my solution but as far as I can see in the backups of
> my .bash_history the following was done that day (an excerpt, there were
> other non-related activity in it ;-) )
> 
> #####
> apt update
> apt upgrade
> apt --fix-broken install
> dpkg -r roundcubemail-core roundcubemail-plugin-enigma
> roundcubemail-plugin-kolab-auth roundcubemail-plugin-kolab-delegation
> roundcubemail-skin-chameleon roundcubemail-skin-kolab  roundcubemail
> dpkg -r roundcubemail-core roundcubemail-plugin-enigma
> roundcubemail-plugin-kolab-auth roundcubemail-plugin-kolab-delegation
> roundcubemail-skin-chameleon roundcubemail-skin-kolab  roundcubemail
> dpkg -r roundcubemail-core
> vim /usr/local/bin/reload_apache
> chmod +x /usr/local/bin/reload_apache
> dpkg -r roundcubemail-core
> apt --fix-broken install
> apt search roundcubemail
> dpkg -s roundcubemail
> dpkg -r roundcubemail
> apt install roundcubemail
> systemctl reload apache2
> #####
> 
> The thing is, you don't need most of that. I think the first "fix-broken
> install" was just an attempt that didn't work. And I don't remember why
> I ran the "dpkg -r" multiple times. Maybe I did answer some question
> wrong for the first time. The fix for reload-apache is an old bug in the
> prerm script of roundcube-core. You are also hit by it:
> ## your log ##
> /var/lib/dpkg/info/roundcubemail-core.prerm: 11:
> /var/lib/dpkg/info/roundcubemail-core.prerm: reload_apache: not found
> ##
> 
> The content of the file is (yep, it's dump but it works):
> 
> ###### /usr/local/bin/reload_apache #####
> #!/bin/sh
> 
> # dummy reload_apache in case it doesn't exist, bug in kolab debian
> packages
> 
> [ -e /usr/sbin/reload_apache ] && /usr/sbin/reload_apache "$@"
> [ -e /sbin/reload_apache ] && /sbin/reload_apache "$@"
> [ -e /usr/bin/reload_apache ] && /usr/bin/reload_apache "$@"
> [ -e /bin/reload_apache ] && /bin/reload_apache "$@"
> 
> exit 0
> ######
> 
> You just have to create it and make it executable or - alternatively -
> change the prerm-script.
> 
> The good news is: There wasn't any bad dpkg-hack as far as I can see. No
> force-delete or manually deleting files. Or I do not remember...
> whatever.
> 
> But probably you already resolved your problem. !? hopefully !?
> 
> Regards
> hede
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.kolab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
https://lists.kolab.org/mailman/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEwp5/nkNlccrQ2UKH4yzDBS9Gs8IFAmL/sbUACgkQ4yzDBS9G
s8L2SxAAoweTTmgOB1rIS+YNlQcaLLgbVW+6NAwwpxjznKUK/j7G8ydV4XTu/d5B
RHUlV7QQ9l0ytAq4oVdkGYjloZtwwwyQkMMtIpeuda/EffeLRFQxqwqzB4Gv0Gp2
f5IY7awL65U72J2zNgoWre+4d5rMQ1pBetzdLWd+wcmKvtjFzkJYfidjaZxPsSJu
YiiRPsGZ0ItoI5tALOSvFDCGeV6BbGyd87KqkPdTYBR3fK/8VHGR4esN/nC3h7cH
aKpIkLV9sB2hpith7xhxlNeWpY4nKBqKs0hGa+lcFmTu5nAnVJA5Iw9x9nxGLVC8
PfqhzKQ/TbZSVpzkmMZyEhm2OeeVyrI3EMRhdeRg0G/fFbNkRxoHu6UCvc4iUteA
xenYOiv0NGLL6wJGpM44O9YWvLhUo3mdMJ77ZCownZqxj1pBITXPasXzmt4mf07n
xPHG4rwRe2ZRxTvEtZ4XkH2j42JXrP4ijTcFe6WhM/1Qxl23PqE8ErVvcD5CHE/1
mvvjBBaQ/Tn3kq9UpHzJhMDHnoCjOHytkIP36V0tXcQMLZHGV9AReIzPr8BHIMqO
w4PMaRgQLbgflRcShBPflCeJ0JnE+IQ1MyzloNb1FJJLWd8ZMXCNs295rcUVm3sv
WltStzRjXG+fMfGPowEmgT/CehBlnzhrvRikdX5DUxw62zSoFnU=
=3Kd7
-----END PGP SIGNATURE-----