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

v1.7.10582 `upgrade --all` fails without any errors or output

Open o-l-a-v opened this issue 2 years ago • 31 comments

Instructions on how to reset Winget: https://github.com/microsoft/winget-cli/issues/4219#issuecomment-1975125826

Brief description of your issue

winget upgrade --silent --all suddenly fails on my system. Winget v1.7.10582.

I notice that the logs are spammed with attempting to open pinning database, last line says [REPO] Did not find a Version for { 6.0.27 }.

So maybe related to pinning? And maybe related to:

  • https://github.com/microsoft/winget-cli/issues/3696#issuecomment-1962892625

Winget output:

Click to view
C:\Windows\System32>winget upgrade --silent --all --verbose-logs
Name                                 Id                        Version Available Source
---------------------------------------------------------------------------------------
Signal 6.48.1                        OpenWhisperSystems.Signal 6.48.1  7.0.0     winget
ONLYOFFICE Desktop Editors 8.0 (x64) ONLYOFFICE.DesktopEditors < 8.0.1 8.0.1     winget
Oh My Posh version 19.11.6           JanDeDobbeleer.OhMyPosh   19.11.6 19.11.7   winget
4 upgrades available.

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name    Id              Version  Available Source
-------------------------------------------------
Discord Discord.Discord 1.0.9017 1.0.9034  winget
1 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
2 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.

C:\Windows\System32>

Logs (--verbose-logs):

WinGet-2024-02-29-23-02-41.049.log

Steps to reproduce

winget upgrade --all

Expected behavior

Should upgrade all upgradable packages. If it fails it should throw an error.

Actual behavior

No packages get updated, no errors are thrown.

Environment

Windows Package Manager v1.7.10582
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3155
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10582.0

Winget Directories                 
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links               
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

o-l-a-v avatar Feb 29 '24 21:02 o-l-a-v

no luck figuring out why I am getting the 12030 error:

winget list -s msstore

Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
WinHttpSendRequest: 12030: The connection with the server was terminated abnormally

avicarmi avatar Mar 05 '24 05:03 avicarmi

[Policy] Command-Upgrade

Trenly avatar Mar 06 '24 23:03 Trenly

How to reset Winget

thanks, resetting fixed the issue!

fahim-ahmed05 avatar Mar 08 '24 18:03 fahim-ahmed05

Hey everyone, We've got a fix coming with a new release.

denelon avatar Mar 08 '24 20:03 denelon

https://github.com/microsoft/winget-cli/releases/tag/v1.7.10661

We're flighting to Windows Insider Beta and Windows Insider Release Preview. If all goes well we will release as stable early next week, but you can try it out now.

denelon avatar Mar 09 '24 01:03 denelon

Had the same reported issue for showing packages but doing nothing

winget upgrade --all

This fixed it 🎉

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

smoonlee avatar Mar 13 '24 16:03 smoonlee

https://github.com/microsoft/winget-cli/releases/tag/v1.7.10661 is now marked as the stable release at GitHub and it's being published to the Microsoft Store for those getting automatic updates.

denelon avatar Mar 13 '24 18:03 denelon

Same issue here, but with a newer version of winget (v1.8.1911) and on Windows 10. Reported it already in #4224, because that came up when searching for the error message.

  1. Neither powershell nor pwsh knew the Reset-AppxPackage cmdlet, so this option didn't work for me.
  2. Deleting %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db did not help either.
  3. winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe followed by winget source update and winget source reset --force also had no effect.
  4. method described in this followup comment worked (Windows 10 method)

Thanks @o-l-a-v !

exoosh avatar Aug 28 '24 08:08 exoosh

I also experience this issue. I'm on Windows 11 (22631.4317) with winget version 1.8.1911. I tried all the steps outlined in the comments of this issue and nothing helped.

mowfax avatar Oct 18 '24 12:10 mowfax

I tried all outlined steps aswell and it did not work.

DatUub avatar Nov 05 '24 14:11 DatUub

I tried all outlined steps aswell and it did not work.

There's an option in Chris Titus' Windows Toolbox to reinstall Winget. Try that, maybe.

fahim-ahmed05 avatar Nov 05 '24 17:11 fahim-ahmed05