Skip to content

Winget upgrade or install fails #3826

Closed
Closed

Description

@NVT223

Brief description of your issue

I can't install any software or upgrade on Winget

Steps to reproduce

winget install 7zip.7zip

Expected behavior

error

Actual behavior

I don'i know

Environment

winget install 7zip.7zip
Failed in attempting to update the source: winget
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072efd : unknown error

Activity

  1. eabase commented on Oct 28, 2023

    @eabase
  2. denelon commented on Oct 30, 2023

    @denelon
  3. added
    Issue-Bug
    and removed
    Needs-Triage
    on Oct 30, 2023
  4. verrierRoberts commented on Oct 31, 2023

    @verrierRoberts
  5. eabase commented on Nov 2, 2023

    @eabase
  6. denelon commented on Nov 2, 2023

    @denelon
    Collaborator

    NVT223 which version of WinGet is installed?

    Run winget --info and share the results please.

  7. NVT223 commented on Nov 3, 2023

    @NVT223
    Author

    winget --info

    Here:

    PS C:\windows\system32> winget --info
    Windows Package Manager v1.6.2771
    Copyright (c) Microsoft Corporation. All rights reserved.

    Windows: Windows.Desktop v10.0.19045.3570
    System Architecture: X64
    Package: Microsoft.DesktopAppInstaller v1.21.2771.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

  8. denelon commented on Nov 6, 2023

    @denelon
    Collaborator

    You could try changing your default download provider to "wininet" in WinGet settings. The URL at the bottom of the help output will take you to the settings page so you can see how to make the change.

    PS C:\Users\denelon> winget settings -?
    Windows Package Manager (Preview) v1.7.2782-preview
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    Open settings in the default json text editor. If no editor is configured, opens settings in notepad. For available settings see https://aka.ms/winget-settings This command can also be used to set administrator settings by providing the --enable or --disable arguments
    
    usage: winget settings [<command>] [<options>]
    
    The following command aliases are available:
      config
    
    The following sub-commands are available:
      export  Export settings
    
    For more details on a specific command, pass it the help argument. [-?]
    
    The following options are available:
      --enable                  Enables the specific administrator setting
      --disable                 Disables the specific administrator setting
      -?,--help                 Shows help about the selected command
      --wait                    Prompts the user to press any key before exiting
      --logs,--open-logs        Open the default logs location
      --verbose,--verbose-logs  Enables verbose logging for winget
      --disable-interactivity   Disable interactive prompts
    
    More help can be found at: https://aka.ms/winget-settings
  9. NVT223 commented on Nov 21, 2023

    @NVT223
    Author
  10. Masamune3210 commented on Nov 22, 2023

    @Masamune3210

    NVT223 winget has nothing to do with chocolatey.....

  11. Trenly commented on Mar 15, 2024

    @Trenly
    Contributor

    NVT223 - - Are you still experiencing this issue with the latest release of the cli?

  12. added
    Needs-Author-Feedback
    on Mar 15, 2024
  13. huyz commented on Mar 15, 2024

    @huyz

    Kaleb Luedtke (@Trenly) I'm not OP but I'm still getting the issue with the latest release v1.7.10661 of the CLI:

     huyz  winget --version
    v1.7.10661
    
     huyz  winget source update winget
    Updating source: winget...
    Cancelled
    
     huyz  winget update
    Failed in attempting to update the source: winget
    Name                                                      Id                           Version       Available     Source
    -------------------------------------------------------------------------------------------------------------------------
    Microsoft Edge                                            Microsoft.Edge               122.0.2365.80 122.0.2365.92 winget
    WinSCP 6.3.1                                              WinSCP.WinSCP                6.3.1         6.3.2         winget
    Microsoft Visual C++ 2015-2022 Redistributable (x86) - 1… Microsoft.VCRedist.2015+.x86 14.38.33135.0 14.40.33617.1 winget
    Microsoft Visual Studio Code (User)                       Microsoft.VisualStudioCode   1.87.1        1.87.2        winget
    Microsoft Visual C++ 2015-2022 Redistributable (x64) - 1… Microsoft.VCRedist.2015+.x86 14.38.33135.0 14.40.33617.1 winget
    5 upgrades available.
    
     huyz  winget install WinSCP.WinSCP
    Found an existing package already installed. Trying to upgrade the installed package...
    An unexpected error occurred while executing the command:
    InternetOpenUrl() failed.
    0x80072f7d : unknown error

    But when I open a VPN connection to another country:

     huyz  winget source update winget
    Updating source: winget...
    Done
    
     huyz  winget update
    Name                                                      Id                           Version       Available     Source
    -------------------------------------------------------------------------------------------------------------------------
    Microsoft Edge                                            Microsoft.Edge               122.0.2365.80 122.0.2365.92 winget
    WinSCP 6.3.1                                              WinSCP.WinSCP                6.3.1         6.3.2         winget
    Microsoft Visual C++ 2015-2022 Redistributable (x86) - 1… Microsoft.VCRedist.2015+.x86 14.38.33135.0 14.40.33617.1 winget
    Microsoft Visual Studio Code (User)                       Microsoft.VisualStudioCode   1.87.1        1.87.2        winget
    Microsoft Visual C++ 2015-2022 Redistributable (x64) - 1… Microsoft.VCRedist.2015+.x86 14.38.33135.0 14.40.33617.1 winget
    5 upgrades available.
    
     huyz  winget install WinSCP.WinSCP
    Found an existing package already installed. Trying to upgrade the installed package...
    Found WinSCP [WinSCP.WinSCP] Version 6.3.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.
    Downloading https://sourceforge.net/projects/winscp/files/WinSCP/6.3.2/WinSCP-6.3.2-Setup.exe/download
      ██████████████████████████████  11.0 MB / 11.0 MB
    Successfully verified installer hash
    Starting package install...
    Successfully installed

    Is something wrong with the Microsoft servers around the world?

  14. removed
    Needs-Author-Feedback
    on Mar 15, 2024
  15. silver716 commented on Jun 1, 2024

    @silver716

    Check that TLS 1.2 and TLS 1.3 are enabled if you're experiencing this issue.

    Location:
    > Internet Properties > Advanced > Use TLS 1.x

  16. jacattrongnlh commented on Sep 16, 2024

    @jacattrongnlh

    I've tried a lot of options. Only this solved it: my computer has a VPN program installed. winget can't update anything, then I start the VPN, now winget work without error.

  17. huyz commented on Sep 16, 2024

    @huyz

    @jaccattrongnlh Sounds like you're in VN. If so, switch your connection from VNPT to FPT (or maybe Viettel)

  18. ReshaSD commented on Dec 16, 2024

    @ReshaSD

    Hey guys.
    any news when the issue will be resolved?
    I see the 7zip url is unavailable at all:
    Image

  19. Masamune3210 commented on Dec 18, 2024

    @Masamune3210

    If you are failing to open the page in a browser, its not an issue with winget, its an issue with your connection or something deeper in the system.

  20. ReshaSD commented on Dec 18, 2024

    @ReshaSD

    Masamune3210
    Ok you are right. My home provider doesn't allow to download that URL. But it works in different place.

  21. ReshaSD commented on Dec 18, 2024

    @ReshaSD

    It probably did at some point, but no longer does. Either way, that's not what this issue is about, that's just a case of the manifest being incorrect and needing to be updated.

    Ok you are right. My home provider doesn't allow to download that URL. But it works in different place.

  22. atom-tr commented on Dec 23, 2024

    @atom-tr

    @jaccattrongnlh Sounds like you're in VN. If so, switch your connection from VNPT to FPT (or maybe Viettel)

    You're genius, I'm from VN too. It's worked with VPN connected to my office. Doesn't know why. I'm using Viettel at home, VNPT at office.

    I have found an easier option: change the DNS settings to another DNS server, not the Viet Nam ISP DNS server.

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-Bug

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions