<div dir="ltr">On Sun, 10 May 2015 at 10:10 Michael Biebl <<a href="mailto:biebl@debian.org">biebl@debian.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you confirm that adding that "|| true" to postinst manually fixes<br>
your issue and allows you to uninstall systemd-sysv?<br></blockquote><div><br></div><div>Unfortunately, that won't work with my current test system, because colord crashes before it gets to the systemd trigger.<br> <br>Preconfiguring packages ...<br>(Reading database ... 32367 files and directories currently installed.)<br>Removing colord (1.2.1-1+b2) ...<br>Failed to get D-Bus connection: No such file or directory<br>dpkg: error processing package colord (--remove):<br> subprocess installed pre-removal script returned error exit status 1<br>Failed to get D-Bus connection: No such file or directory<br>Failed to get D-Bus connection: No such file or directory<br>dpkg: policykit-1: dependency problems, but removing anyway as you requested:<br> colord depends on policykit-1 (>= 0.103).<br><br>Removing policykit-1 (0.105-8) ...<br>Removing libpam-systemd:i386 (215-17) ...<br>dpkg: systemd-sysv: dependency problems, but removing anyway as you requested:<br> init depends on systemd-sysv | sysvinit-core | upstart; however:<br>  Package systemd-sysv is to be removed.<br>  Package sysvinit-core is not installed.<br>  Package upstart is not installed.<br><br>Removing systemd-sysv (215-17) ...<br>Processing triggers for man-db (2.7.0.2-5) ...<br>Processing triggers for dbus (1.8.16-1) ...<br>Errors were encountered while processing:<br> colord<br>E: Sub-process /usr/bin/dpkg returned an error code (1)<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ideally, we wouldn't allow to install systemd-sysv in the first place in<br>
such a case by adding preinst checks which test for necessary kernel<br>
features and abort.<br></blockquote><br></div><div class="gmail_quote">Yes, that is a thought. Might get complicated if a "apt-get dist-upgrade" from wheezy fails half way though. Still, this might be a better outcome, not sure. However, I think we are past that point now.<br></div></div>