Quoting Tim Retout (2017-04-18 16:28:29) > On 18 April 2017 at 13:53, Jonas Smedegaard <d...@jones.dk> wrote: > > Possibly this (sub)issue is tied to this: > > > > 1) install both packages _without_ executing postinst > > while *not* running systemd (e.g. in a chroot) > > 2) execute postinst of each package (in varying order) > > while *not* running systemd (e.g. in a chroot) > > 3) run systemd (e.g. boot the system on real hardware) > > 4) update systemd-sysv > > Okay, please find attached a multistrap config for helping to > reproduce this on amd64. > > $ sudo multistrap -f config > $ sudo cp /var/cache/apt/archives/systemd-sysv_232-22_amd64.deb > /opt/multistrap/ > $ sudo chroot /opt/multistrap > # dpkg --configure -a # I chose "Europe/London" as timezone when > prompted, and did not make dash the default shell > # dpkg -i systemd-sysv_232-22_amd64.deb > > Produces this output: > > (Reading database ... 7170 files and directories currently installed.) > Preparing to unpack systemd-sysv_232-22_amd64.deb ... > Unpacking systemd-sysv (232-22) over (232-22) ... > dpkg: error processing archive systemd-sysv_232-22_amd64.deb (--install): > trying to overwrite '/sbin/halt', which is also in package molly-guard 0.6.4 > Errors were encountered while processing: > systemd-sysv_232-22_amd64.deb > > I think this happens because molly-guard's preinst was not run - I > also had troubles with dash's /bin/sh diversion, hence choosing "no" > in the instructions above.
I ran the following from my multistrap configscript for the dash issue: [ -n "$(dpkg-divert --list /bin/sh)" ] || /var/lib/dpkg/info/dash.preinst > Jonas: is there a step in your install process where preinst scripts > get run? I ran "dpkg --configure -a" in my multistrap configscript, if that is what you mean. I ran no other preinst scripts expliitly than the one for dash. > If this is the issue, I'm now trying to work out what to do about > it... the preinst does seem to be the right place according to Policy > Appendix G. Thanks for working on this! - Jonas P.S. I suggest to use Bcc for cont...@bugs.debian.org - to help avoid replies ending there too. -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature