Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install latest x64 sdk on Debian Buster #1632

Closed
anmsh opened this issue May 31, 2018 · 9 comments
Closed

Unable to install latest x64 sdk on Debian Buster #1632

anmsh opened this issue May 31, 2018 · 9 comments

Comments

@anmsh
Copy link

anmsh commented May 31, 2018

I wrote a simple series of steps to update to new available version of .NET Core. I am on Debian Buster (Debian 10).

Remove old version

cd
sudo rm -rf dotnet
sudo rm -rf /usr/local/bin/dotnet 
rm -rf .dotnet/
rm -rf .templateengine/
rm -rf .nuget/
rm -rf dotnet.tar.gz
sudo updatedb

Install current version

curl -sSL -o dotnet.tar.gz https://aka.ms/dotnet-sdk-2.0.0-linux-x64
mkdir -p ~/dotnet && tar zxf dotnet.tar.gz -C ~/dotnet
export PATH=$PATH:$HOME/dotnet
dotnet --version

Today when I tried to update to .NET Core 2.1 by changing the sdk version in the curl command

curl -sSL -o dotnet.tar.gz https://aka.ms/dotnet-sdk-2.1.300-linux-x64

This command failed as the x64 binary was not available at this location.

Is there a recommended way to install current .NET Core on Debian Buster 10 and above?

Thank you!

@leecow
Copy link
Member

leecow commented Jun 1, 2018

I'm sure we have not done any scouting on Debian 10 yet so not sure if there will be any issues. We are no longer using the aka.ms links to cover for downloads. Rather, everything is tracked in https://github.com/dotnet/core/blob/master/release-notes/releases.json or you can use https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300. Tarball can be found here.

@leecow leecow closed this as completed Jun 5, 2018
@anmsh
Copy link
Author

anmsh commented Jun 6, 2018

Thank you for pointing me toward new place for tracking releases. I think I could create a better script now.

@MrM40
Copy link

MrM40 commented Feb 2, 2019

I just installed "dotnet-runtime-2.2.0-linux-x64.tar.gz" on a clean Debian Burster.
I get the error when trying to run a dotnet app:

No usable version of the libssl was found
Aborted

Do I need to install additional dependencies?

@ltworf
Copy link

ltworf commented Feb 13, 2019

It depends on an old version of libssl that is not in debian buster and will not be part of the next stable release of debian.

Don't ask me why…

@bartonjs
Copy link
Member

@ltworf That will be fixed in the next release of .NET Core 2.1 and .NET Core 2.2 (dotnet/corefx#34443)

@MrM40
Copy link

MrM40 commented Mar 15, 2019

Quick guide to get dotnet core runtime 2.2.3 on Debian Buster:
(You cannot use MS's Debian9 install guide. You have to install it manually, the good thing is you don't have to add MS's repository to your installation :-))

  1. Download library files:
    wget -O /tmp/dotnet_runtime_2.2.3.tar.gz https://download.visualstudio.microsoft.com/download/pr/28271651-a8f6-41d6-9144-2d53f6c4aac4/bb29124818f370cd08c5c8cc8f8816bf/dotnet-runtime-2.2.3-linux-x64.tar.gz
  2. Make binary folder:
    mkdir /usr/share/dotnet/
  3. Add binary to PATH:
    export PATH=$PATH:/usr/share/dotnet/
  4. Unpak:
    tar zxf /tmp/dotnet_runtime_2.2.3.tar.gz -C /usr/share/dotnet/
  5. Confirm installation:
    dotnet --info

Find newest version here link

:-)

@Ciantic
Copy link

Ciantic commented Jul 30, 2019

In Debian Buster you also need few dependencies, at minimum dotnet SDK requires libicu63 and libssl1.1, rest is there but I didn't need them yet.

You can see the steps easilly from docker file I cooked up:

FROM debian:buster-slim
RUN apt-get update -qq -y && apt-get -y install \
    wget \
    libicu63 \
    libssl1.1
    # libc6 \
    # libgcc1 \
    # libgssapi-krb5-2 \
    # liblttng-ust0 \
    # libstdc++6 \
    # zlib1g
RUN wget -O /tmp/dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/228832ea-805f-45ab-8c88-fa36165701b9/16ce29a06031eeb09058dee94d6f5330/dotnet-sdk-2.2.401-linux-x64.tar.gz
RUN mkdir -p /usr/share/dotnet/
RUN tar zxf /tmp/dotnet.tar.gz -C /usr/share/dotnet/ && rm /tmp/dotnet.tar.gz
RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
RUN dotnet help

@glaulher
Copy link

hi, about dotnet core 2.2:

the Ubuntu 19.04 package works perfectly on debian 10, the systems have the same dependencies.

@glaulher
Copy link

working perfectly on my notebook :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants