Open massmog opened 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Comment: https://github.com/microsoft/winget-cli/issues/3525#issuecomment-1736846054 helped
Thanks @HenkPoley
What resolved "Failed in attempting to update the source: winget" for me:
Download this file: https://cdn.winget.microsoft.com/cache/source.msix (e.g. with Edge) Open the Downloads folder Right-click, choose install, follow the wizard to install the package. No clue why this is necessary. Source list remains the same:
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 winget https://cdn.winget.microsoft.com/cache Yes, I did run the command mention at the top here: https://github.com/microsoft/winget-cli/issues/3652#issue-1907725867
But I was running a more recent version anyways (1.5? 1.6.??).
This fix can be automated, and thus winget could be self healing if it performed this action upon seeing that error:
Invoke-WebRequest -Uri https://cdn.winget.microsoft.com/cache/source.msix -OutFile $env:TEMP\source.msix
Add-AppxPackage $env:TEMP\source.msix
@A9G-Data-Droid Yeah, Adam, that would be a good feature to have indeed.
Brief description of your issue
Hi,
I am currently have winget installed on my machine and it does not update, when a full package update (aka winget update --all) is executed. Interestingly my winget installation breaks fairly regularly.
Steps to reproduce
Local user:
Super user rights:
I have tried the following commands to fix the behavior:
winget source reset --force
Furthermore, I have reinstalled winget multiple times and updated the App Installer package to the most recent version.
Expected behavior
Winget installs most recent updates from msstore and winget update database.
Actual behavior
Winget does not update.
Environment