I could replicate it on my system, I got the following message on the tests:
W: APT had planned for dpkg to do more than it reported back (0 vs 4). Affected packages: linux-image-4.10.0-22-generic:amd64 == Reproducer == $ sudo tee /etc/kernel/postinst.d/zz-fail <<EOF #!/bin/sh -e # Avoid running multiple times if [ -n "$DEB_MAINT_PARAMS" ]; then eval set -- "$DEB_MAINT_PARAMS" if [ -z "$1" ] || [ "$1" != "configure" ]; then exit 0 fi fi exit 1 EOF $ sudo apt-get --reinstall install linux-image-$(uname -r) $ sudo sed -i 's:exit 1:exit 0:' /etc/kernel/postinst.d/zz-fail $ sudo apt-get upgrade == Notes == To get a clearer log, run 'apt-get upgrade' before trying the reproducer, otherwise apt output might be clobbered by other package installs - the warning should still be there though, just with different numbers. There might be additional interaction between other scripts in my /etc/kernel/postinst.d directory. I have the following installed: $ dpkg -S $(find /etc/kernel/postinst.d/) update-notifier-common, apt, unattended-upgrades, dkms, initramfs-tools, grub-legacy-ec2, grub-pc, sicherboot: /etc/kernel/postinst.d initramfs-tools: /etc/kernel/postinst.d/initramfs-tools apt: /etc/kernel/postinst.d/apt-auto-removal grub-pc: /etc/kernel/postinst.d/zz-update-grub update-notifier-common: /etc/kernel/postinst.d/update-notifier grub-legacy-ec2: /etc/kernel/postinst.d/x-grub-legacy-ec2 unattended-upgrades: /etc/kernel/postinst.d/unattended-upgrades dkms: /etc/kernel/postinst.d/dkms diversion by sicherboot from: /etc/kernel/postinst.d/dracut diversion by sicherboot to: /etc/kernel/postinst.d/dracut.SecureBoot sicherboot: /etc/kernel/postinst.d/dracut dpkg-query: no path found matching pattern /etc/kernel/postinst.d/zz-update-bootctl The last one is my own custom script. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1647638 Title: W: APT had planned for dpkg to do more than it reported back To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1647638/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs