注册 Microsoft 密钥和源
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb
安装 .NET Core SDK
sudo add-apt-repository universe sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install dotnet-sdk-3.1
注:如果执行sudo add-apt-repository universe时,提示命令没找到。执行下面的命令:
apt-get install software-properties-common
参考网址:https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-ubuntu-1804
原文地址:https://www.cnblogs.com/wzwyc/p/12196134.html
时间: 2024-10-04 19:03:06