Hi.

I’m having issues with WinGet. I ran these commands:

winget source reset --force

winget source update

winget upgrade

Add-AppxPackage -Path https://cdn.winget.microsoft.com/cache/source.msix

Winget version is:

winget --info
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.5624
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.400.0
Windows Package Manager v1.11.400

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
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

Links

Privacy Statement Microsoft Privacy Statement – Microsoft privacy
License Agreement winget-cli/LICENSE at master · microsoft/winget-cli · GitHub
Third Party Notices winget-cli/NOTICE at master · microsoft/winget-cli · GitHub
Homepage GitHub - microsoft/winget-pkgs: The Microsoft community Windows Package Manager manifest repository
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting State

LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled

The errors are:

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


I can’t seem to be able to uninstall it via the MS Store. Not via Control Panel either.

Do I need to manually delete the App Installer folders and then reinstall winget via the MSIX? Windows 11 Pro is my OS.

6 Spice ups

The error is typical of network issues.

Is this on your mothers device? I know we’ve discussed network issues similar to this before.

If not, the places to check are VPNs, Proxies, ad-blockers and AV configurations, as well as other products that may block or filter internet traffic.

Something generally forgotten, check your date and time are correct for your region.

4 Spice ups

It’s on my own physical desktop.

I don’t use VPNs on this device, no proxies either. I do use UBlock Origin. I’ve looked through Kaspersky and don’t see any blocks.

Regarding the date and time, is it a problem if I’m in Hungary and my locale is en-US? Including the date and time formatting as well, they’re all en-US.

3 Spice ups

date and time isn’t related to your local, but your physical location matching your timezone.

it’s easier to set it to automatically detect and let the location services work it out.

My guess is, something is getting in the way.

You may not see a block in Kaspersky either, the sites are not malicious, but if you block certain sites or outbound ports, I’d start by checking/disabling these and see how you get on.

You could try running the below.

netsh winhttp reset proxy

3 Spice ups

netsh winhttp reset proxy

Current WinHTTP proxy settings:

Direct access (no proxy server).
3 Spice ups

I’m not blocking outbound ports or sites.

3 Spice ups
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002

Confirm these keys exist

  • TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
  • TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256

These are the sites specifically used, make sure none are in your block.

  • https://aka.ms
  • https://storeedgefd.dsx.mp.microsoft.com
  • https://cdn.winget.microsoft.com
  • https://github.com
  • https://*.githubusercontent.com

Manually re-install it

GitHub - 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).

4 Spice ups

No, those keys don’t exist, it’s empty.

3 Spice ups

Troubleshoot Windows Update error 0x80072EFE with cipher suite configuration - Windows Client | Microsoft Learn

Winget uses this as it’s way of connecting, without them, it can’t establish a secure connection and fails.

While the page is about windows update, Winget uses these keys as well.

Does your Windows update still work?

4 Spice ups

I have a bunch of Windows 11 PCs that I’ve worked with and found that there has to be an updated details and I can’t remember what the site was (started at Reddit and then went several places until I found answers). Here’s what I have to do on some of my systems:
1.

# Add the new DLLs to the Global Assembly Cache
		Add-Type -AssemblyName "System.EnterpriseServices"
		$publish = [System.EnterpriseServices.Internal.Publish]::new()
		
		$dlls = @(
		'System.Memory.dll',
		'System.Numerics.Vectors.dll',
		'System.Runtime.CompilerServices.Unsafe.dll',
		'System.Security.Principal.Windows.dll'
		)

		foreach ($dll in $dlls) {
		$dllPath = "$env:SystemRoot\System32\WindowsPowerShell\v1.0\$dll"
		$publish.GacInstall($dllPath)
		}    

		# Create a file so we can easily track that this computer was fixed (in case we need to revert)
		New-Item -Path "$env:SystemRoot\System32\WindowsPowerShell\v1.0\" -Name DllFix.txt -ItemType File -Value "$dlls added to the Global Assembly Cache" -Force
Install-Module -Name Microsoft.WinGet.Client

Add-AppxPackage https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
	
Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe

	# May need the following on some systems
Add-Appxpackage https://cdn.winget.microsoft.com/cache/source.msix
	# Depending on the situation this will get Winget back on the system from MS Source Site

That’s usually it. Sometimes if I need to run the May need the following on some systems I have to do the beginning of Step 2, but it’s been rare.

If you’ve got some Windows update Errors you may need to clear out your Software Distribution Folder using the following:

Stop-Service wuauserv -Force;Stop-Service BITS;Remove-Item C:\Windows\SoftwareDistribution\ -Recurse -Force;Start-Service wuauserv;Start-Service BITS

That should clear out your Software Distribution folder, but sometimes there’s a file lock that won’t let go until you restart your computer, and do it first thing.

2 Spice ups

Yes, Windows Updates still work fully.

1 Spice up