question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dagoodcommented, Jan 25, 2021

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 (no fc32)

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

0reactions
paulonevcommented, Apr 7, 2023

Used this paragraph from microsoft documentation and the problem had gone!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found