microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.54k stars 1.39k forks source link

winget recommends spurious onenote update #4443

Open fehrin1 opened 1 month ago

fehrin1 commented 1 month ago

Brief description of your issue

With winget update (upgrade) i get the following upgrade recommendation: Microsoft OneNote - de-de XPFFZHVGQWWLHB 16.0.16731.20636 16.0.17231.20236 msstore Looking at https://learn.microsoft.com/en-us/officeupdates/update-history-microsoft365-apps-by-date this is not a sensible suggestion:

Steps to reproduce

winget update or winget upgrade

Expected behavior

No onenote upgrade should be suggested.

Actual behavior

A spurious upgrade is suggested.

Environment

C:\Users\FEH01589>winget --info
Windows-Paket-Manager v1.7.11132
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.19045.4355
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.22.11132.0

WinGet-Verzeichnisse
-----------------------------------------------------------------------------------------------------------------------------------------
Protokolle                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Benutzereinstellungen                        %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Verzeichnis für portierbare Links (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portables Linkverzeichnis (Computer)         C:\Program Files\WinGet\Links
Portierbarer Paketstamm (Benutzer)           %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portierbarer Paketstamm                      C:\Program Files\WinGet\Packages
Portierbares Paketstamm (x86)                C:\Program Files (x86)\WinGet\Packages
Installationsprogrammdownloads               %USERPROFILE%\Downloads

Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung              https://aka.ms/winget-privacy
Lizenzvereinbarung                https://aka.ms/winget-license
Hinweise von Drittanbietern       https://aka.ms/winget-3rdPartyNotice
Startseite                        https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale

Administratoreinstellung                  Status
-----------------------------------------------------
LocalManifestFiles                        Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride                     Deaktiviert
LocalArchiveMalwareScanOverride           Deaktiviert
stephengillie commented 1 month ago

I couldn't find identical output (no version, and no "Microsoft"), but it does appear that the MSStore has a package named OneNote:

PS C:\ManVal> find-WinGetPackage OneNote

Name                              Id                         Version          Source
----                              --                         -------          ------
OneNote                           XPFFZHVGQWWLHB             Unknown          msstore
OneNote Tagging Kit               wethat.onenotetaggingkit   5.1.8514         winget
OneMoreAddIn                      stevencohn.OneMore         5.9.0            winget
OneMark                           Neux.OneMark               1.0.2            winget
Microsoft 365 Apps for enterprise Microsoft.Office           16.0.17425.20176 winget
NoteHighlight2016                 elvirbrk.notehighlight2016 3.7              winget

Installing into a VM, it appears to download and install Office 365:

image

denelon commented 1 month ago

Can you share logs for this incident?

If it's reproduceable you can append "--verbose-logs --logs" to get verbose logs and open the directory containing the files. I would just need the latest one with the error.

fehrin1 commented 1 month ago

I couldn't find identical output (no version, and no "Microsoft"), but it does appear that the MSStore has a package named OneNote:

PS C:\ManVal> find-WinGetPackage OneNote

Name                              Id                         Version          Source
----                              --                         -------          ------
OneNote                           XPFFZHVGQWWLHB             Unknown          msstore
OneNote Tagging Kit               wethat.onenotetaggingkit   5.1.8514         winget
OneMoreAddIn                      stevencohn.OneMore         5.9.0            winget
OneMark                           Neux.OneMark               1.0.2            winget
Microsoft 365 Apps for enterprise Microsoft.Office           16.0.17425.20176 winget
NoteHighlight2016                 elvirbrk.notehighlight2016 3.7              winget

Installing into a VM, it appears to download and install Office 365:

image

@stephengillie There is a onenote installed via Office 365 Enterprise. The update suggested by winget on top of this installation is spurious.

fehrin1 commented 1 month ago

Can you share logs for this incident?

If it's reproduceable you can append "--verbose-logs --logs" to get verbose logs and open the directory containing the files. I would just need the latest one with the error.

winget update --verbose-logs --logs WinGet-2024-05-04-11-33-01.458.log WinGet-2024-05-04-11-32-51.462.log WinGet-2024-05-04-11-33-36.222.log

fehrin1 commented 1 month ago

@denelon I added the log file(s) requested.

fehrin1 commented 1 month ago

Hi @denelon any idea on this, it is for me the last remaining problem, apart from this, winget is "clean" for me?

fehrin1 commented 1 month ago

I have 16731.20674 in the meantime and still 16.0.17231.20236 is suggested.