Monday, July 25, 2016

Installing .NET Core on Linux/Ubuntu 16.04

Here I will show you how to install .Net Core in Ubuntu/Linux 


Apply below commands one by one in terminal

1. sudo sh -c 'echo "deb [arch=amd64] xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
2. sudo apt-key adv --keyserver --recv-keys 417A0893
3. sudo apt-get update
4. sudo apt-get install dotnet-dev-1.0.0-preview2-003121
U may get the below error, if not go to step 8

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: 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

then run

5. apt-get update
6. apt-get upgrade
7. sudo apt-get install dotnet-dev-1.0.0-preview2-003121
8. dotnet –version
it should display as 1.0.0-preview2-003121

No comments:

Post a Comment