Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Install .NET Core on Debian Stretch

Execute the following :

sudo apt-get install curl libunwind8 gettext
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?linkid=847105
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/bin

Then add Jessie's repository to your sources list :

deb http://ftp.de.debian.org/debian/ jessie main

You can now install the following missing dependencies :

  • apt -t jessie install libicu52
  • apt install libssl1.0.0 liblttng-ust0

Warning

There is an issue with the latest libcurl3 version shipped with Stretch, 7.52.1-5, and dotnet CLI.

You need to use Jessie's version which is 7.38.0-4+deb8u5.

Now you can check that everything works fine :

dotnet new console -o hwapp
cd hwapp
dotnet restore
dotnet run
@animeshb

This comment has been minimized.

Copy link

commented May 16, 2017

Hello.
When I try to install Jessie specific version, it tells me that libicu52 is already the newest version (52.1-8+deb8u5).

Looks like libicu52 is updated in jessie to the version in stretch

https://packages.debian.org/jessie/libicu52

I think I would have to wait for .NET Core 2.0

@sherlock1982

This comment has been minimized.

Copy link

commented Jun 23, 2017

According to https://packages.debian.org/jessie/libicu52 there's no libicu52 for Stretch. Jessie and sid only

@THD-Thomas-Lang

This comment has been minimized.

Copy link

commented Jun 30, 2017

Thank you so much. I have been strugling with that issue since i found your answer here.

I think the whole process of installing .net core on especially debian (stretch) isn´t very conducive. If you go with ubuntu, all you have to do is apt-get install a package that gets auto updated. With debian i have to curl manually new .net versions. I don´t know why those responsible at microsoft don´t provide a package for debian.

But that´s non of my business. Thank you!!!

@calderhayes

This comment has been minimized.

Copy link

commented Jul 7, 2017

This worked perfectly, thank you for sharing!

@xcap2000

This comment has been minimized.

Copy link

commented Aug 6, 2017

It worked flawlessly. After installing the suggested packages not only dotnet worked as a self contained app published for debian 8 worked as well. After installing the packages I disabled the jessie reository on sources.list. Thank you very much.

@GrimTheReaper

This comment has been minimized.

Copy link

commented Aug 8, 2017

Segfaults.

@eduardomps

This comment has been minimized.

Copy link

commented Oct 22, 2017

just to note:
I had other package which depended on curl, namely steam-launcher, and obviously I had to remove it prior to reinstalling the libcurl3 from jessie. No problems after reinstalling, though.

@itssimple

This comment has been minimized.

Copy link

commented Dec 14, 2017

I had to install this version of curl to make it work
sudo apt-get -t=jessie install libcurl3=7.38.0-4+deb8u8
sudo apt-get -t=jessie install curl=7.38.0-4+deb8u8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.