I can reproduce it with the package excerpts at https://code.launchpad.net/~serge-hallyn/+git/pkg1 and https://code.launchpad.net/~serge-hallyn/+git/pkg2
First dpkg -i pkg1_1-1_amd64.deb then dpkg -i pkg1_1-2_amd64.deb pkg2_1-2_amd64.deb On yakkety, this gives me: (Reading database ... 27385 files and directories currently installed.) Preparing to unpack /pkg1_1-2_amd64.deb ... enabled Unpacking pkg1 (1-2) over (1-1) ... Selecting previously unselected package pkg2. Preparing to unpack /pkg2_1-2_amd64.deb ... Unpacking pkg2 (1-2) ... Setting up pkg2 (1-2) ... Failed to execute operation: No such file or directory /usr/bin/deb-systemd-helper: error: systemctl preset failed on pkg2.service: No such file or directory Failed to get unit file state for pkg2.service: No such file or directory pkg2.service is a disabled or a static unit, not starting it. I trust I'm doing something wrong in pkg1.preinst (in version 1-2). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579922 Title: dh_systemd_enable fails due to 'preset' when service file is renamed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/init-system-helpers/+bug/1579922/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs