Core: .NET Core SDK 2.1.4 on Linux Ubuntu 18.04: Unable to locate package

Created on 9 May 2018  路  13Comments  路  Source: dotnet/core

.NET Core SDK 2.1.4 on Linux Ubuntu 18.04: Unable to locate package

Given the link here:
https://www.microsoft.com/net/download/linux-package-manager/ubuntu18-04/sdk-2.1.4

When I run the last step of the procedure:
sudo apt-get install dotnet-sdk-2.1.4

I get:

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

Comparing the contents between say 17.10 and 18.04, it definitely looks like the package is missing.

Most helpful comment

If the following methods does not help, you could try following the documentation for Ubuntu 18.04 down below:

https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.1.0-download.md#ubuntu-1804

All 13 comments

@jasonkenneth - The 2.1.4 SDK instructions should not reference 18.04 as support for that version was only added in April. The 2.1.4 SDK is not available on the 18.04 feed which accounts for the error you see. The latest available .NET Core 2.0 Runtime and SDK for 18.04 is SDK 2.1.200 and Runtime 2.0.7.

sudo apt-get install dotnet-sdk-2.1.200 and you'll be good to go.

Thanks! I'm confused by the versioning scheme here.

I just saw a link to a slightly newer release today:
sudo apt-get install dotnet-sdk-2.1.300-rc1-008673

(from https://www.hanselman.com/blog/AnnouncingNETCore21RC1GoLiveANDNETCore30Futures.aspx)

Is this fixed yet???

Still an issue.

Still an issue :/

:(

It seems to be unfixable with apt-get, but you can manually install, check here https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.1.0-download.md#installation-from-a-binary-archive

This fixes it: #1889 (comment)

I needed one more step as mentioned in this issue
sudo add-apt-repository universe

and then:
sudo apt-get install dotnet-sdk-2.1

If the following methods does not help, you could try following the documentation for Ubuntu 18.04 down below:

https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.1.0-download.md#ubuntu-1804

Work for me !

Had the same issue.
Removed 2.1 to update to 2.2. And the Repo was just gone.
I had to do the manual steps from https://github.com/dotnet/core/issues/1889#issuecomment-417092809 and it fixed it. But this seems to be a general problem with the way MS adds the repo with that deb package since i have the exact same issue with the pwsh repo.

Looks like some package wiring was missing, but specifying a few transitive deps explicitly seemed to work for me...

!/bin/bash

wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo dpkg -i libicu55_55.1-7_amd64.deb
sudo add-apt-repository universe
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-2.1 dotnet-runtime-2.1 aspnetcore-runtime-2.1 dotnet-runtime-deps-2.1 libicu55

Was this page helpful?
0 / 5 - 0 ratings