wget dotnet-sdk-3.0.100-preview8-013656-linux-x64.tar.gz
mkdir -p /var/lib/dotnet && tar zxf dotnet-sdk-3.0.100-preview8-013656-linux-x64.tar.gz -C /var/lib/dotnet
vim /etc/profile
export DOTNET_ROOT=/var/lib/dotnet
export PATH=$PATH:/var/lib/dotnet
最后执行
source /etc/profile
https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current