Share via

winget upgrade --all stop working

Anonymous
2024-03-01T23:51:10+00:00

Hi,

I used winget upgrade --all to update all the outdated app for long time, and it was super useful

It is a few weeks that doing winget upgrade --all has the same output as winget upgrade, so it only shows packages to upgrade, without updating them.

How can I troubleshoot it? Can I reinstall winget?

Thanks

Windows for home | Windows 10 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

13 answers

Sort by: Most helpful
  1. Sumit D - IA 166.7K Reputation points Independent Advisor
    2024-03-02T03:25:39+00:00

    Hi Roberto,

    I'm Sumit, here to answer your query at the Microsoft Community.

    Via https://github.com/microsoft/winget-cli/issues/...

    In the Windows search,

    type powershell, right-click it, and choose run as administrator.

    Execute this command and the issue should be resolved.

    Get-AppxPackage -Name 'Microsoft.DesktopAppInstaller' | Reset-AppxPackage

    Hope that helps, and rely on us for any further inquiries. All the best.

    20+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-07-17T19:03:57+00:00

    Try using: upgrade winget --accept-package-agreements -r

    I use it on Windows 11 and it updated everything.

    7 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-03-02T14:35:04+00:00

    I tried but I get this error:

    Reset-AppxPackage : The term 'Reset-AppxPackage' is not recognized as the name of a cmdlet, function, script file, or

    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

    again.

    At line:1 char:57

    • ... AppxPackage -Name 'Microsoft.DesktopAppInstaller' | Reset-AppxPackage
    •                                                     ~~~~~~~~~~~~~~~~~ 
      
      • CategoryInfo : ObjectNotFound: (Reset-AppxPackage:String) [], CommandNotFoundException
      • FullyQualifiedErrorId : CommandNotFoundException

    Get-AppxPackage works, but Reset-AppxPackage no

    4 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-03-06T00:52:29+00:00

    did work for me. :(

    2 people found this answer helpful.
    0 comments No comments
  5. Sumit D - IA 166.7K Reputation points Independent Advisor
    2024-03-03T05:17:23+00:00

    I forgot you are running a Windows 10 Build, sorry.

    Can you try this command?

    Add-AppxPackage -DisableDevelopmentMode -Register (

    [System.IO.Path]::Combine((Get-AppxPackage -Name 'Microsoft.DesktopAppInstaller').'InstallLocation','appxmanifest.xml')
    

    )

    2 people found this answer helpful.
    0 comments No comments