Are you getting a fatal error when running
sudo dnf install dotnet-sdk-3.1? Are you seeing an error message like
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist? If so, you’ve come to the right place. In this article, I’ll explain why you’re running into this error, and how you can solve it. Let’s get started.
What is the Error “A Fatal Error Occurred. The Folder [/usr/share/dotnet/host/fxr] Does Not Exist”?
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist is a result of conflicting packages. It appears when you try to install the Microsoft .NET SDK on an Ubuntu system, and there are conflicting packages. The
/usr/share/dotnet/host/fxr folder should exist when the .NET SDK is properly installed, but if mixed packages are installed, it won’t appear.
Step-by-Step Illustrated Guide to Solving the Error
Follow these steps to solve the error
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist:
sudo apt install dotnet-sdk-6.0.
- Check if the application is installed by running
dotnet --version. If you don’t get an error, the application is installed.
- If you’re still getting an error, open the folder
/usr/share/dotnet/host/fxrand check if it contains version-numbered child folders. If it does, your application has been properly installed.
If you’re getting the error
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist, it’s likely because of conflicting packages. Follow the steps in this guide to solve the error, and check if the folder
/usr/share/dotnet/host/fxr contains version-numbered child folders. For more web hosting advice, visit HostsRated.com.