Docs: Ubuntu 18.04 in WSL1, Unable to locate package dotnet-sdk-3.1

Created on 4 Dec 2019  Â·  10Comments  Â·  Source: dotnet/docs

Hello,

I have tried every path in this page, even the "Unable to locate package" commands (the last bunch of them, where you start by installing gpg). Unfortunately, when I try to "sudo apt-get install dotnet-sdk-3.1" I always get the following responses:

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

Is .net core sdk 3.1 for Linux up or not?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - .NET Core Guide product-question

Most helpful comment

The trick is to first let the package manager know that it should include packages from ‘packages.microsoft.com’:

_wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb_
_sudo dpkg -i packages-microsoft-prod.deb_
_sudo apt-get update_
_apt search dotnet-sdk_

reference from

All 10 comments

Yes. I also have similar issue.

Me, too, When will it be available? I'm thinking about whether to manually install it.

When will version 3.1 be available?

seems all Linux distributions don't have 3.1 yet

sudo snap install dotnet-sdk --classic
is working

If you don't want to use the snap installation, you can also download the binaries and extract them to the proper directory.
sudo tar -xvf dotnet-sdk-3.1.100-linux-x64.tar.gz -C /usr/share/dotnet/

This should be available now.

sudo apt update
apt search dotnet-sdk

And I see the 3.1 release is now available

$ apt search dotnet-sdk
Sorting... Done
Full Text Search... Done
dotnet-sdk-2.1/bionic 2.1.802-1 amd64
  Microsoft .NET Core SDK 2.1.802

dotnet-sdk-2.1.105/bionic 2.1.105-1 amd64
  Microsoft .NET Core SDK - 2.1.105

dotnet-sdk-2.1.200/bionic 2.1.200-1 amd64
  Microsoft .NET Core SDK - 2.1.200

dotnet-sdk-2.1.201/bionic 2.1.201-1 amd64
  Microsoft .NET Core SDK - 2.1.201

dotnet-sdk-2.1.202/bionic 2.1.202-1 amd64
  Microsoft .NET Core SDK - 2.1.202

dotnet-sdk-2.1.300-preview2-008533/bionic 2.1.300-preview2-008533-1 amd64
  Microsoft .NET Core SDK 2.1.300 - Preview

dotnet-sdk-2.1.300-rc1-008673/bionic 2.1.300-rc1-008673-1 amd64
  Microsoft .NET Core SDK 2.1.300 - rc1

dotnet-sdk-2.2/bionic 2.2.402-1 amd64
  Microsoft .NET Core SDK 2.2.402

dotnet-sdk-3.0/bionic 3.0.101-1 amd64 [upgradable from: 3.0.100-1]
  Microsoft .NET Core SDK 3.0.100

dotnet-sdk-3.1/bionic 3.1.100-1 amd64
  Microsoft .NET Core SDK 3.1.100

Duplicate of #16100

The trick is to first let the package manager know that it should include packages from ‘packages.microsoft.com’:

_wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb_
_sudo dpkg -i packages-microsoft-prod.deb_
_sudo apt-get update_
_apt search dotnet-sdk_

reference from

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skylerberg picture skylerberg  Â·  3Comments

Manoj-Prabhakaran picture Manoj-Prabhakaran  Â·  3Comments

stanuku picture stanuku  Â·  3Comments

sdmaclea picture sdmaclea  Â·  3Comments

JagathPrasad picture JagathPrasad  Â·  3Comments