This document outlines steps for performing a deep clean on your Linux (Ubuntu 20.04) machine.
An example for performing could be, if your installation does not show in dotnet --list-sdks
. Performing this deep clean and reinstalling will solve it in most cases.
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb