nutty icon indicating copy to clipboard operation
nutty copied to clipboard

Apparmor issue - snap package - Ubuntu 20.04

Open metasikander opened this issue 4 years ago • 8 comments

Hi. I tried to install Nutty with the snap, but it won't start. Output:

[_LOG_LEVEL_INFO 13:02:27.041335] Application.vala:153: Nutty version: 0.9 [_LOG_LEVEL_INFO 13:02:27.041381] Application.vala:155: Kernel version: 5.4.0-33-generic Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.158" is not allowed to own the service "org.nutty" due to AppArmor policy

This is a fresh install of Ubuntu 20.04. No related logs in audit.log If there are anything you want me to try, let me know and I'll help debug it

metasikander avatar Jun 03 '20 11:06 metasikander

I don't think the snap works as of now; I've tried it on Ubuntu 18.04, 19.10, and 20.04, and it still didn't work. I'd suggest building from source, but you can also try the .deb package for 18.04 on this ppa.

doggo4242 avatar Jun 04 '20 17:06 doggo4242

yeah i installed it through the ppa, but i prefer to use the snap. if it's not working, then maybe the snap shouldn't have a stable release/tag

metasikander avatar Jun 04 '20 18:06 metasikander

I also tried to install Nutty with sudo snap install --classic nutty (again on Ubuntu 20.04) in hope that the --classic flag would remove the AppArmor block of the program. However, I got the output Warning: flag --classic ignored for strictly confined snap nutty, and the snap was installed as without the flag. Due to the nature of Nutty, it cannot be confined as the usual Snap policy requires.

yaccos avatar Sep 07 '20 10:09 yaccos

same error on Ubuntu 18.04.5 LTS.

Nutty version: 0.9 Kernel version: 4.15.0-124-generic

pnicorelli avatar Nov 29 '20 07:11 pnicorelli

well i took a crack at fixing the snap config, and im starting to understand why its abandoned. i got it to launch, but none of the scripts will run because they need root (probably something to do with polkit), and its attempting to read/write files in /tmp which it cant do because its a snap. i dont think ill be able to fix it anytime soon, but if anyone wants to continue where i left off, heres the repo. good luck.

doggo4242 avatar Jan 13 '21 16:01 doggo4242

same error on linux mint 20:

[_LOG_LEVEL_INFO 15:08:12.462427] Application.vala:153: Nutty version: 0.9 [_LOG_LEVEL_INFO 15:08:12.462586] Application.vala:155: Kernel version: 5.4.0-60-generic Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.111" is not allowed to own the service "org.nutty" due to AppArmor policy

r-uu avatar Feb 18 '21 14:02 r-uu

Same issue, almost 2 years since the OP. Any update on this?

isapir avatar May 09 '22 02:05 isapir