Managed to reproduce by purging the current snapd, installing a 2.22.x version, purging just snapd, and finally installing the latest snapd. See attached transcript.
** Attachment added: "TRANSCRIPT" https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1682023/+attachment/4860553/+files/TRANSCRIPT -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1682023 Title: snapd/snap-confine leaves behind /etc/apparmor.d/usr.lib.snapd.snap- confine on upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1682023/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs