The DevOps Quest

Dotnet

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

Today I came across this problem while trying to use dotnet core on my Ubuntu 22.04.2 system.

The below message was displayed when running dotnet commands like dotnet new and dotnet run.

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

This problem seems to be potentially related to the different packages provided by the Ubuntu feed and the Microsoft feed, more info on that over here

To fix this I followed the below steps…