mount error when installed using snap
up vote
2
down vote
favorite
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?
mount snap
add a comment |
up vote
2
down vote
favorite
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?
mount snap
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
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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?
mount snap
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?
mount snap
mount snap
edited Nov 21 '17 at 4:50
asked Nov 21 '17 at 4:44
tejaskhot
176310
176310
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
add a comment |
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
Any chance this is in a lxd container?
– Kyle
Dec 1 '17 at 17:03
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
No, I am not running this inside a container.
– tejaskhot
Dec 2 '17 at 17:58
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
Try running it without sudo? I tried running with sudo and got a different error related to permission, but running it without works for me.
EDIT:
The answer above is wrong. According to this bug, this will happen when /home is a symlink to a different directory.
To fix this, you need your /home directory to be a real directory. You can run the following command to remove the symlink and create an actual directory in /home.
sudo rm -R /home && sudo mkdir -p /home/${whoami} && sudo chmod ugo+rwx /home/$whoami
Alternatively, you can create a different user to run cloudcompare if you do not wish to modify your system.
Tried this, but no luck.
– tejaskhot
Dec 2 '17 at 17:58
Hi, I've modified the answer, hope it helps.
– daniellim
Dec 5 '17 at 4:12
Seriouslysudo rm -R /home? xD Good luck with that
– l3l0
Nov 19 at 15:13
add a comment |
up vote
0
down vote
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. Start by removing that;
rm /home
Then edit your /etc/fstab and add the line;
/data/home /home none bind
Reboot to test and /data/home will be mounted to /home
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Try running it without sudo? I tried running with sudo and got a different error related to permission, but running it without works for me.
EDIT:
The answer above is wrong. According to this bug, this will happen when /home is a symlink to a different directory.
To fix this, you need your /home directory to be a real directory. You can run the following command to remove the symlink and create an actual directory in /home.
sudo rm -R /home && sudo mkdir -p /home/${whoami} && sudo chmod ugo+rwx /home/$whoami
Alternatively, you can create a different user to run cloudcompare if you do not wish to modify your system.
Tried this, but no luck.
– tejaskhot
Dec 2 '17 at 17:58
Hi, I've modified the answer, hope it helps.
– daniellim
Dec 5 '17 at 4:12
Seriouslysudo rm -R /home? xD Good luck with that
– l3l0
Nov 19 at 15:13
add a comment |
up vote
1
down vote
Try running it without sudo? I tried running with sudo and got a different error related to permission, but running it without works for me.
EDIT:
The answer above is wrong. According to this bug, this will happen when /home is a symlink to a different directory.
To fix this, you need your /home directory to be a real directory. You can run the following command to remove the symlink and create an actual directory in /home.
sudo rm -R /home && sudo mkdir -p /home/${whoami} && sudo chmod ugo+rwx /home/$whoami
Alternatively, you can create a different user to run cloudcompare if you do not wish to modify your system.
Tried this, but no luck.
– tejaskhot
Dec 2 '17 at 17:58
Hi, I've modified the answer, hope it helps.
– daniellim
Dec 5 '17 at 4:12
Seriouslysudo rm -R /home? xD Good luck with that
– l3l0
Nov 19 at 15:13
add a comment |
up vote
1
down vote
up vote
1
down vote
Try running it without sudo? I tried running with sudo and got a different error related to permission, but running it without works for me.
EDIT:
The answer above is wrong. According to this bug, this will happen when /home is a symlink to a different directory.
To fix this, you need your /home directory to be a real directory. You can run the following command to remove the symlink and create an actual directory in /home.
sudo rm -R /home && sudo mkdir -p /home/${whoami} && sudo chmod ugo+rwx /home/$whoami
Alternatively, you can create a different user to run cloudcompare if you do not wish to modify your system.
Try running it without sudo? I tried running with sudo and got a different error related to permission, but running it without works for me.
EDIT:
The answer above is wrong. According to this bug, this will happen when /home is a symlink to a different directory.
To fix this, you need your /home directory to be a real directory. You can run the following command to remove the symlink and create an actual directory in /home.
sudo rm -R /home && sudo mkdir -p /home/${whoami} && sudo chmod ugo+rwx /home/$whoami
Alternatively, you can create a different user to run cloudcompare if you do not wish to modify your system.
edited Dec 5 '17 at 4:12
answered Nov 30 '17 at 12:01
daniellim
134
134
Tried this, but no luck.
– tejaskhot
Dec 2 '17 at 17:58
Hi, I've modified the answer, hope it helps.
– daniellim
Dec 5 '17 at 4:12
Seriouslysudo rm -R /home? xD Good luck with that
– l3l0
Nov 19 at 15:13
add a comment |
Tried this, but no luck.
– tejaskhot
Dec 2 '17 at 17:58
Hi, I've modified the answer, hope it helps.
– daniellim
Dec 5 '17 at 4:12
Seriouslysudo rm -R /home? xD Good luck with that
– l3l0
Nov 19 at 15:13
Tried this, but no luck.
– tejaskhot
Dec 2 '17 at 17:58
Tried this, but no luck.
– tejaskhot
Dec 2 '17 at 17:58
Hi, I've modified the answer, hope it helps.
– daniellim
Dec 5 '17 at 4:12
Hi, I've modified the answer, hope it helps.
– daniellim
Dec 5 '17 at 4:12
Seriously
sudo rm -R /home ? xD Good luck with that– l3l0
Nov 19 at 15:13
Seriously
sudo rm -R /home ? xD Good luck with that– l3l0
Nov 19 at 15:13
add a comment |
up vote
0
down vote
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. Start by removing that;
rm /home
Then edit your /etc/fstab and add the line;
/data/home /home none bind
Reboot to test and /data/home will be mounted to /home
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
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. Start by removing that;
rm /home
Then edit your /etc/fstab and add the line;
/data/home /home none bind
Reboot to test and /data/home will be mounted to /home
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
up vote
0
down vote
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. Start by removing that;
rm /home
Then edit your /etc/fstab and add the line;
/data/home /home none bind
Reboot to test and /data/home will be mounted to /home
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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. Start by removing that;
rm /home
Then edit your /etc/fstab and add the line;
/data/home /home none bind
Reboot to test and /data/home will be mounted to /home
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Nov 30 at 1:00
Stephen Bancroft
1
1
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Stephen Bancroft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f978639%2fmount-error-when-installed-using-snap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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