winget-cli: Publishing is down again (failed to update source)
Brief description of your issue
Same problem that previously occured #2666 has started again. And downloading the msix from https://cdn.winget.microsoft.com/cache/source.msix returns a 0kb file.
Steps to reproduce
Run winget source update
Expected behavior
winget should have updated successfully
Actual behavior
Winget will attempt to update the source when running any command but will return the message Failed in attempting to update the source: winget
. If you run winget source update
it will respond with Cancelled
Environment
Windows Package Manager v1.3.2691
Windows: Windows.Desktop v10.0.22621.819
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 12
- Comments: 46 (9 by maintainers)
ResourceNotFoundThe specified resource does not exist.
Hey all, we’ve addressed the zero-byte file issue in the CDN.
Publishing has been working consistently since then, so I’m going to go ahead and close this issue.
We’re aware there are users who are still having issues updating the source in some scenarios, so we’ll deal with those on a more case by case basis.
We’ve been working with our CDN provider to squash the nasty zero-byte file being cached and served. Is anyone still getting this problem? If you are, can you share the IP address you’re hitting?
Update: My problem was solved. It was caused by installing Private Internet Access which automatically turned on it’s “VPN Kill switch” not allowing any traffic to flow via windows built-in networking. Browsers worked fine though which is why I was confused. I turned off the kill switch and everything appears to work fine now.
Update: It happened again but installing Cloudflare WARP solved the issue, I think the problem isn’t with winget CDN, but my ISP (Grameenphone), because I’m having same issue with twitter and GitHub (sometimes).
Fixed after uninstalling internet download manager.
Happy New Year, and i tried testing another thing…
i cannot make SSLLabs analyze the European side of the CDN - SSLLabs does not let me select 152.199.21.175 and it auto-selects to the North America one, 152.195.19.97… so i added that to my hosts file and tested again with that.
result: Same error happens with winget and 152.195.19.97 present in the hosts file (on Windows 10 22H2)
Still not working for me. Getting 0 byte file from the CDN in US.
cdn.winget.microsoft.com resolves to
152.195.19.97
for me.@denelon It is fixed for me (Hungary, EU).
Still not working for me.
Downloading https://cdn.winget.microsoft.com/cache/source.msix through a web browser produces a 0KB file.
Another workaround is to use a VPN. Use a location far from your current continent.
I have the same problem “Failed in attempting to update the source: winget”. After following this solution, Winget will work perfectly.