This bug was fixed in the package apparmor - 2.11.0-2ubuntu2
---------------
apparmor (2.11.0-2ubuntu2) zesty; urgency=medium
* debian/apparmor.postrm: Ensure that a purge of the apparmor package does
not fail if the /var/lib/apparmor/profiles or /var/lib/apparmor
directories do not exist. This purge operation should be considered
successful in that situation. (LP: #1661406)
-- Tyler Hicks <[email protected]> Thu, 02 Mar 2017 00:21:14 +0000
** Changed in: apparmor (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1661406
Title:
apparmor failing to be purged when /var/lib/apparmor/profiles or
/var/lib/apparmor doesn't exist
Status in apparmor package in Ubuntu:
Fix Released
Status in apparmor source package in Trusty:
In Progress
Bug description:
[Impact]
The apparmor package cannot be successfully purged when
/var/lib/apparmor/profiles or /var/lib/apparmor do not exist. This is
the case in default installs of the apparmor
2.10.95-0ubuntu2.5~14.04.1 package in Ubuntu 14.04 LTS.
[Test Case]
Ensure that /var/lib/apparmor/profiles does not exist and then `apt-
get purge apparmor`.
[Regression Potential]
Very low. The only real regression potential comes from rebuilding the
package itself. To counter this risk, I'll be going through the
AppArmor Test Plan with the package once it is built in trusty-
proposed:
https://wiki.ubuntu.com/Process/Merges/TestPlans/AppArmor
[Original Report]
Version: 2.10.95-0ubuntu2.5~14.04.1
When executing apt -y purge apparmor.
The purge run but has errors as files do not exist and the rmdir fails
to execute.
rmdir: failed to remove '/var/lib/apparmor/profiles': No such file or
directory
Steps to reproduce:
apt-get update
apt-get -y install apparmor
apt -y purge apparmor
I will put workarounds in place for now in puppet but this is making
puppet not like it..
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1661406/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp