How to fix snap on ubuntu 22.04

3.4k Views Asked by At

I have a problem with snap. For example when I try to run firefox I have this error :

pc:~$ firefox
cannot open /tmp/snap-private-tmp: Permission denied

When I look the log I have :

kernel: audit: type=1400 audit: apparmor="DENIED" operation="capable" profile="/usr/lib/snapd/snap-confine" pid=16346 comm="snap-confine" capability=12  capname="net_admin"

kernel: audit: type=1400 audit: apparmor="DENIED" operation="open" profile="/usr/lib/snapd/snap-confine" name="/tmp/snap-private-tmp/" pid=16346 comm="snap-confine" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

What needs to be done to make firefox run and fix snap?

1

There are 1 best solutions below

1
Joe On

I had something similar with secrets password manager. In the end it was the ~/snap/secrets/ folder permissions (group set to rw) that needed adjusting.