我有两个安装了Dotnet 6.0的Ubuntu 22.04系统。那个从旧版本的Ubuntu连续升级而来的系统可以正常运行我的Dotnet Core 3.1应用程序,因为它仍然拥有旧版本的运行时(以及不再适用于22.04的libssl1.1)。
运行在WSL(即Windows下的Ubuntu)中的系统具有从packages.ubuntu.com/focus下载的dotnet6.0包、libssl1.1,以及来自microsoft的aspnetcore-runtime-3.1。
但是,dotnet --info:
.NET SDK (reflecting any global.json):
Version: 6.0.108
Commit: 4e3a463d2b
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/dotnet6-6.0.108/sdk/6.0.108/
global.json file:
Not found
Host:
Version: 6.0.8
Architecture: x64
Commit: 55fb7ef977
.NET SDKs installed:
6.0.108 [/usr/lib/dotnet/dotnet6-6.0.108/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.NETCore.App]
即使运行时显示在
/usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.28/
位置