Hello,
in this tutorial, I will try to explain to you the steps to follow to install .Net Core on your Ubuntu machine, as a version of your system, you can use the 18.04 or the 20.04 versions of Ubuntu.
As you know, The .NET Core is a free and open-source software framework designed with keeping Linux and macOS in mind. It is a cross-platform successor to .NET Framework available for Linux, macOS, and Windows systems. Dotnet core framework already provides scaffolding tools for bootstrapping projects.
The first thing to do is to install the necessary repository. To do this, open a terminal window and issue the following commands:
Press CTRL + ALT + T to open a terminal on the Ubuntu system and configure Microsoft PPA by running the following commands:
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Once the repository has been added, a single dependency must be installed. Do this with the following commands:
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
Dotnet core is the Software development kit used for carefully developing applications. If you are typically going to create a practical application or making changes to the existing application, you will required.net core sdk standard package on your system.
Finally, install correctly DotNet Core with these direct commands:
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
After carefully running the last command, it will typically take some modern time to populate the local package cache. This is naturally done to enable offline access, and shouldn't take more than a minute or so to complete this active process. Once it properly completes, you should naturally have your bash prompt returned. Log out and log back in, and you're ready to go.