dotnet runtime 6 on ubuntu 22.04

0

I am trying to install dotnet runtime 6 onlightsail ubuntu but after installation it says I have the newest version but when I do dotnet --list the runtime 6 is not listed. My apps dont run with error It was not possible to find any compatible framework version.

I tried sudo apt install dotnet-sdk-6.0

sudo apt install dotnet-runtime-6.O

sudo apt install aspnetcore-runtime-6.0

dotnet --info gave me this It was not possible to find any compatible framework versionThe framework 'Microsoft.NETCore.App', version '6.0.21' was not found. - The following frameworks were found: 3.1.32 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]You can resolve the problem by installing the specified framework and/or SDK.The specified framework can be found at: - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.21&arch=x64&rid=ubuntu.22.04-x64Host (useful for support): Version: 3.1.32 Commit: f94bb2c3ff.NET Core SDKs installed: 3.1.426 [/usr/share/dotnet/sdk] 6.0.413 [/usr/share/dotnet/sdk].NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.32 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.32 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

asked 6 months ago413 views
1 Answer
0

Try dotnet --list-runtimes to see what run times are installed.

You’ve configured the correct repository for the dotnet install also?

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions