winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Cant add winget source

Open Nollknolle opened this issue 2 years ago • 11 comments

Brief description of your issue

when i would like to add the winget source again i get the following error.

winget source add --name winget https://winget.azureedge.net/cache
Quelle wird hinzugefügt:
  winget -> https://winget.azureedge.net/cache
Unerwarteter Fehler beim Ausführen des Befehls:
0x8051100f : unknown error

Source List:

Name    Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0

Steps to reproduce

winget source add --name winget https://winget.azureedge.net/cache

Expected behavior

adds the source

Actual behavior

get the above error

Environment

Windows: Windows.Desktop v10.0.22000.318
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.18.2691.0

Nollknolle avatar Nov 04 '22 12:11 Nollknolle

Same issue here

codewater30 avatar Nov 05 '22 07:11 codewater30

Oh, I found out that if i run winget source reset --force, the https://cdn.winget.microsoft.com/cache source gets back

codewater30 avatar Nov 05 '22 07:11 codewater30

Had the same issue, ran winget source reset --force to get the source back but still have the current issue

winget upgrade
Failed in attempting to update the source: winget
Failed when searching source; results will not be included: winget
No installed package found matching input criteria

SwamiVT avatar Nov 05 '22 10:11 SwamiVT

Same error here 圖片

Update: temporary fixed by switch to USA using Surfshark VPN

yjlin0224 avatar Nov 05 '22 12:11 yjlin0224

Had the same issue, ran winget source reset --force to get the source back but still have the current issue

winget upgrade
Failed in attempting to update the source: winget
Failed when searching source; results will not be included: winget
No installed package found matching input criteria

I have the same issue and believe there is a larger issue going on.. https://github.com/microsoft/winget-cli/issues/1656

jrm523 avatar Nov 05 '22 14:11 jrm523

This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>ResourceNotFound</Code> <Message>The specified resource does not exist. RequestId:3851d20e-e01e-0071-7c2a-f1db5e000000 Time:2022-11-05T15:24:03.5192764Z</Message> </Error>

jo20201 avatar Nov 05 '22 15:11 jo20201

I'm also having the same problem. Apparently Winget CDN is down: https://cdn.winget.microsoft.com/cache.

prodrigues1912 avatar Nov 05 '22 17:11 prodrigues1912

Was troubleshooting winget source not working for over an hour, just to discover that the Winget CDN does appear to be down... Well, at least I now know it's not me :-)

chriskuipers avatar Nov 05 '22 18:11 chriskuipers

According to #2666 , the CDN might be down in some countries.

YDX-2147483647 avatar Nov 06 '22 03:11 YDX-2147483647

In my case: this is because winget doesn’t like multiple users to be using it. Imagine that apt or end (formerly my) only worked for one user. That’s where winget is at.

David-Noble-at-work avatar Nov 06 '22 20:11 David-Noble-at-work

i had same issue. (i still have) winget cdn having issue. it return 0KB source file (https://cdn.winget.microsoft.com/cache/source.msix)

i managed to download valid source.msix using a VPN with Canada location. now it works without VPN but 0KB source is still a thing without VPN.

it shows Failed in attempting to update the source: winget

image

ParallaxCoder avatar Nov 07 '22 15:11 ParallaxCoder

@Nollknolle have you been able to resolve this with winget source reset --force in administrator mode?

denelon avatar Dec 06 '22 23:12 denelon

@Nollknolle have you been able to resolve this with winget source reset --force in administrator mode?

I don't tried it anymore.

Nollknolle avatar Dec 12 '22 07:12 Nollknolle

Same issue here! I had tried to resolve this with winget source reset --force in administrator mode but still showed the same issue. It seems the Winget CDN is down: https://cdn.winget.microsoft.com/cache.

IronManStank avatar Feb 10 '23 03:02 IronManStank

@IronManStank I don't think the CDN is down, but we have been playing whack a mole with random endpoints. We've had an open investigation with our provider for weeks, and we're hopefully down to the isolated individual endpoints. We're also bringing in additional third-party monitoring to help find issues sooner.

I've seen a few people with work arounds by specifying known good endpoints in their hosts file. It's been pretty painful to isolate and fully resolve. Apologies for all the frustration this is causing.

denelon avatar Feb 10 '23 19:02 denelon

https://cdn.winget.microsoft.com/cache/source.msix is the package that gets installed to update the local database of packages.

denelon avatar Feb 10 '23 19:02 denelon