Ubuntu 18.04 in WSL1, Unable to locate package dotnet-sdk-3.1
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.
- ID: 38f33bad-b152-c53b-1b0a-234c9a075bd7
- Version Independent ID: 565e7432-c4b3-a1c2-8ce3-c8c1a0d8ebe8
- Content: Install .NET Core on Ubuntu 18.04 package manager - .NET Core
- Content Source: docs/core/install/linux-package-manager-ubuntu-1804.md
- Product: dotnet-core
- GitHub Login: @Thraka
- Microsoft Alias: adegeo
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
https://dev.to/solrevdev/install-net-core-on-ubuntu-20-04-lts-focal-fossa-53m9
This saved my life! Thank you so much!