I just installed a program with the package manager snap, freshly installed on my linux Mint Cinnamon 18 computer.

I installed the app with the following:

sudo snap install cloudcompare

I logged out and logged back in my machine to refresh the path. The program is still not launching while icons and path exist now. Here is how I launch the program from the terminal:


which returns:

snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks

Any idea on how to prevent this refusal?

  • What version of snap packages do you have installed? I have the following and it works. $ snap version snap 2.23 snapd 2.23 series 16 linuxmint 18.1 kernel 4.4.0-53-generic – popey Mar 3 '17 at 8:29
  • snap --version snap 2.22.7 snapd 2.22.7 series 16 linuxmint 18.1 kernel 4.4.0-53-generic I have reinstalled snapd, and the application cloud compare. I now obtain a different error: cloudcompare.CloudCompare cannot change profile for the next exec call: No such file or directory The application developper are mentioning that it might be related to snap and mint. cloudcompare.org/forum/… – Simon Mar 3 '17 at 10:16
  • Like I said, I tested on Mint 18.1, so not sure what is wrong there. This could be a bug in snapd. I'd be inclined to file it at bugs.launchpad.net/ubuntu/+source/snapd/+bugs – popey Mar 15 '17 at 23:06
  • The exact same thing happens on plain Ubuntu 18.04 - see related question: askubuntu.com/questions/1074114/… – James Bradbury Sep 19 '18 at 8:18
sudo apt purge snapd snap-confine && sudo apt install -y snapd

has fixed the problem for me

  • @leaf4good Thanks for the answer. Following your recomendation, I now have installed snap version 2.22.6 and snapd 2.22.6. and cannot even install a version of the desired package as I get this error: – Simon Apr 20 '17 at 10:22
  • <error: cannot perform the following tasks: - Setup snap "core" (1577) security profiles (skipping security profiles setup for snap "cloudcompare" when handling snap "core": no state entry for key) - Setup snap "core" (1577) security profiles (cannot setup apparmor for snap "core": cannot unload apparmor profile "snap.core.hook.configure": cannot unload apparmor profile: exit status 1 apparmor_parser output: Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.) Warning: unable to find a suitable fs in /proc/mounts, is it mounted?> – Simon Apr 20 '17 at 10:29
  • The apparmor package is up to date, so I am quite confused on what is happening. Thanks – Simon Apr 20 '17 at 10:31
  • 4
    Yes, this "fixes" the problem, but in my case I also had to reinstall my application. Surely there's an easier way, or does snap mean we have to reinstall apps every so often?! – James Bradbury Sep 18 '18 at 7:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.