-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot run dotnet-sdk (.NET 5.0.400 (latest)) without root privileges (installed with snap) #57481
Comments
@merto-dvp - can you try running as sudo? Certainly not what we want but I did see that it got things going. |
Thanks for reply!, Yes, command works with sudo. But previous sdk versions was working fine without sudo. |
Any updates on this? We'd love to use the latest version with the security fixes but we can't do that currently. |
Also getting this issue with .NET 6.0 preview 7 snap. sudo snap revert dotnet-sdk worked, however it's no longer preview 7 but preview 6 which is a bit pointless |
Is there any version which doesn't have that issue? I have tried the latest 3.1, 5.0 and 6.0 with no luck. |
Same issue on fedora 34 |
I have the same issue. Installed from Snap. Ubuntu 20.04.3 LTS This is the only thing that works. All other scripts are broken or missing docs.
|
try this:
or
I don't know is it right, but it works. |
sudo ln -s /snap/dotnet-sdk/current/dotnet /usr/bin is work,Thanks @flairyu |
Description
Issue:
Tried to publish/build dotnet app and got this error message:
Error:
cannot snap-exec: cannot exec "/snap/dotnet-sdk/137/snap/command-chain/snapcraft-runner": permission denied
Command:
dotnet publish Test/Test.WebAPI --configuration Release -o pkg
Configuration
App: .NET 5.0
dotnet-sdk Version: (latest/stable: 5.0.400 2021-08-10 (137) 139MB classic)
OS: Ubuntu 20.04 x86
Other information
Also discussed here: Cannot run dotnet command after installing 5.0 preview using snap dotnet/core#4446
Known temporary fixes:
Running command with sudo or root user:
sudo dotnet publish Test/Test.WebAPI --configuration Release -o pkg
Reverting to previous version:
snap revert dotnet-sdk
Installing latest/edge: 5.0.202 2021-04-16 (120) 137MB classic) with commands:
Also you can check the other channels with:
The text was updated successfully, but these errors were encountered: