skip to Main Content

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

2

Answers


  1. 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

    Login or Signup to reply.
  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search