You are not logged in.
Pages: 1
The title explains most of the issue. I have a .desktop entry for the snap mailspring. I noticed it was not working so I ran it from the command line. The output was:
cannot change profile for the next exec call: No such file or directory
snap-update-ns failed with code 1: No such file or directory
I did pacman -Syu and rebooted, still the same. It appears mostly to be an issue with AppArmor because after attempting to run it four times, I checked dmesg and there was this message four times:
[ 1617.678426] audit: type=1400 audit(1541029396.635:164): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="/usr/lib/snapd/snap-confine" name="snap-update-ns.mailspring" pid=4689 comm="snap-confine"
So it looks like AppArmor is blocking snap from using AppArmor? Could somebody help me fix this?
Output of snap version:
snap 2.36-1
snapd 2.36-1
series 16
arch -
kernel 4.18.16-arch1-1-ARCH
Last edited by leave (2018-11-02 03:55:38)
Offline
From https://aur.archlinux.org/packages/snapd/
2.36 is the first release with AppArmor enabled by default on Arch.
If you do not have AppArmor enabled at boot there should be no functional changes visible.
If you wish to use snaps with Apparmor, first make sure that Apparmor is enabled during boot, see https://wiki.archlinux.org/index.php/AppArmor for details. After upgrading the package, you need to do the following steps:
Reload the profiles: systemctl restart apparmor.service
Restart snapd: systemctl restart snapd.service
Load profiles for snaps: systemctl enable --now snapd.apparmor.service
Last edited by Everette88 (2018-11-14 15:39:02)
Offline
systemctl daemon reload fails with
Unknown operation daemon.
Offline
A hyphen was missing as that should have been `systemctl daemon-reload ...`
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I have followed the steps on the wiki about Apparmor and snap, the steps aforementioned. I tried reinstall both after erasing all configuration files, but unsuccessful, it still does not work. Apparmor is enabled and checking dmesg, there is no sign of apparmor is blocking snap.
Last edited by ronaldolobato (2018-11-28 20:16:02)
Offline
Pages: 1