Skip to content

winget upgrade-available reports multiple CUDA updates, even if using latest version #4415

Closed

Description

@eabase

Brief description of your issue

I installed the latest Nvidia.CUDA package/drivers and now winget reports multiple updates available for the same package.

# winget list --upgrade-available

Name                     Id          Version  Available Source
--------------------------------------------------------------
NVIDIA CUDA Toolkit      Nvidia.CUDA 12.4     12.4.1    winget
NVIDIA CUDA Toolkit 12.3 Nvidia.CUDA 12.3.2   12.4.1    winget
NVIDIA CUDA Toolkit 12.4 Nvidia.CUDA > 12.3.2 12.4.1    winget

3 upgrades available.

Steps to reproduce

Install old version, unless you already have one.
Then install the latest version.

Expected behavior

That the package is reported as up-to-date / latest, and not shown when using the --upgrade-available

Actual behavior

Showing multiple available versions for the same package id, even if already at latest.

Environment

winget --info

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

Windows: Windows.Desktop v10.0.22631.3447
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.11132.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
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

Activity

  1. github-actions commented on Apr 26, 2024

    @github-actions

    Hi I'm an AI powered bot that finds similar issues based off the issue title.

    Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

    Open similar issues:

    Closed similar issues:

    Note: You can give me feedback by thumbs upping or thumbs downing this comment.

  2. eabase commented on Apr 26, 2024

    @eabase
    Author

    Your AI have correctly identified several similar issues dating back ~3 years, so why haven't this annoyance been fixed?

  3. Masamune3210 commented on Apr 26, 2024

    @Masamune3210

    ....just because an issue is old and known doesn't make it easy to fix

  4. denelon commented on Apr 26, 2024

    @denelon
    Collaborator

    We've started working on these "side-by-side" types of issues. The latest WinGet 1.8-preview has an experimental feature which can be enabled and may improve the experience here.

  5. added
    Issue-Bug
    Side-by-Side
    on Apr 26, 2024
  6. eabase commented on Apr 27, 2024

    @eabase
    Author

    We've started working on these "side-by-side" types of issues. The latest WinGet 1.8-preview has an experimental feature which can be enabled and may improve the experience here.

    Great! How can I test the new preview?

    (Sorry, I can't recall how to install the different version.)

  7. denelon commented on Apr 29, 2024

    @denelon
    Collaborator

    You can install the preview versions here at GitHub in the releases section. The release notes also cover which experimental features are available. You can run winget settings -? in the client to see the help and get a link to the settings available for the client.

  8. davidldennison commented on Apr 29, 2024

    @davidldennison

    We've started working on these "side-by-side" types of issues. The latest WinGet 1.8-preview has an experimental feature which can be enabled and may improve the experience here.

    Having this exact issue with Cuda versioning, however sideBySide only slightly helps:

    C:>winget upgrade
    Name Id Version Available Source

    NVIDIA CUDA Toolkit 12.4 Nvidia.CUDA > 12.3.2 12.4.1 winget

    Can't install with sideBySide enabled as it gives a GetVariant Error (see #4425)

  9. eabase commented on Apr 30, 2024

    @eabase
    Author

    Yes, I tried by installing the 1.8-preview.

    Indeed the issues with multiple CUDA versions were gone, and also the Microsoft.DotNet.DesktopRuntime.6 issue.

    To Install winget preview, do this:

    # 0. Check winget features
    winget features
    
    # 1. Download "-preview" from:
    https://github.com/microsoft/winget-cli/releases
    
    # 2. Run (as admin):
    Add-AppxPackage -Path '.\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle'
    
    # 3. Change feature settings:
    winget settings
    
    # 4. Add:
    "experimentalFeatures": {
            "sideBySide": true
        }
    
    # Check
    winget --info
    
    # To Revert, download & run (the non-preview version):
    Add-AppxPackage -Path '.\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.1.7.11132.msixbundle' -ForceUpdateFromAnyVersion
    

    However, I had to revert because the output formatting of winget list was awful, where all the Ids had been replaced with MSIX/.... something.

  10. eabase commented on Apr 30, 2024

    @eabase
    Author

    OT Warning!

    This brings up another (OT) issue.
    Why can't we install whatever version we like using the id and Version/Available strings?
    That would make much more sense, than having to run Add-AppxPackage.

    One would expect something like the following to work:

    winget install -i -e "Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -v '1.7.11132`
  11. fehrin1 commented on May 3, 2024

    @fehrin1

    I have the same problem or to state it clear: I have only CUDA 12.4.1 installed and get with winget update (upgrade)
    NVIDIA CUDA Toolkit 12.4 Nvidia.CUDA > 12.3.2 12.4.1 winget
    So there is a flaw in detecting the installed version, is this corrected in some winget version resp. will it be fixed in future versions?

  12. fehrin1 commented on May 19, 2024

    @fehrin1

    As of today winget correctly detects the installed 12.4.1 version, consequently no update is suggested anymore (no multiple / side-by-side installation present).

  13. eabase commented on May 20, 2024

    @eabase
    Author

    fehrin1

    As of today winget correctly detects...

    What do you mean? The latest release was 2 weeks ago, with 1.7.11261, so what are you using?
    (Not fixed for this version.)

  14. fehrin1 commented on May 20, 2024

    @fehrin1

    fehrin1

    As of today winget correctly detects...

    What do you mean? The latest release was 2 weeks ago, with 1.7.11261, so what are you using? (Not fixed for this version.)

    I have this version too and for me CUDA 12.4.1 is correctly detected. The multi version (side by side) issue is most probably still present. Just guessing probably the version info downloaded by "winget (source) update" got updated.

  15. denelon commented on Jul 3, 2024

    @denelon
    Collaborator

    WinGet 1.8 has the side-by-side improvements enabled, and the earlier bug reported has also been fixed.
    Has the issue here been resolved?

  16. added
    Needs-Author-Feedback
    on Jul 3, 2024
  17. fehrin1 commented on Jul 4, 2024

    @fehrin1

    WinGet 1.8 has the side-by-side improvements enabled, and the earlier bug reported has also been fixed. Has the issue here been resolved?

    There are no CUDA issues left, but i still get the spurious recommendation (i made a separate winget issue about this)
    C:\Users\FEH01589>winget update
    Name ID Version Verfügbar Quelle

    Microsoft OneNote - de-de XPFFZHVGQWWLHB 16.0.16731.20716 16.0.17231.20236 msstore
    1 Aktualisierungen verfügbar.
    My guess is that there is some information base for software versions which needs an update too.
    Personally i would exclude OneNote from winget updates, it is only a placeholder for a full blown Office 365 installation.

  18. mdanish-kh commented on Jul 6, 2024

    @mdanish-kh
    Contributor

    Personally i would exclude OneNote from winget updates

    Have you tried winget pin add --id XPFFZHVGQWWLHB? If you experience further problems, you can open up a separate issue for it

  19. fehrin1 commented on Jul 15, 2024

    @fehrin1

    Personally i would exclude OneNote from winget updates

    Have you tried winget pin add --id XPFFZHVGQWWLHB? If you experience further problems, you can open up a separate issue for it

    If the (OnenNote i.e. non CUDA) issue really disturbed me i could surely smash it with a hammer. But i prefer to wait for a real solution. In any case the CUDA issue is no longer present for me (but i am not the original issuer).

  20. microsoft-github-policy-service commented on Jul 22, 2024

    @microsoft-github-policy-service
    Contributor

    Hello eabase,

    This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

    Template: msftbot/noRecentActivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugNeeds-Author-FeedbackNo-Recent-ActivitySide-by-Side

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions