Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu - Installing .net core

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.

like image 817
onurhb Avatar asked May 19 '16 12:05

onurhb


People also ask

How do I know if .NET Core is installed Ubuntu?

Core 2.0 and above) the only thing needed is to execute dotnet --info in a command prompt to get information about the latest version installed. If . NET Core is installed you will get some response.

Can I run .NET Core on Linux?

NET Core runtime allows you to run applications on Linux that were made with .


1 Answers

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

like image 66
Frank Boucher Avatar answered Oct 11 '22 12:10

Frank Boucher