Skip to content

Couldn't find any package by glob 'dotnet-sdk-3.1' #18084

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

Closed
wshaddix opened this issue Apr 25, 2020 · 17 comments
Closed

Couldn't find any package by glob 'dotnet-sdk-3.1' #18084

wshaddix opened this issue Apr 25, 2020 · 17 comments

Comments

@wshaddix
Copy link

After following the docs for ubuntu 20.02 I get the error

Couldn't find any package by glob 'dotnet-sdk-3.1'

I then followed the docs for troubleshooting this issue, mainly running

sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb

and then tried to install dotnet-sdk-3.1 but I still get the exact same error


Document Details

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

Copy link

jk8260 commented Apr 25, 2020

same

Copy link

lzuhuo commented Apr 25, 2020

Same too

Copy link

XorZy commented Apr 25, 2020

Same problem also

@CryptoRodeo
Copy link

Same here

@AllwinSamuelJeba
Copy link

Same problem
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'

@xSke
Copy link

xSke commented Apr 25, 2020

The 20.04/focal repository doesn't contain the packages yet. Looks like it still only has placeholder packages: https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/

Copy link

thebf commented Apr 25, 2020

I have the same issue though i was able to use the package from the snap store.

@CryptoRodeo
Copy link

I was also able to get it from the snap store, thanks for the heads up @thebf !

Copy link

thebf commented Apr 25, 2020

Never mind, the dotnet cli tools are not quite available so certain aspects of working with aspnet core is not smooth with the snap store approach

@dagood
Copy link
Member

dagood commented Apr 25, 2020

The 20.04/focal repository doesn't contain the packages yet. Looks like it still only has placeholder packages: https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/

This is right--there are are some workarounds in the dotnet/core issue about this: dotnet/core#4360. I've asked there if the 20.04 page should be taken down (since we don't have packages on the repo yet) or we could potentially publish workaround instructions.

@Thraka @leecow @rbhanda /cc @NikolaMilosavljevic

Copy link

chgray commented Apr 25, 2020

same

@CryptoRodeo
Copy link

CryptoRodeo commented Apr 26, 2020

I was able to get dotnet working on Ubuntu 20.04 using the .NET core script and then adding the path variables to both ~/.profile and ~/.bash
https://dotnet.microsoft.com/download/dotnet-core/scripts

@Thraka
Copy link
Contributor

Thraka commented Apr 26, 2020

@dagood I thought it was released and ready? Was I wrong? I must have crossed some wires somewhere.

@torsilver
Copy link

I have the same issue though i was able to use the package from the snap store.

真的能找到 非常感谢

@Thraka
Copy link
Contributor

Thraka commented Apr 27, 2020

Removed the article for now. Once it's actually ready, I'll republish the article. Ack!

@Thraka Thraka closed this as completed Apr 27, 2020
@Thraka Thraka added doc-bug and removed ⌚ Not Triaged Not triaged labels Apr 27, 2020
@dagood
Copy link
Member

dagood commented Apr 27, 2020

Thanks! For anyone who hits this thread later--workarounds and the status of getting .NET Core packages released for 20.04 are at dotnet/core#4360.

@ghost
Copy link

ghost commented Aug 2, 2022

I typed these commands and it worked:

sudo apt-get install -y gpg
wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget https://packages.microsoft.com/config/ubuntu/22.04/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update &&
sudo apt-get install -y dotnet-sdk-3.1

But now I formatted my PC and I'm trying to install again but the error appears as if I didn't type the above commands.

@PRMerger9 PRMerger9 added the Pri2 label Aug 2, 2022
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