I try to download dotnet SDK for C# with
sudo apt-get install -y dotnet6
but it says
A fatal error occurred. The folder [/usr/lib/dotnet/dotnet6-6.0.110/host/fxr] does not exist
I try to download dotnet SDK for C# with
sudo apt-get install -y dotnet6
but it says
A fatal error occurred. The folder [/usr/lib/dotnet/dotnet6-6.0.110/host/fxr] does not exist
This worked for me.
sudo apt remove dotnet*
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install -y dotnet6
If the Dotnet SDK is already installed on the system try the following it will help
sudo apt-get update
then
sudo apt-get upgrade
And if prompted yes or no choose yes for the .net framework otherwise if you don't know what you are doing choose no, that command is going to upgrade all your installed software and the kernel, so, be careful if you are relying on some old specific version of packages for your software to run
maybe it will ask you to restart
sudo apt-get upgrade
is a 'guns on sparrows' approach for the given problem and does not guarantee to fix it. Please improve or delete your answer because it could lead to unwanted package-upgrades and possible further problems. –
Itch © 2022 - 2024 — McMap. All rights reserved.
dotnet6
package. It's eitherdotnet-sdk-6.0
for the full SDK ordotnet-runtime-6.0
for the runtime andaspnetcore-runtime-6.0
for ASP.NET Core applications. Did you follow the – Columbarium