Ubuntu - Installing .net core

onurhb picture onurhb · May 19, 2016 · Viewed 60.6k times · Source

I want to try out the new .net core. I am following instructs at https://www.microsoft.com/net/core, but it is not working.

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-preview1-002702 : Depends: dotnet-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I am running ubuntu 16.04.

Answer

Frank Boucher picture Frank Boucher · May 20, 2016

UPDATED see at the end. (thanks to Prasanna)

.NET core now supports Ubuntu 14.04, 16.04, 16.10 & Linux Mint 17.

Please check the official page for all the details.

Today (May 2016) only Ubuntu 14.04 is supported.

I successfully install it on Ubuntu 15.10 by adding

deb http://security.ubuntu.com/ubuntu trusty-security main

to /etc/apt/sources-list

Once it's done you should do:

apt-get update

apt-get upgrade

and again the command

apt-get install dotnet-dev-1.0.0-preview1-002702a

It will ask to install extra package; you reply yes and you are done!

Test by typing

dotnet --version

Enjoy!

UPDATED