Friday, 27 May 2016

Installing .Net Core on Ubuntu 16.04 LTS

The recent development by Microsoft in the ASP.Net core space is fascinating. With the introduction of ASP.Net Core 1.0 at the start of the year and then the recently released ASP.Net Core 1.0 RC2, I thought it would be a good idea to try it out on a Linux box.

The installation proved to be a bit trickier than I thought, so sharing my experience so as to help other out. The flavour of Linux I used was Ubuntu 16.04 LTS.

At the time of writing this post, the instructions present on Microsoft .Net Core website are for Ubuntu 14.04. Tried to follow the steps described on the website. However, execute dotnet failed with the following error on my machine
Failed to initialize CoreCLR, HRESULT: 0x80131500

So tried to proceed with some other steps. In general, installing .Net on Ubuntu require the following steps

1) Add .net repo to trusty sources list
2) Add key for the newly added trusted source
3) Install dotnet


To do the above, open up a terminal on your Ubuntu machine.

To add repo, run the following command
sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
To add the key, run the following command
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
Once, the above done, it's bes to update everything by running
sudo apt-get update
 Now that everything is done, .Net can be installed by running
sudo apt-get install dotnet

The above command, however, didn't work for me. It failed with the following error


The following packages have unmet dependencies: dotnet : Depends: libicu52 (>= 52~m1-1~) but it is not installable E: Unable to correct problems, you have held broken packages.

The error is quite self-descriptive, and the answer is to install libicu package. Ran the commnad
sudo apt-get install libicu-dev

The above command installed the libicu55 on my machine, whilst .Net core has a dependency on libicu52. Fortunately, the package is available for download here.

Once downloaded, the package can be installed by running
sudo dpkg -i libicu52_52.1-3ubuntu0.4_amd64.deb 

Now that the pre-requisite is installed, installing dotnet is simply a matter of running the following
sudo apt-get install dotnet

The above worked for me this time around. To test that it installed correctly, just type dotnet new in a new folder. It will create files for your .net project.

Please Note: Make sure that you set permissions to execute downloaded files described in this post. 

61 comments:

paul_ogle said...

shouldn't it be sudo dpkg -i to install the .deb package? Other than that, great tutorial!

Hamid said...

Yes you are right Paul. Thanks for correcting. I will edit the post.

Unknown said...

This did not work for me on Ubuntu 16.04 LTS 64bit
it resulted in multiple unhandled exceptions - even after trying uninstall of old

Why are you using trusty when, I think 16.04 is xenial ??

Dileep.M said...

I'm trying to install on 16.04, i386 .

Getting following exception Please help.


Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-dev-1.0.0-preview1-00270
E: Couldn't find any package by glob 'dotnet-dev-1.0.0-preview1-00270'
E: Couldn't find any package by regex 'dotnet-dev-1.0.0-preview1-00270'

isabella said...

Thanks for this blog. Provided great information. All the details are explained clearly with the great explanation. Learn.. Dot Net Training in Chennai
Selenium Training in Chennai
Hadoop Training in Chennai

Unknown said...


Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.i am expecting more updated posts from your hands.
iOS App Development Company

Unknown said...

Howdy a dedication of appreciation is all together for the splendid offer and it will be noteworthy for a couple of individuals who are pursuing down best site building connection or so far working with webpage page arranging company.We in like manner give quality Web Design and Web change advantage at sensible cost .

excellent web developer service in bangalore
experts of eCommerce Website developers company in bangalore

Ram Ramky said...

Hai admin, thanks for sharing your thoughts with us. Your article helped me to gain knowledge on dot net environment.
Regards:
Best DOT NET Training institute in Chennai | DOT NET Training Chennai

blackkutty said...

A debt of gratitude is in order for this blog. Given extraordinary data. Every one of the points of interest are clarified unmistakably with the immense clarification.
Technology

Kamal said...

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome.
Article Submission sites | Technology | Education | Daily Consumer Life

Anonymous said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
full stack developer training in annanagar

full stack developer training in tambaram

full stack developer training in velachery

Unknown said...

Thank you for allowing me to read it, welcome to the next in a recent article. And thanks for sharing the nice article, keep posting or updating news article.

Data science training in tambaram
Data Science training in anna nagar
Data Science training in chennai
Data science training in Bangalore
Data Science training in marathahalli
Data Science training in btm

Anoushka Sakthi said...

I just want to say that all the information you have given here is awesome. Thank you.
French Classes in Adyar
French Classes in Velachery
French Classes in Tambaram
French Language Classes in Velachery
French Course in Adyar
French Language Classes in Tambaram
French Training Institutes in Velachery

