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

apps version not correctly getted?

Open Mrgaton opened this issue 1 year ago • 16 comments

Brief description of your issue

when i run winget update --all and update the first app and ten stoping the process when i run the command again it downloads and reinstalls the already "updated" app

Steps to reproduce

run winget update --all and stop it before it ends

Expected behavior

not to reupdate already updated apps

Actual behavior

work

Environment

Administrador de paquetes de Windows v1.7.10861
Copyright (c) Microsoft Corporation. Todos los derechos reservados.

Windows: Windows.Desktop v10.0.19045.4291
Arquitectura del sistema: X64
Paquete: Microsoft.DesktopAppInstaller v1.22.10861.0

Directorios de WinGet
-----------------------------------------------------------------------------------------------------------------------
Registros                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalS…
Configuración de usuario                    %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalS…
Directorio de vínculos portátiles (usuario) %LOCALAPPDATA%\Microsoft\WinGet\Links
Directorio de vínculos portátiles (equipo)  C:\Program Files\WinGet\Links
Raíz de paquete portátil (usuario)          %LOCALAPPDATA%\Microsoft\WinGet\Packages
Raíz de paquete portátil                    C:\Program Files\WinGet\Packages
Raíz de paquete portátil (x86)              C:\Program Files (x86)\WinGet\Packages
Descargas del instalador                    %USERPROFILE%\Downloads

Vínculos
-----------------------------------------------------------------------------------
Declaración de privacidad   https://aka.ms/winget-privacy
Contrato de licencia        https://aka.ms/winget-license
Avisos de terceros          https://aka.ms/winget-3rdPartyNotice
Página principal            https://aka.ms/winget
Términos de Microsoft Store https://www.microsoft.com/en-us/storedocs/terms-of-sale

Configuración de administrador            Estado
-------------------------------------------------------
LocalManifestFiles                        Deshabilitado
BypassCertificatePinningForMicrosoftStore Deshabilitado
InstallerHashOverride                     Deshabilitado
LocalArchiveMalwareScanOverride           Deshabilitado

Mrgaton avatar Apr 15 '24 18:04 Mrgaton

image

For example that version of visual studio i already have it installed

Mrgaton avatar Apr 15 '24 18:04 Mrgaton

and same as other ones

Mrgaton avatar Apr 15 '24 18:04 Mrgaton

What is the output from "winget list"? Do you have more than one version of Visual Studio installed?

denelon avatar Apr 15 '24 19:04 denelon

image

Mrgaton avatar Apr 15 '24 19:04 Mrgaton

Here is the list: winget list list.txt

Mrgaton avatar Apr 15 '24 19:04 Mrgaton

So whats the problem?

Mrgaton avatar Apr 16 '24 08:04 Mrgaton

I'm not sure. Was there a "shield" icon in the taskbar requesting UAC approval? Can you run the command again with "--verbose-logs --logs" and share the log file output? winget upgrade --all --verbose-logs --logs

denelon avatar Apr 16 '24 15:04 denelon

I have uac disabled so nothing pop up

Tomorrow will show the output of that command

Mrgaton avatar Apr 16 '24 20:04 Mrgaton

WinGet-2024-04-17-15-52-54.123.log

