Here I will show you how to install .Net Core in Ubuntu/Linux
Apply below commands one by one in terminal
U may get the below error, if not go to step 8
1. sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list' 2. sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 3. sudo apt-get update 4. sudo apt-get install dotnet-dev-1.0.0-preview2-003121
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: dotnet-dev-1.0.0-preview2-003121 : Depends: dotnet-sharedframework-microsoft.netcore.app-1.0.0 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Then download the file from below link and install
it should display as 1.0.0-preview2-003121
5. apt-get update 6. apt-get upgrade 7. sudo apt-get install dotnet-dev-1.0.0-preview2-003121 8. dotnet –version