Removing an apparmor policy file of a snap will lead an image that we can not install that snap anymore
Peng Liu
pengliu.mail at gmail.com
Mon Feb 15 21:39:34 UTC 2016
Hi Developers,
After removing /var/lib/snappy/apparmor/policygroups/docker_client by
mistake and removing docker snap with command "sudo snappy remove docker",
I can not install docker on the image anymore. The error message is "docker
failed to install: unable to create
/var/lib/snappy/apparmor/policygroups/docker_client: open
/var/lib/snappy/apparmor/policygroups/docker_client: file exists".
Has anyone encountered such kind of issue before?
Environment and steps to reproduce this issue:
1. Stable 15.04 snappy KVM image from
http://releases.ubuntu.com/15.04/ubuntu-15.04-snappy-amd64-generic.img.xz
2. run "sudo snappy install docker"
3. run "sudo -f /var/lib/snappy/apparmor/policygroups/docker_client"
4. run "sudo snappy remove docker"
5. run "sudo snappy install docker", FAILED!
I think it is a bug of snappy. Can anyone give me a hint? I tried to debug
snappy, but it seems to be difficult to build snappy from source code and
debug it.
Thanks!
Best Regards
Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20160215/44f97b39/attachment.html>
More information about the snappy-devel
mailing list