You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error while running sudo snap install dotnet-sdk --channel 3.1/stable --classic on Ubuntu 20.04 or Ubuntu 20.10
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels Shared Folders/Home/Desktop$ cd myApp
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels Shared Folders/Home/Desktop/myApp$ sudo dotnet-sdk.dotnet run
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
at System.Globalization.GlobalizationMode..cctor()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.CultureInfo..cctor()
at System.String.ToLowerInvariant()
at System.Text.EncodingHelper.GetCharset()
at System.Text.EncodingHelper.GetEncodingFromCharset()
at System.ConsolePal.GetConsoleEncoding()
at System.Console+<>c.<get_OutputEncoding>b__19_0()
at System.Threading.LazyInitializer.EnsureInitializedCore[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Threading.LazyInitializer.EnsureInitialized[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Console.get_OutputEncoding()
at System.Console.CreateOutputWriter(System.IO.Stream)
at System.Console+<>c.<get_Out>b__26_0()
at System.Threading.LazyInitializer.EnsureInitializedCore[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Threading.LazyInitializer.EnsureInitialized[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Console.get_Out()
at System.Console.WriteLine(System.String)
at myApp.Program.Main(System.String[])
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels Shared Folders/Home/Desktop/myApp$ dotnet-sdk.dotnet run
Welcome to .NET Core 3.1!
---------------------
SDK Version: 3.1.408
Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Find out what's new: https://aka.ms/dotnet-whats-new
Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Write your first app: https://aka.ms/first-net-core-app
--------------------------------------------------------------------------------------
/snap/dotnet-sdk/123/sdk/3.1.408/NuGet.targets(128,5): error : Unable to obtain lock file access on '/tmp/NuGetScratch/lock/d86576abc10def924f6f8b93df2969f6fe20f8c0' for operations on '/media/psf/Home/Desktop/myApp/obj/project.nuget.cache'. This may mean that a different user or administator is holding this lock and that this process does not have permission to access it. If no other process is currently performing an operation on this file it may mean that an earlier NuGet process crashed and left an inaccessible lock file, in this case removing the file '/tmp/NuGetScratch/lock/d86576abc10def924f6f8b93df2969f6fe20f8c0' will allow NuGet to continue. [/media/psf/Home/Desktop/myApp/myApp.csproj]
The build failed. Fix the build errors and run again.
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels Shared Folders/Home/Desktop/myApp$ cd ..
parallels@parallels-Parallels-Virtual-Platform:/media/psf/Home/Desktop$ sudo dotnet-sdk.dotnet new console -o myApp
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on myApp/myApp.csproj...
Determining projects to restore...
Restored /media/psf/Home/Desktop/myApp/myApp.csproj (in 184 ms).
Restore succeeded.
The text was updated successfully, but these errors were encountered:
rbhanda
changed the title
Snap Running .NET Core 2.1/3.1, .NET 5.0 applications on Ubuntu 20.10 or 20.04
Snap : Issue with Running .NET Core 3.1 applications on Ubuntu 20.10 or 20.04
Apr 13, 2021
It appears that one of the temporary NuGet files is locked by another process. Have you tried restarting your computer and then trying again (without opening any other applications so it doesn't get locked again)?
The error while running sudo snap install dotnet-sdk --channel 3.1/stable --classic on Ubuntu 20.04 or Ubuntu 20.10
The text was updated successfully, but these errors were encountered: