The dotnet command cannot be executed after installing snap
I followed these instructions to install the .NET 6.0 preview using snap.
After installation, when I try to execute the dotnet command, I get the following error message:
cannot snap-exec: cannot exec "/snap/dotnet-sdk/152/snap/command-chain/snapcraft-runner": permission denied This is because the directory /snap/dotnet-sdk/152/snap is only accessible by root and is a mounted file system, so it is not possible to chmod it.
I am using a fresh Ubuntu 20.04 install, so there should not be any other conflicts.