<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Aldrine Quijano</title>
    <description>The latest articles on Forem by Aldrine Quijano (@aldrinequijano).</description>
    <link>https://forem.com/aldrinequijano</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3700674%2Ff1bfc5df-bd2e-49f8-8d20-8767dd4ac19f.png</url>
      <title>Forem: Aldrine Quijano</title>
      <link>https://forem.com/aldrinequijano</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aldrinequijano"/>
    <language>en</language>
    <item>
      <title>Can’t Install .NET 10 on Ubuntu via apt? Here’s a Workaround That Actually Works</title>
      <dc:creator>Aldrine Quijano</dc:creator>
      <pubDate>Sun, 11 Jan 2026 23:56:16 +0000</pubDate>
      <link>https://forem.com/aldrinequijano/cant-install-net-10-on-ubuntu-via-apt-heres-a-workaround-that-actually-works-4jaa</link>
      <guid>https://forem.com/aldrinequijano/cant-install-net-10-on-ubuntu-via-apt-heres-a-workaround-that-actually-works-4jaa</guid>
      <description>&lt;p&gt;I recently tried installing .NET 10 SDK on Ubuntu 24.04 (Noble) using apt, following &lt;a href="https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-install?tabs=dotnet10&amp;amp;pivots=os-linux-ubuntu-2404" rel="noopener noreferrer"&gt;Microsoft’s documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It should have been simple.&lt;/p&gt;

&lt;p&gt;But, I ran into this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;E: Unable to locate package dotnet-sdk-10.0
E: Couldn't find any package by glob 'dotnet-sdk-10.0'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you’re seeing the same error — this post is for you.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;dotnet-sdk-10.0 may not be available via apt yet, depending on your region&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This is due to APT repository propagation, not a broken setup&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Microsoft’s official install script is the supported workaround&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Installing the SDK also installs the runtime&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can safely keep .NET 8, 9, and 10 side-by-side&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;The Problem: apt Can’t Find .NET 10 (Yet)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I already had Microsoft’s Ubuntu repo configured:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://packages.microsoft.com/ubuntu/24.04/prod&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Still, installing the SDK failed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get update
sudo apt-get install dotnet-sdk-10.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;E: Unable to locate package dotnet-sdk-10.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔍&lt;strong&gt;Why this happens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Microsoft rolls out APT packages gradually across mirrors and regions. That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Some users can install .NET 10 immediately&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Others won’t see it yet&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;apt cannot install packages that haven’t reached your mirror&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can confirm availability with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt-cache policy dotnet-sdk-10.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it says “Unable to locate package”, the SDK simply isn’t there yet.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The Workaround: Microsoft's Official Install Script&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Until the APT package reaches your region, the recommended workaround is Microsoft’s own installer script.&lt;/p&gt;

&lt;p&gt;✅** Install .NET 10 SDK**&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget https://dot.net/v1/dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh --channel 10.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This installs .NET 10 under:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$HOME/.dotnet
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;⚠️&lt;strong&gt;Important: Set Environment Variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you install via the script, you must add .NET to your PATH.&lt;/p&gt;

&lt;p&gt;Add this to your shell profile (~/.bashrc or ~/.zshrc):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then reload your shell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Verify the install&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet --list-sdks
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expected output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;10.0.101 [/home/youruser/.dotnet/sdk]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;Side-by-Side with .NET 8 and 9&lt;/p&gt;

&lt;p&gt;Installing .NET 10 this way does not break existing installations.&lt;/p&gt;

&lt;p&gt;You can safely have:&lt;/p&gt;

&lt;p&gt;.NET 8 (via apt)&lt;/p&gt;

&lt;p&gt;.NET 9 (via apt)&lt;/p&gt;

&lt;p&gt;.NET 10 (via script)&lt;/p&gt;

&lt;p&gt;Once dotnet-sdk-10.0 becomes available via apt in your region, you can switch back to a fully package-managed setup.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If apt can’t find .NET 10 on Ubuntu 24.04 yet:&lt;/p&gt;

&lt;p&gt;You’re not misconfigured&lt;/p&gt;

&lt;p&gt;The package just hasn’t reached your mirror&lt;/p&gt;

&lt;p&gt;The official install script is safe and supported&lt;/p&gt;

&lt;p&gt;I’ll still switch back to installing .NET 10 via apt once it’s available in my region — but until then, this workaround works perfectly.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>ubuntu</category>
      <category>csharp</category>
    </item>
  </channel>
</rss>