simbu said...

I recently came across your blog and have been reading along. I thought I would leave my first comment.
java training in chennai | java training in bangalore


java training in tambaram | java training in velachery

prabha said...

I simply want to give you a huge thumbs up for the great info you have got here on this post.

angularjs Training in chennai
angularjs Training in chennai

angularjs-Training in tambaram

angularjs-Training in sholinganallur

angularjs-Training in velachery

haripriya said...

Thank you for sharing such great information with us. I really appreciate everything that you’ve done here and am glad to know that you really care about the world that we live in
Microsoft Azure online training
Selenium online training
Java online training
Java Script online training
Share Point online training

creationmaker said...

Nice post..Thanks for sharing this helpful post..

ORACLE TRAINING IN CHENNAI

Ajay said...

Superb...
Online Internship

Sri prathana said...

This blog is very much useful...

DATA SCIENCE TRAINING IN CHENNAI

WINTER INTERNSHIPTRAINING IN CHENNAI

Priya said...

IOT Training in Chennai
Internship in Chennai
R programming Training in Chennai

saishree said...

awesome.
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI
IMPLANT TRAINING IN CHENNAI

Vijiaajith said...

Nice....
freeinplanttrainingcourseforECEstudents
internship-in-chennai-for-bsc
inplant-training-for-automobile-engineering-students
freeinplanttrainingfor-ECEstudents-in-chennai
internship-for-cse-students-in-bsnl
application-for-industrial-training

Vijay said said...

Good Post! keep share.

R programming Training in Chennai
IOT Training in Chennai
Inplant Training For Aeronautical
Internship For Aerospace Engineering Students in India
Inplant Training For CSE
List of Companies Offereing Summer Internship For ECE Students
Internship For 1st Year Engineering Students
Winter Internship in India For Mechanical Engineering Students
Best Inplant Training in Chennai For ECE Student
Summer Internship For Instrumentation Engineering Students
Summer Internship For Electrical Engineering Students 2018
Inplant Training For EI

Vijay said said...

Nice Blog! it is useful information.

The Mother Said to Her Child You Must be Back Four
Given Signs Signify Something and on That Basis Assume the Given Statements
How Will a Class Protect The Code Inside It
Ashima Wants to Print a Pattern Which Includes Checking and Changing a Variables Value
A Watch was Sold at a Loss of 10
A Customer Paid You 600 Dollar for Construction Work
A and B are Two Cars Travelling to a Destination
Spark Developer Resume Download
Ajith Sells a Table to Ajay at 10 Percent Profit and Ajay Sells it to be Anoob at 10 Percebt
The Construct If Condition Then a else b is Used for Which of the Following Purposes

Suji Sanjana said...

Nice....

CCNA training in chennai
Ethical Hacking training in chennai
Matlab training in chennai
C++ training in chennai
Cloud computing training in chennai
Machine Learning training in chennai
Artificial Intelligence training in chennai
C training in chennai
Robotics training in chennai

Vijiaajith said...

Interesting
Permutation and Combination Aptitude Interview Questions
Oracle Delete
Time and Work Aptitude Interview Questions
Chrome Flags Complete Guide Enhance Browsing Experience
Recursion and Iteration Programming Interview Questions
Apache Pig Subtract Function
Xml Serializer there was an Error Reflecting Type
Simple Interest Aptitude Interview Questions
Compound Interest Aptitude Interview Questions
Specimen Presentation of Letters Issued by Company

smartdeveloper said...


inplant training in chennai

implant training in chennai

internship for cse 3rd year students

inplant training

in plant training in chennai

inplant traning in chennai

internship for bca 2nd year

internship in chennai for ece

internship in chennai for cse

inplant

Repairtech Solutions said...

Hi there! I simply wish to give you a huge thumbs up for your great information you've got here on this post. I am returning to your web site for more soon. onsite mobile repair bangalore When I initially commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I recieve 4 emails with the same comment. There has to be a way you can remove me from that service? Thanks! asus display repair bangalore Next time I read a blog, Hopefully it doesn't fail me as much as this particular one. I mean, I know it was my choice to read through, however I genuinely thought you'd have something interesting to talk about. All I hear is a bunch of whining about something you could possibly fix if you were not too busy seeking attention. huawei display repair bangalore

Repairtech Solutions said...

