Zygmunt, you shouldn't override the dpkg behavior as there is an expectation on a Debian based system on how things in /etc are treated and what dpkg expects. That said, you could change the packaging in various ways. Eg, stop shipping it in /etc at all or disable the profile via /etc/apparmor.d/disable. Alternatively, don't install it to /etc, but instead /usr somewhere and during postinst use ucf or similar to copy it into place such that dpkg considers it a config file instead of a conffile (I suggest looking at the Debian policy manual on config file vs conffile).
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1773515 Title: apparmor fails after removal of snapd To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1773515/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs