docs icon indicating copy to clipboard operation
docs copied to clipboard

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

Open PhilipHassialis opened this issue 7 years ago • 11 comments

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.

PhilipHassialis avatar Dec 04 '19 11:12 PhilipHassialis

Yes. I also have similar issue.

tomnuen avatar Dec 04 '19 11:12 tomnuen

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

ogswr avatar Dec 04 '19 11:12 ogswr

When will version 3.1 be available?

roduman avatar Dec 04 '19 11:12 roduman

seems all Linux distributions don't have 3.1 yet

althunibat avatar Dec 04 '19 12:12 althunibat

sudo snap install dotnet-sdk --classic is working

althunibat avatar Dec 04 '19 12:12 althunibat

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/

mightyshazam avatar Dec 04 '19 16:12 mightyshazam

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

Thraka avatar Dec 05 '19 06:12 Thraka

Duplicate of #16100

Thraka avatar Dec 05 '19 06:12 Thraka

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

utsabshrestha avatar Jul 30 '20 09:07 utsabshrestha

https://dev.to/solrevdev/install-net-core-on-ubuntu-20-04-lts-focal-fossa-53m9

PabloFerreiraB avatar Sep 27 '20 23:09 PabloFerreiraB

This saved my life! Thank you so much!

emaalouf avatar Aug 13 '21 10:08 emaalouf