(___/ C:\Users\Mrgaton>winget upgrade --all --verbose-logs --logs Name Id Version Available Origin


Visual Studio Community 2022 Microsoft.VisualStudio.2022.Community 17.7.3 17.9.1 winget Google Chrome Canary Google.Chrome.Canary 125.0.6420.0 125.0.6421.0 winget IDA Freeware 8.2 Hex-Rays.IDA.Free 8.2 8.4 winget Parsec Parsec.Parsec 150-88a 150-92a winget Virtual Desktop Streamer VirtualDesktop.Streamer 1.30.1 1.30.5 winget Logitech G HUB Logitech.GHUB 2023.9.473951 2024.2.4136 winget NVIDIA CUDA Toolkit 12.4 Nvidia.CUDA > 12.3.2 12.4.1 winget Epic Games Launcher EpicGames.EpicGamesLauncher 1.3.82.0 1.3.93.0 winget 9 updates available.

The following packages have an update available, but require an explicit target for the update: Name Id Version Available Origin

Discord Discord.Discord 1.0.9035 1.0.9040 winget 2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.

(1/5) Found Visual Studio Community 2022 [Microsoft.VisualStudio.2022.Community] Version 17.9.1 A license is granted to you by the owner of this application. Microsoft is not responsible for, nor does it grant any license to, third-party packages. Descargando https://download.visualstudio.microsoft.com/download/pr/63fee7e3-bede-41ad-97a2-97b8b9f535d1/26d25ab6417a061f392e4a679d5662abc348423a52febcad809e4075e38852e8/vs_Community.exe ██████████████████████████████3.80 MB Installer hash verified successfully Starting package installation... Installed correctly

(2/5) Found Google Chrome Canary [Google.Chrome.Canary] Version 125.0.6421.0 A license is granted to you by the owner of this application. Microsoft is not responsible for, nor does it grant any license to, third-party packages. Downloading https://dl.google.com/release2/chrome/acpiszcj46szac2mlnswpd6oa3wq_125.0.6421.0/125.0.6421.0_chrome_installer.exe 107 MB / 107 MB Installer hash verified successfully Starting package installation... Installed correctly

(3/5) Found IDA Freeware [Hex-Rays.IDA.Free] Version 8.4 A license is granted to you by the owner of this application. Microsoft is not responsible for, nor does it grant any license to, third-party packages. Downloading https://out7.hex-rays.com/files/idafree84_windows.exe ███████████████████████████104 MB Installer hash verified successfully Starting package installation... Installed correctly

(4/5) Found Parsec [Parsec.Parsec] Version 150-92a A license is granted to you by the owner of this application. Microsoft is not responsible for, nor does it grant any license to, third-party packages. Downloading https://builds.parsec.app/package/parsec-windows.exe ██████████████████████████████3.86 MB The installer hash does not match; this cannot be overwritten when running as administrator

(5/5) Found Logitech G HUB [Logitech.GHUB] Version 2024.2.4136 A license is granted to you by the owner of this application. Microsoft is not responsible for, nor does it grant any license to, third-party packages. Downloading https://download01.logi.com/web/ftp/pub/techsupport/gaming/lghub_installer.exe ██████████████████████████████39.8 MB Installer hash verified successfully Starting package installation... Installed correctly

22 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results. 1 packages are pinned and must be updated explicitly.

Mrgaton avatar Apr 17 '24 13:04 Mrgaton

And if i run it again it marks as not installed

image

Mrgaton avatar Apr 17 '24 13:04 Mrgaton

same as this one https://github.com/microsoft/winget-cli/issues/2817

Mrgaton avatar May 31 '24 20:05 Mrgaton

This just hit me with a couple of packages. Here's an included session:

╭─    ~                                                                                                                                           3.827s     06:11:32  ─╮
╰─ sudo winget upgrade --all --verbose-logs --logs                                                                                                                                 ─╯
Name                   Id                  Version    Available  Source
-----------------------------------------------------------------------
Kodi                   XBMCFoundation.Kodi 20.5.0.0   21.0.0.0   winget
yt-dlp                 yt-dlp.yt-dlp       2024.05.27 2024.08.06 winget
Python 3.12.4 (64-bit) Python.Python.3.12  3.12.4     3.12.5     winget
5 upgrades available.

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name                      Id                    Version  Available Source
-------------------------------------------------------------------------
Chocolatey (Install Only) Chocolatey.Chocolatey 2.2.2.0  2.3.0.0   winget
Discord                   Discord.Discord       1.0.9035 1.0.9157  winget
2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
1 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.

Installing dependencies:
This package requires the following dependencies:
  - Packages
      Gyan.FFmpeg
(1/2) Found yt-dlp [yt-dlp.yt-dlp] Version 2024.08.06
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
(1/1) Found FFmpeg [Gyan.FFmpeg] Version 7.0.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
╭─    ~                                                                                                                                      16.922s   ERROR  06:12:43  ─╮
╰─ sudo winget upgrade --all --verbose-logs --logs                                                                                                                                 ─╯
Name                   Id                  Version    Available  Source
-----------------------------------------------------------------------
Kodi                   XBMCFoundation.Kodi 20.5.0.0   21.0.0.0   winget
yt-dlp                 yt-dlp.yt-dlp       2024.05.27 2024.08.06 winget
Python 3.12.4 (64-bit) Python.Python.3.12  3.12.4     3.12.5     winget
5 upgrades available.

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name                      Id                    Version  Available Source
-------------------------------------------------------------------------
Chocolatey (Install Only) Chocolatey.Chocolatey 2.2.2.0  2.3.0.0   winget
Discord                   Discord.Discord       1.0.9035 1.0.9157  winget
2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
1 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.

Installing dependencies:
This package requires the following dependencies:
  - Packages
      Gyan.FFmpeg
(1/2) Found yt-dlp [yt-dlp.yt-dlp] Version 2024.08.06
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
(1/1) Found FFmpeg [Gyan.FFmpeg] Version 7.0.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive

As you can see, it says I need to update the packages and does so.. I run it a second time and it STILL thinks it needs to update those packages and re-updates them again. Running any of them will confirm they've already been updated.

Firehawke avatar Aug 08 '24 13:08 Firehawke

wich version of winget do you have @Firehawke ?

Mrgaton avatar Aug 08 '24 20:08 Mrgaton

Apologies for delayed response, was sick the last week or so.

Winget --version reports.. v1.9.2151-preview

Firehawke avatar Aug 14 '24 14:08 Firehawke

Name                         Id                     Version  Available Source
-----------------------------------------------------------------------------
VLC media player             VideoLAN.VLC           3.0.20.0 3.0.21    winget
ADB AppControl version 1.8.3 CyberCat.ADBAppControl 1.8.3    1.8.5     winget
WinDirStat 1.1.2             WinDirStat.WinDirStat  Unknown  1.1.2     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.9034 1.0.9158  winget
1 package(s) are pinned and need to be explicitly upgraded.

ADB AppControl, WinDirStat and Discord have always been issues. VLC seems like a new one.

schbrns avatar Aug 22 '24 18:08 schbrns

VLC version was getted properly, issue was something else. VLC program wasn't picking up the 3.0.21 update that was available on the website. Upgraded the exe over it and it's good now.

Does winget utilize the software's auto-update or is this more of a repository type deal? Wondering why both VLC and winget weren't picking up the same VLC udpate.

WinDirStat "unknown" goes away without the --include-unknown.

ADB AppControl and Discord are the only real problems, maybe.

schbrns avatar Aug 22 '24 19:08 schbrns