<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Linux on The DevOps Quest</title>
    <link>https://thedevops.quest/tags/linux/</link>
    <description>Recent content in Linux on The DevOps Quest</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <copyright>© Adam</copyright>
    <lastBuildDate>Wed, 28 Jun 2023 21:39:54 +0100</lastBuildDate><atom:link href="https://thedevops.quest/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist.</title>
      <link>https://thedevops.quest/posts/dotnetfxr/</link>
      <pubDate>Wed, 28 Jun 2023 21:39:54 +0100</pubDate>
      
      <guid>https://thedevops.quest/posts/dotnetfxr/</guid>
      <description>&lt;p&gt;Today I came across this problem while trying to use dotnet core on my Ubuntu 22.04.2 system.&lt;/p&gt;
&lt;p&gt;The below message was displayed when running dotnet commands like &lt;code&gt;dotnet new&lt;/code&gt; and &lt;code&gt;dotnet run&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;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 &lt;a href=&#34;https://learn.microsoft.com/en-gb/dotnet/core/install/linux-ubuntu&#34;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To fix this I followed the below steps&amp;hellip;&lt;/p&gt;</description>
      <content>&lt;p&gt;Today I came across this problem while trying to use dotnet core on my Ubuntu 22.04.2 system.&lt;/p&gt;
&lt;p&gt;The below message was displayed when running dotnet commands like &lt;code&gt;dotnet new&lt;/code&gt; and &lt;code&gt;dotnet run&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;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 &lt;a href=&#34;https://learn.microsoft.com/en-gb/dotnet/core/install/linux-ubuntu&#34;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To fix this I followed the below steps&amp;hellip;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Remove all your current dotnet installations using &lt;br&gt;
&lt;code&gt;sudo apt remove &#39;dotnet*&#39; &#39;aspnet*&#39; &#39;netstandard*&#39;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;If it doesn&amp;rsquo;t already exist create the following &lt;br&gt;
&lt;code&gt;touch /etc/apt/preferences&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Open /etc/apt/preferences with a text editor and add the below&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Package: dotnet* aspnet* netstandard*
Pin: origin &amp;#34;packages.microsoft.com&amp;#34;
Pin-Priority: -10
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;
&lt;li&gt;Install dotnet following the steps &lt;a href=&#34;https://learn.microsoft.com/en-us/dotnet/core/install/linux&#34;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Hopefully that solves it for you!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Health&lt;/strong&gt; ❤️ ❤️ ❤️ ❤️ ❤️&lt;/p&gt;
&lt;p&gt;See you soon 🗡️&lt;/p&gt;
</content>
    </item>
    
  </channel>
</rss>
