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:

Then you can install the dotnet sdk again like so: