2

On Ubuntu 16.04, I installed cloudcompare using snap following:

sudo snap install cloudcompare

However, I get the following error when trying to launch it:

$ sudo cloudcompare.CloudCompare 
cannot perform operation: mount --rbind /home /tmp/snap.rootfs_AUR1hM//home: Permission denied

How do I fix this?

  • Any chance this is in a lxd container? – Kyle Dec 1 '17 at 17:03
  • No, I am not running this inside a container. – tejaskhot Dec 2 '17 at 17:58
1

I had this exact problem and was able to fix it using a bind mount instead of a symlink. In my case I had a symlink for my home dir to /data/home. Remove the symlink, then create an empty directory for the mount point;

rm /home
mkdir /home

Then edit your /etc/fstab and add the line;

/data/home      /home   none    bind

Then reboot or enter the following command and /data/home will be mounted to /home.

mount /home

After that the snap applications will work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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