Aw, this was a very good post. Finding the time and actual effort to create a very good article… but what can I say… I procrastinate a lot and never manage to get anything done. online laptop repair center bangalore I’m impressed, I must say. Seldom do I encounter a blog that’s both equally educative and engaging, and without a doubt, you have hit the nail on the head. The issue is something that not enough folks are speaking intelligently about. I am very happy I found this during my hunt for something concerning this. dell repair center bangalore

Repairtech Solutions said...


Oh my goodness! Impressive article dude! Thank you, However I am experiencing problems with your RSS. I don’t understand why I am unable to subscribe to it. Is there anybody having identical RSS problems? Anyone who knows the answer will you kindly respond? Thanx!! macbook repair center bangalore An impressive share! I've just forwarded this onto a co-worker who was conducting a little research on this. And he actually bought me breakfast because I stumbled upon it for him... lol. So allow me to reword this.... Thanks for the meal!! But yeah, thanks for spending some time to discuss this issue here on your blog. acer repair center bangalore

preethi minion said...

good blogs..
afghanistan hosting
angola hosting
afghanistan web hosting
bahrain web hosting
belize web hosting
india shared web hosting
italy web hosting
suden web hosting
tunisia hosting
uruguay web hosting

ammu said...

very good.....
brunei darussalam web hosting
costa rica web hosting
costa rica web hosting
hong kong web hosting
jordan web hosting
turkey web hosting
gibraltar web hosting
iceland web hosting
lebanon web hosting
lithuania shared web hosting

dras said...

nice to learn...
Australia hosting
Bermuda web hosting
Botswana hosting
mexico web hosting
moldova web hosting
albania web hosting
andorra hosting
armenia web hosting
australia web hosting
denmark web hosting

raju said...

sharing the information...
dominican republic web hosting
iran hosting
palestinian territory web hosting
panama web hosting
syria hosting
services hosting
afghanistan shared web hosting
andorra web hosting
belarus web hosting
brunei darussalam hosting

shiv said...

nice.......
vietnam web hosting
google cloud server hosting
canada telus cloud hosting
algeeria hosting
angola hostig
shared hosting
bangladesh hosting
botswana hosting
central african republi
shared hosting

kani said...

Thanks for sharing...
hosting
india hosting
india web hosting
iran web hosting
technology 11 great image sites like imgur hosting
final year project dotnet server hacking what is web hosting

kani said...

good blog...
macao web hosting
cloud computing virtual server canada hosting
italy hosting
kenya shared web hosting
inplant training in chennai

Muthu said...

Very Nice...
internship in chennai for ece students with stipend
internship for mechanical engineering students in chennai
inplant training in chennai
free internship in pune for computer engineering students
internship in chennai for mca
iot internships
internships for cse students in
implant training in chennai
internship for aeronautical engineering students in bangalore
inplant training certificate

preethi minion said...

robotics courses
inplant training in chennai for eee students
paid internships in hyderabad for cse students
list of architectural firms for internship in india
internship for mca students
matlab training in chennai
final year project for it
internship for production engineering students
aeronautical internship
inplant training report for civil engineering

shalini said...

good .........very useful
fresher-marketing-resume-sample
front-end-developer-resume-sample
full-stack-developer-resume-samples
fund-accountant-resume-samples
general-ledger-accountant-resume-sample
government-jobs-resume
hadoop-developer-sample-resume
hadoop-developer-sample-resume
hardware-and-networking-resume-samples
hardware-engineer-resume-sample

MyTraining said...

Thanks for sharing this information with us...
Digital Marketing Courses in Bangalore
digital marketing training in bangalore

Bhanu sri said...

360digitmg provides Tableau Certification Program provides an in-depth study of Tableau architecture and the Tableau Product Suite. The multifarious facets of Tableau Desktop like charts, tables, maps, functions, filters, hierarchies, joins, unions, groups, parameters, calculated fields, and Tooltips are explained vividly with relevant examples.
360digitmg provides Tableau Certification Program

karthickannan said...

This is really an amazing article. Your article is really good and your article has always good thank you for information.....
coronavirus update
inplant training in chennai
inplant training
inplant training in chennai for cse
inplant training in chennai for ece
inplant training in chennai for eee
inplant training in chennai for mechanical
internship in chennai
online internship



Arunvijay said...

Good post...
Coronavirus Update
Intern Ship In Chennai
Inplant Training In Chennai
Internship For CSE Students
Online Internships
Internship For MBA Students
ITO Internship

latchu kannan said...

Thanks for shraing your valuable information with us. you people are doing an great job.

AngularJS training in chennai | AngularJS training in anna nagar | AngularJS training in omr | AngularJS training in porur | AngularJS training in tambaram | AngularJS training in velachery

