Closed EurekaChen closed 1 year ago
I suspect that the issue is happening during the source update, based on the 0% showing in your output. The logs from
winget source update winget
would probably be the most helpful to understand why it is failing silently. Alternatively, winget is basically doing this:1. Download from https://cdn.winget.microsoft.com/cache/source.msix 2. PS> Add-AppxPackage
It is possible that this would give more direct logging/errors about my suspicions.
My guess is that something is wedged on the machine related to the Microsoft.Winget.Source package, and that manually removing it would help to unstick it.
winget source remove winget
would also attempt to remove that package in theory, but I'm not sure that I would trust winget to find the package to remove since it can't find it to use.
This worked for me, thanks!
I should point out that both > winget source update --name winget
& > winget source update winget
require admin privileges to work, and so if you intend to run them over SSH, you'll need to ensure your SSH session starts with elevated privileges by following Step 1.
谢谢各位的帖子,让我从一个小白不断摸索成长,你们坚持的精神感染了我,本来我打算从做系统的,可是我没放弃,你们每个人的建议我都尝试过,可是总失效,最后,一条奇葩的命令改变了这种现状:winget uninstall winget winget uninstall winget winget uninstall winget 重要的命令说三遍!!
Bravo! 终于搞定了!
I can't use winget in a virtual machine, then I reinstalled Windows and it still doesn't work.
install version v1.0.11692 run:
winget search edge
get: