Issue
I have .NET6 runtime installed on Ubuntu 22.04
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.9 [/usr/lib/dotnet/dotnet6-6.0.109/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.9 [/usr/lib/dotnet/dotnet6-6.0.109/shared/Microsoft.NETCore.App]
And tried to install ASP.NET Core Runtime 7.0.0-rc.1 but without any success. Any idea, please?
Ref:
Solution
Thanks for interesting.
So, I ended up with this solution
1-
curl https://download.visualstudio.microsoft.com/download/pr/0857e86d-4206-4c14-b814-e5e3424f8396/6e1113fce778ef9ff69eb2ffefd6de76/aspnetcore-runtime-7.0.0-rc.1.22427.2-linux-musl-x64.tar.gz -o aspnetcore-runtime-7.0.0-rc.1.22427.2-linux-musl-x64.tar.gz
2-
mkdir dotnet7-7.0.100-rc.1
3-
tar xvf aspnetcore-runtime-7.0.0-rc.1.22427.2-linux-musl-x64.tar.gz -C dotnet7-7.0.100-rc.1
4- (Optional; sure, if not exist before)
sudo mkdir /usr/lib/dotnet
5-
sudo cp -R dotnet7-7.0.100-rc.1 /usr/lib/dotnet/dotnet7-7.0.100-rc.1
6-
sudo ln -sf /usr/lib/dotnet/dotnet7-7.0.100-rc.1 /etc/alternatives/dotnet7rc1
7-
sudo ln -sf /usr/lib/dotnet/dotnet7-7.0.100-rc.1/dotnet /etc/alternatives/dotnet
Ref: https://dotnet.microsoft.com/en-us/download/dotnet/7.0
Answered By - AmD Answer Checked By - Mildred Charles (WPSolving Admin)