How to fix the any package by glob error in dotnet

Fix .NET installation on Linux for missing dotnet dependencies.

  • Table of contents

cant find package dotnet glob

If you encounter errors when install dotnet-sdk on Linux using dpkg or apt-get you may need to purge your microsoft packages like so:

sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update

Then you can install the dotnet sdk again like so:

sudo apt-get update; 
sudo apt-get install -y apt-transport-https && sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0