I can reproduce this on cosmic, installing snapd and removing (but not purging) snapd gives me this error. It seems like removing removes the /var/lib/snapd/apparmor/snap-confine dir but keeps the /etc/apparmor.d/...snap-confine conf file in place (oh the joy of conffiles).
To reproduce:
1. apt update
2. apt install snapd
3. apt remove snapd
4. reboot
5. systemctl status apparmor
This also appears to be happening on 18.04 with the latest apparmor version available for 18.04. So we need to look into this.
I can reproduce this on cosmic, installing snapd and removing (but not purging) snapd gives me this error. It seems like removing removes the /var/lib/ snapd/apparmor/ snap-confine dir but keeps the /etc/apparmor. d/...snap- confine conf file in place (oh the joy of conffiles).
To reproduce:
1. apt update
2. apt install snapd
3. apt remove snapd
4. reboot
5. systemctl status apparmor
This also appears to be happening on 18.04 with the latest apparmor version available for 18.04. So we need to look into this.