1、增加微软包安装源
wget /config/ubuntu/22.04/ -O
sudo dpkg -i
rm
2、安装SDK
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-8.0
3、 安装运行时
sudo apt-get update && \ sudo apt-get install -y aspnetcore-runtime-8.0
wget /config/ubuntu/22.04/ -O
sudo dpkg -i
rm
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-8.0
sudo apt-get update && \ sudo apt-get install -y aspnetcore-runtime-8.0