And tried to install ASP.NET Core Runtime 7.0.0-rc.1 but without any
success. Any idea, please?
Tough .NET 7 RC 1
has been released. However, regarding Linux Runtime
compatibility there is not official guideline yet. Furthermore, here is the open GitHub thread
you can post your issue.
Up to now, for Ubuntu 22.04
dotnet-runtime-6.0
has official instructions where you should consider following scenarios:
Clean machine
(Haven't installed dotnet before
)
Mixed-state
(Installed dotnet before but want to update`)
Note: Please consider your state first, depending on the scenario command might changed. For example, if you encounter any error on executing this command udo apt-get install -y aspnetcore-runtime-6.0
that scenario, you should replace with below command.
sudo apt-get install -y dotnet-runtime-6.0
Suggested Commnad:
As per your scenario, you could follow below command as suggested here
:
sudo apt remove dotnet*
sudo apt remove aspnetcore*
sudo rm /etc/apt/sources.list.d/microsoft-prod.list*
sudo apt update
sudo apt install aspnetcore-runtime-6.0
You could check details here in official GitHub thread.