snapd/snap-confine leaves behind /etc/apparmor.d/usr.lib.snapd.snap-confine on upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Michael Vogt | ||
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Michael Vogt |
Bug Description
The kernel ADT tests failed when running some of the apparmor tests against the apparmor utilities, with error messages:
ERROR: Conflicting profiles for /usr/lib/
- /etc/apparmor.
- /etc/apparmor.
Examining the log, the ADT harness uninstalls snapd 2.22.6 without purging and without uninstall snap-confine (which contains /etc/apparmor.
The snapd 2.23.6 package contains the following in its postrm file:
dpkg-
summary: |
- snapd/snapd-confine leaves behind /etc/apparmor.d/usr.lib.snapd.snap- + snapd/snap-confine leaves behind /etc/apparmor.d/usr.lib.snapd.snap- confine on upgrade |
Changed in snapd (Ubuntu): | |
status: | New → Confirmed |
Changed in snapd: | |
status: | In Progress → Fix Committed |
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.