A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist
See original GitHub issueI was facing this error on Fedora 33, so I went back to 32 and the error persists.
Verificando : aspnetcore-runtime-3.1-3.1.11-1.fc32.x86_64 1/10
Verificando : aspnetcore-targeting-pack-3.1-3.1.11-1.fc32.x86_64 2/10
Verificando : dotnet-apphost-pack-3.1-3.1.11-1.fc32.x86_64 3/10
Verificando : dotnet-hostfxr-3.1-3.1.11-1.fc32.x86_64 4/10
Verificando : dotnet-runtime-3.1-3.1.11-1.fc32.x86_64 5/10
Verificando : dotnet-targeting-pack-3.1-3.1.11-1.fc32.x86_64 6/10
Verificando : netstandard-targeting-pack-2.1-3.1.111-1.fc32.x86_64 7/10
Verificando : lttng-ust-2.11.0-4.fc32.x86_64 8/10
Verificando : dotnet-host-5.0.2-1.x86_64 9/10
Verificando : dotnet-sdk-3.1-3.1.405-1.x86_64 10/10
Instalados:
aspnetcore-runtime-3.1-3.1.11-1.fc32.x86_64 aspnetcore-targeting-pack-3.1-3.1.11-1.fc32.x86_64
dotnet-apphost-pack-3.1-3.1.11-1.fc32.x86_64 dotnet-host-5.0.2-1.x86_64
dotnet-hostfxr-3.1-3.1.11-1.fc32.x86_64 dotnet-runtime-3.1-3.1.11-1.fc32.x86_64
dotnet-sdk-3.1-3.1.405-1.x86_64 dotnet-targeting-pack-3.1-3.1.11-1.fc32.x86_64
lttng-ust-2.11.0-4.fc32.x86_64 netstandard-targeting-pack-2.1-3.1.111-1.fc32.x86_64
Concluído!
[rtorres@localhost ~]$ dotnet --info
**A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist**
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] ...
When .NET (Core) was first released for Linux, it was not yet available in the official Ubuntu repo. So instead, many of us...
Read more >Fatal Error "The folder [/usr/share/dotnet/host/fxr] does not ...
Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install Operating System: CentOS8 Try to run "dotnet ...
Read more >Troubleshoot .NET package mix ups on Linux
The required library libhostfxr.so could not be found. or. A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist.
Read more >A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] ...
The folder [/usr/share/dotnet/host/fxr] does not exist" occurs when you install .NET (Core) using the Microsoft APT and your installation ...
Read more >How to Resolve /usr/share/dotnet/host/fxr does not exist ...
to check if the application really installed, I was greeted with a funny looking set of error. The error. A fatal error occurred....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is an instance of https://github.com/dotnet/docs/issues/18347: you have some mixed packages from the Microsoft build of .NET and the Fedora build of .NET (built from source). They install to different locations, so they don’t work nicely together and give you this “does not exist” error.
This package is from Fedora:
dotnet-hostfxr-3.1-3.1.11-1.fc32.x86_64
This package is from Microsoft:dotnet-host-5.0.2-1.x86_64
(nofc32
)The easiest way to resolve this is to remove the Microsoft package repository configuration from your machine and remove + install the .NET packages again, to get all the packages from Fedora.
(I’m not familiar off the top of my head what the best commands are to do that–it might also depend on how you set up the Microsoft repo on your machine. Let us know if you need more help here.)
Used this paragraph from microsoft documentation and the problem had gone!