No success here, got snapd instlled but stuck on this error:
cannot load apparmor profile: exit status 243
Unprivileged container
apt install shapd
Aug 11 22:51:02 ubuntu systemd[1]: Failed to start Snappy daemon.
Aug 11 22:51:02 ubuntu systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Aug 11 22:51:02 ubuntu systemd[1]: snapd.service: Scheduled restart job, restart counter is at 3.
Aug 11 22:51:02 ubuntu systemd[1]: Stopped Snappy daemon.
Aug 11 22:51:02 ubuntu systemd[1]: Starting Snappy daemon...
Aug 11 22:51:02 ubuntu snapd[102]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Aug 11 22:51:02 ubuntu snapd[102]: error: cannot start snapd: cannot mount squashfs image using "squashfs": mount: /tmp/selftest-mountpoint-017662230: mount failed: Operation not permitted.
Aug 11 22:51:02 ubuntu systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 22:51:02 ubuntu systemd[1]: snapd.service: Failed with result 'exit-code'.
Aug 11 22:51:02 ubuntu systemd[1]: Failed to start Snappy daemon.
apt install squashfuse
~/.local/share/lxc/ubuntu/config
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file,optional
Aug 11 22:58:59 ubuntu systemd[1]: Failed to start Snappy daemon.
Aug 11 22:58:59 ubuntu systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Aug 11 22:58:59 ubuntu systemd[1]: snapd.service: Scheduled restart job, restart counter is at 3.
Aug 11 22:58:59 ubuntu systemd[1]: Stopped Snappy daemon.
Aug 11 22:58:59 ubuntu systemd[1]: Starting Snappy daemon...
Aug 11 22:58:59 ubuntu snapd[108]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Aug 11 22:58:59 ubuntu snapd[108]: error: cannot start snapd: cannot mount squashfs image using "fuse.squashfuse": mount: /tmp/selftest-mountpoint-597828511: permission denied.
Aug 11 22:58:59 ubuntu systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 22:58:59 ubuntu systemd[1]: snapd.service: Failed with result 'exit-code'.
Aug 11 22:58:59 ubuntu systemd[1]: Failed to start Snappy daemo
apt install fuse
Aug 11 22:59:51 ubuntu systemd[1]: Failed to start Snappy daemon.
Aug 11 22:59:51 ubuntu systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Aug 11 22:59:51 ubuntu systemd[1]: snapd.service: Scheduled restart job, restart counter is at 3.
Aug 11 22:59:51 ubuntu systemd[1]: Stopped Snappy daemon.
Aug 11 22:59:51 ubuntu systemd[1]: Starting Snappy daemon...
Aug 11 22:59:52 ubuntu snapd[120]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Aug 11 22:59:52 ubuntu snapd[120]: error: cannot start snapd: cannot mount squashfs image using "fuse.squashfuse": fusermount: mount failed: Operation not permitted
Aug 11 22:59:52 ubuntu systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 22:59:52 ubuntu systemd[1]: snapd.service: Failed with result 'exit-code'.
Aug 11 22:59:52 ubuntu systemd[1]: Failed to start Snappy daemon.
Privileged container
sudo apt install snapd
snapd.snap-repair.service is a disabled or a static unit, not starting it.
Job for snapd.service failed because the control process exited with error code.
See "systemctl status snapd.service" and "journalctl -xe" for details.
Job for snapd.seeded.service failed because the control process exited with error code.
See "systemctl status snapd.seeded.service" and "journalctl -xe" for details.
apparmor_parser: Unable to replace "mount-namespace-capture-helper". Permission denied; attempted to load a profile while confined?
apparmor_parser: Unable to replace "/usr/lib/snapd/snap-confine". Permission denied; attempted to load a profile while confined?
journalctl -u snapd
Aug 11 22:34:47 ubuntu systemd[1]: Failed to start Snappy daemon.
Aug 11 22:34:47 ubuntu systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Aug 11 22:34:47 ubuntu systemd[1]: snapd.service: Scheduled restart job, restart counter is at 3.
Aug 11 22:34:47 ubuntu systemd[1]: Stopped Snappy daemon.
Aug 11 22:34:47 ubuntu systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
Aug 11 22:34:48 ubuntu systemd[1]: Starting Snappy daemon...
Aug 11 22:34:48 ubuntu snapd[99]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Aug 11 22:34:48 ubuntu snapd[99]: error: cannot start snapd: cannot mount squashfs image using "squashfs": mount: /tmp/selftest-mountpoint-561094199: mount failed: Operation not permitted.
Aug 11 22:34:48 ubuntu systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 22:34:48 ubuntu systemd[1]: snapd.service: Failed with result 'exit-code'.
Aug 11 22:34:48 ubuntu systemd[1]: Failed to start Snappy daemon.
apt install squashfuse
/var/lib/lxc/ubuntu/config
::
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file,optional
lxc.mount.entry = tmpfs tmp tmpfs defaults
Aug 11 22:36:15 ubuntu systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Aug 11 22:36:15 ubuntu systemd[1]: snapd.service: Scheduled restart job, restart counter is at 4.
Aug 11 22:36:15 ubuntu systemd[1]: Stopped Snappy daemon.
Aug 11 22:36:15 ubuntu systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
Aug 11 22:36:16 ubuntu systemd[1]: Starting Snappy daemon...
Aug 11 22:36:16 ubuntu snapd[114]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Aug 11 22:36:16 ubuntu snapd[114]: error: cannot start snapd: cannot mount squashfs image using "fuse.squashfuse": mount: /tmp/selftest-mountpoint-925318772: wrong fs type, bad option, bad superblock on /tmp/self
Aug 11 22:36:16 ubuntu systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 22:36:16 ubuntu systemd[1]: snapd.service: Failed with result 'exit-code'.
Aug 11 22:36:16 ubuntu systemd[1]: Failed to start Snappy daemon.
apt install fuse
Aug 11 22:39:34 ubuntu systemd[1]: Starting Snappy daemon...
Aug 11 22:39:34 ubuntu snapd[60]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Aug 11 22:39:34 ubuntu snapd[60]: 2018/08/11 22:39:34.696989 helpers.go:119: error trying to compare the snap system key: system-key missing on disk
Aug 11 22:39:34 ubuntu snapd[60]: 2018/08/11 22:39:34.702135 daemon.go:343: started snapd/2.34.2+18.04 (series 16; classic; devmode) ubuntu/18.04 (amd64) linux/4.17.14.a-1-hardened.
Aug 11 22:39:34 ubuntu systemd[1]: Started Snappy daemon.
Aug 11 22:39:34 ubuntu snapd[60]: 2018/08/11 22:39:34.711943 stateengine.go:101: state ensure error: Get https://api.snapcraft.io/api/v1/snaps/sections: dial tcp: lookup api.snapcraft.io on [::1]:53: read udp [::
snap install hello-world
error: cannot perform the following tasks:
- Setup snap "core" (5145) security profiles (cannot setup apparmor for snap "core": cannot load apparmor profile "snap-update-ns.core": cannot load apparmor profile: exit status 243
apparmor_parser output:
apparmor_parser: Unable to replace "snap-update-ns.core". Permission denied; attempted to load a profile while confined?
)
- Setup snap "core" (5145) security profiles (cannot load apparmor profile "snap-update-ns.core": cannot load apparmor profile: exit status 243
apparmor_parser output:
apparmor_parser: Unable to replace "snap-update-ns.core". Permission denied; attempted to load a profile while confined?
)
journalctl -u snapd
Aug 11 23:16:49 ubuntu systemd[1]: Starting Snappy daemon...
Aug 11 23:16:49 ubuntu snapd[63]: AppArmor status: apparmor is enabled but some features are missing: dbus, network
Aug 11 23:16:49 ubuntu snapd[63]: 2018/08/11 23:16:49.379751 daemon.go:343: started snapd/2.34.2+18.04 (series 16; classic; devmode) ubuntu/18.04 (amd64) linux/4.17.14.a-1-hardened.
Aug 11 23:16:49 ubuntu systemd[1]: Started Snappy daemon.
Aug 11 23:16:49 ubuntu snapd[63]: 2018/08/11 23:16:49.381077 stateengine.go:101: state ensure error: Get https://api.snapcraft.io/api/v1/snaps/sections: dial tcp: lookup api.snapcraft.io on [::1]:53: read udp [::1]:58379->[::1]:53: read: connection refused
Aug 11 23:17:29 ubuntu snapd[63]: 2018/08/11 23:17:29.961795 daemon.go:180: polkit error: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Aug 11 23:17:44 ubuntu snapd[63]: 2018/08/11 23:17:44.541358 api.go:1046: Installing snap "hello-world" revision unset
Aug 11 23:17:45 ubuntu systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
Aug 11 23:17:46 ubuntu snapd[63]: 2018/08/11 23:17:46.187553 backend.go:303: cannot create host snap-confine apparmor configuration: cannot reload snap-confine apparmor profile: cannot load apparmor profile "snap-confine.core.5145": cannot load apparmor profile: exit status 243
Aug 11 23:17:46 ubuntu snapd[63]: apparmor_parser output:
Aug 11 23:17:46 ubuntu snapd[63]: apparmor_parser: Unable to replace "mount-namespace-capture-helper". Permission denied; attempted to load a profile while confined?
Aug 11 23:17:46 ubuntu snapd[63]: apparmor_parser: Unable to replace "/snap/core/5145/usr/lib/snapd/snap-confine". Permission denied; attempted to load a profile while confined?
Aug 11 23:17:46 ubuntu systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
Aug 11 23:17:46 ubuntu snapd[63]: 2018/08/11 23:17:46.632363 handlers.go:388: Reported install problem for "core" as already-reported