priyasri said...

This post is very simple to read and appreciate without leaving any details out. Great work!
learn360digitmg data science course

360digiTMG said...

I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
360digiTMG data science training in guduvanchery

abid said...

Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.
data science course in guwahati

Sowmiya R said...

I have gone through your blog, it was very much useful for me and because of your blog, and also I gained many unknown information, the way you have clearly explained is really fantastic. Kindly post more like this, Thank You. very nice to see

Oracle Training | Online Course | Certification in chennai | Oracle Training | Online Course | Certification in bangalore | Oracle Training | Online Course | Certification in hyderabad | Oracle Training | Online Course | Certification in pune | Oracle Training | Online Course | Certification in coimbatore

360digitmg said...

This post is very simple to read and appreciate without leaving any details out. Great work!
360digitmg data science course

Machine Learning Course in Raipur - 360DigiTMG said...

Extraordinary blog filled with an amazing content which no one has touched this kid of subject before. Thanking the blogger for all the terrific efforts put in to develop such an awesome cotent. Expecting you to deliver similar contents further too and keep sharing as always.

360DigiTMG PMP Certification Course

Lopa said...

Wow, it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and I got more information from your blog.
Digital Marketing Training in Chennai
Digital Marketing Training in Bangalore
Digital Marketing Training in Delhi
Digital Marketing Online Training

Devi said...

Are you looking for Big Data training in Chennai with placement opportunities? Then we, Infycle Technologies are with you to make your dream into reality. Infycle Technologies is one of the best Big Data Training Institute in Chennai, which offers various programs along with Big Data such as Oracle, Java, AWS, Hadoop, etc., in complete hands-on practical training with trainers, those are specialists in the field. In addition to the training, the mock interviews will be arranged for the candidates, so that they can face the interviews with the best knowledge. Of all that, 100% placement assurance will be given here. To have the words above in the real world, call 7502633633 to Infycle Technologies and grab a free demo to know more.AWS training in Chennai

Rajendra Cholan said...

Ge set your career towards Oracle with the best Oracle training in Chennai with Infycle Technologies. Infycle offers the best software courses such as Big Data, Java, Python, Hadoop, etc in a complete hands-on training tutored by professionals in the field. Apart from the training, the mock interviews for the placement will be given, so that, they can face the interviews with full confidence. While completing the mock interview, the candidates will be placed in the top MNC's with a great salary package. For all this, call 7502633633 and make this happen for your happy life.
https://infycletechnologies.com/oracle-training-in-chennai/

Maridev said...

Technologies is one of the best Oracle Training Institute in Chennai, which offers various programs in Oracle such as Oracle PLSQL, Oracle DBA, etc., in the 200% hands-on practical training with specialized trainers in the field. In addition to that, the mock interviews will be arranged for the candidates, so that, they can face the interviews without any fear. Of all that, 100% placement assurance will be given here. To have the words above in the real world, call 7502633633 to Infycle Technologies and grab a free demo to know more.

Rajendra Cholan said...


If Python is a work you've always wanted, we at Infycle are here to help you make it a reality. Infycle Technologies provides Python Training in Chennai, with various levels of highly sought-after software courses such as Oracle, Java, Python, Big Data, and others, delivered through 100% hands-on practical training with industry experts. In addition, mock interviews will be conducted. For more details contact 7502633633 to grab a free demo.

Best
python training in Chennai

Rajendra Cholan said...

Learn Amazon Web Services for making your career as a shining sun with Infycle Technologies. Infycle Technologies is the best AWS training center in Chennai, providing complete hands-on practical training of professional specialists in the field. In addition to that, it also offers numerous programming language tutors in the software industry such as Oracle, Java, Python,\WS, Hadoop, etc. Once after the training, interviews will be arranged for the candidates, so that, they can set their career without any struggle. Of all that, 200% placement assurance will be given here. To have the best career, call 7502633633 to Infycle Technologies and grab a free demo to know more.

Best AWS Training in Chennai

jaber said...

Here
Here
Here
Here
Here
Here
Here
Here
Here
Here

Anonymous said...

instruction to download net core here is so great and useful. hope to see other guides.
apk launcher
скачать роблокс

Anonymous said...

Thank for instructing, but I think it much better if there is an instruction video
joker wallpaper
bibliotu

Cyberz Pc said...

Wow, that is appealing studying. i am glad i found this and were given to artifice in it. great task upon this content. I preferred it loads. thanks for the colossal and precise data. Driver Genius Pro Crack