.NET Core on Linux (Ubuntu 18.10) ‘NuGetFallbackFolder’ Error

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.

How to fix this issue

sudo su
apt-get remove dotnet-sdk-CURRENT_VERSION
rm /usr/share/dotnet/dotnet -r
rm /usr/bin/dotnet -r
mkdir -p /usr/share/dotnet
tar -zxf {VERSION.tar.gz} -C /usr/share/dotnet
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
sudo -H gedit /etc/environment
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true

CURRENT_VERSION

The version which is currently installed

{VERSION.tar.gz}

The newest version you just downloaded from dotnet.microsoft.com

DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true

The last command should open gedit. Paste “DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true” and save the file.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.