Romanitho / Winget-AutoUpdate

WAU daily updates apps as system and notify connected users. (Allowlist and Blocklist support)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Multiple detections of same Package ID, continually detects and tries to update packages

jkowalcz opened this issue · comments

The problem

Name                                       Id                                         Version          Available Source
-----------------------------------------------------------------------------------------------------------------------
Microsoft .NET Runtime - 6.0.31 (x64)      Microsoft.DotNet.Runtime.6                 6.0.31                     winget
Microsoft .NET Runtime - 8.0.6 (x64)       Microsoft.DotNet.Runtime.6                 > 6.0.31                   winget

Two entries for the .NET runtime. Continually tries to install .NET upgrade. This is probably a winget problem but there maybe some error checking that could happen so things do not continually upgrade.

What version of WAU has the issue?

1.20.0

What version of Windows are you using (ex. Windows 11 22H2)?

windows 10 22H2

What version of winget are you using?

v1.7.11261

Log information

################################################################
#     6/3/2024 - CHECK FOR APP UPDATES (User context)
################################################################
17:08:03 - Notification Level: Full. Notification Language: English
17:08:03 - Checking internet connection...
17:08:03 - Connected !
17:08:03 - Winget Version: v1.7.11261
17:08:03 - WAU current version: 1.20.0
17:08:03 - WAU uses Black List config
17:08:04 - Checking application updates on Winget Repository...
-> Available update : Microsoft Teams. Current version : 1.6.00.20074. Available version : 24102.2223.2870.9480.
-> Available update : Microsoft .NET Runtime - 8.0.6 (x64). Current version : > 6.0.31. Available version : 8.0.6.
17:08:08 - Microsoft Teams : Skipped upgrade because it is in the excluded app list
17:08:09 - Updating Microsoft .NET Runtime - 8.0.6 (x64) from > 6.0.31 to 8.0.6...
17:08:12 - ##########   WINGET UPGRADE PROCESS STARTS FOR APPLICATION ID 'Microsoft.DotNet.Runtime.6'   ##########
17:08:12 - -> Running: Winget upgrade --id Microsoft.DotNet.Runtime.6 -e --accept-package-agreements --accept-source-agreements -s winget -h

No installed package found matching input criteria.
17:08:18 - -> An upgrade for Microsoft .NET Runtime - 8.0.6 (x64) failed, now trying an install instead... (1/2)
17:08:18 - -> Running: Winget install --id Microsoft.DotNet.Runtime.6 -e --accept-package-agreements --accept-source-agreements -s winget -h --force
Found Microsoft .NET Runtime 6.0 [Microsoft.DotNet.Runtime.6] Version 6.0.31
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/Runtime/6.0.31/dotnet-runtime-6.0.31-win-x64.exe


  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  0.00 B / 26.9 MB
  █████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  12.0 MB / 26.9 MB
  ██████████████████████████████  26.9 MB / 26.9 MB
Installer hash does not match.
17:08:25 - -> An upgrade for Microsoft .NET Runtime - 8.0.6 (x64) failed, now trying an install instead... (2/2)
17:08:25 - -> Running: Winget install --id Microsoft.DotNet.Runtime.6 -e --accept-package-agreements --accept-source-agreements -s winget -h --force

Found Microsoft .NET Runtime 6.0 [Microsoft.DotNet.Runtime.6] Version 6.0.31
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/Runtime/6.0.31/dotnet-runtime-6.0.31-win-x64.exe

  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  0.00 B / 26.9 MB
  ██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  13.0 MB / 26.9 MB
  ██████████████████████████████  26.9 MB / 26.9 MB
Installer hash does not match.
17:08:32 - ##########   WINGET UPGRADE PROCESS FINISHED FOR APPLICATION ID 'Microsoft.DotNet.Runtime.6'   ##########
17:08:32 - Microsoft .NET Runtime - 8.0.6 (x64) update failed.
17:08:35 - No new update.
17:08:35 - End of process!

Additional information

No response

Having the same issue on a at least two Windows 10 22H2 devices but different packages than OP.

Machine 1:

WAU: v1.20.1
Winget: v1.7.11.261

Update log:
updates_machine1.txt

Winget:
image

Installed programs:
image

Machine 2:

WAU: v1.20.0
Winget: v1.7.11.261

Update log:
updates_machine2.txt

Winget:
image

Installed programs:
image

this can happen sometimes but it is mainly Winget itself or the way devs handle there apps.
Blacklist the apps that are not 100% compatible.

this can happen sometimes but it is mainly Winget itself or the way devs handle there apps. Blacklist the apps that are not 100% compatible.

Thank you, and that makes sense that it may be Winget itself.

So looks like winget has some problems...

winget list sub commands lists two IDs but monikers are different

C:\Users\userprofile>winget list -q runtime
Name                                            Id                                             Version          Source
-----------------------------------------------------------------------------------------------------------------------
Microsoft .NET Runtime - 6.0.31 (x64)           Microsoft.DotNet.Runtime.6                     6.0.31           winget
Microsoft .NET Runtime - 8.0.6 (x64)            Microsoft.DotNet.Runtime.6                     > 6.0.31         winget

When you filter by monikers it will only show one

C:\Users\userprofile>winget list --moniker dotnet-runtime
Name                                 Id                         Version Source
-------------------------------------------------------------------------------
Microsoft .NET Runtime - 8.0.6 (x64) Microsoft.DotNet.Runtime.8 8.0.6   winget

But the show sub command will display two packages

C:\Users\userprofile>winget show Microsoft.DotNet.Runtime.6
Found Microsoft .NET Runtime 6.0 [Microsoft.DotNet.Runtime.6]
Version: 6.0.31
Publisher: Microsoft Corporation
Moniker: dotnet-runtime-6
Description: .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Homepage: https://dotnet.microsoft.com
License: MIT
Tags:
  .NET
  .NET Core
  dotnet
  net
  C#
  csharp
  F#
  fsharp
  VB
  Visual Basic
  runtime
Installer:
  Installer Type: burn
  Installer Url: https://dotnetcli.azureedge.net/dotnet/Runtime/6.0.31/dotnet-runtime-6.0.31-win-x64.exe
  Installer SHA256: 5586f1256d971d3b1b4ba401d42572f3465ff4e7a15e3545a456ed3135104177

C:\Users\userprofile>winget show Microsoft.DotNet.Runtime.8
Found Microsoft .NET Runtime 8.0 [Microsoft.DotNet.Runtime.8]
Version: 8.0.6
Publisher: Microsoft Corporation
Moniker: dotnet-runtime-8
Description: .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Homepage: https://dotnet.microsoft.com
License: MIT
Tags:
  .NET
  .NET Core
  dotnet
  net
  C#
  csharp
  F#
  fsharp
  VB
  Visual Basic
  runtime
Installer:
  Installer Type: burn
  Installer Url: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.6/dotnet-runtime-8.0.6-win-x64.exe
  Installer SHA256: 09ce3893d979ed19f12d0f460da86b3b49759f10910df86d16d1ba6d04f9f3e7

comment mainly for the googles