Skip to content

Instantly share code, notes, and snippets.

@Yutsa
Last active December 14, 2017 12:25
Show Gist options
  • Save Yutsa/d382721f26be73e4112bd903cf6b0490 to your computer and use it in GitHub Desktop.
Save Yutsa/d382721f26be73e4112bd903cf6b0490 to your computer and use it in GitHub Desktop.

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
@eduardomps
Copy link

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
Copy link

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