I currently have installed ASP.NET Core 3.1 on my computer. Now I need to install ASP.NET Core 6.0 to develop a project on ASP.NET Core 6.0 as well on Ubuntu 20.04 LTS Operating System.
When I run the below code
sudo apt-get install -y dotnet-sdk-6.0
It shows the following response
Reading package lists... Done
Building dependency tree
Reading state information... Done
dotnet-sdk-6.0 is already the newest version (6.0.101-1).
0 upgraded, 0 newly installed, 0 to remove and 153 not upgrade
but when I check available SDK using dotnet --list-sdks
it shows
3.1.416 [/snap/dotnet-sdk/153/sdk]
How can I solve this