question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission denied error on NuGetFallbackFolder after update to SDK 2.1.500

See original GitHub issue

Steps to reproduce

Running Ubuntu 18.04:

  1. update to dotnet core sdk 2.1.500 (via apt update/upgrade)
  2. try doing “dotnet run” or “dotnet restore”

Actual behavior

Produces a message stating an error on permissions to the NuGetFallbackFolder.

Permission denied to modify the '/usr/share/dotnet/sdk/NuGetFallbackFolder' folder.

Here are some options to fix this error:
----------------------------------------
1. Re-run this command with elevated access.
2. Disabled the first run experience by setting the environment variable DOTNET_SKIP_FIRST_TIME_EXPERIENCE to true.
3. Copy the .NET Core SDK to a non-protected location and use it from there.

Expected behavior

Worked properly before the update

Environment data

NET Core SDK (reflecting any global.json):
 Version:   2.1.500
 Commit:    b68b931422

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.500/

Host (useful for support):
  Version: 2.1.6
  Commit:  3f4f8eebd8

.NET Core SDKs installed:
  2.1.500 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:11
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
thothothothocommented, Feb 18, 2019

Everytime Ubuntu updates the dotnet package, I have this warning again and need to use one of the available workaround (usually doing a sudo dotnet new console in a dummy directory)

2reactions
thothothothocommented, Aug 23, 2019

Why don’t you add a post install script in the ubuntu package that does exactly that ? (sudo dotnet new console)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permission denied to modify the 'C:\Program Files\dotnet ...
I checked the C:\Program Files\dotnet\sdk and the NuGetFallbackFolder is back with no error on each run now. I came across your question ...
Read more >
NET Foundation
Permission denied error on NuGetFallbackFolder after update to SDK 2.1.500 $ 0 ... 1) update to dotnet core sdk 2.1.500 (via apt update/upgrade)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found