microsoft / microsoft/winget-cli
Failed in attempting to update the source: winget - No applicable installer found
Open
Nobody has claimed this yet.
Issue-Bug
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
Unable to install a package:
> winget install --id Microsoft.MouseandKeyboardCenter --scope machine
Failed in attempting to update the source: winget
No applicable installer found; see logs for more details.
Logs:
2022-04-22 16:10:09.872 [CORE] WinGet, version [1.2.10271], activity [{B6E9B799-E878-4BA0-BB83-D743226DD51D}]
2022-04-22 16:10:09.873 [CORE] OS: Windows.Desktop v10.0.22000.613
2022-04-22 16:10:09.873 [CORE] Command line Args: "C:\Users\username\AppData\Local\Microsoft\WindowsApps\winget.exe" install --id Microsoft.MouseandKeyboardCenter --scope machine
2022-04-22 16:10:09.873 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10271.0
2022-04-22 16:10:09.873 [CORE] IsCOMCall:0; Caller: winget-cli
2022-04-22 16:10:09.878 [CLI ] WinGet invoked with arguments: 'install' '--id' 'Microsoft.MouseandKeyboardCenter' '--scope' 'machine'
2022-04-22 16:10:09.879 [CLI ] Found subcommand: install
2022-04-22 16:10:09.879 [CLI ] Leaf command to execute: root:install
2022-04-22 16:10:09.884 [CLI ] Executing command: install
2022-04-22 16:10:09.884 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-04-22 16:10:09.884 [REPO] Default source requested, multiple sources available, adding all to source references.
2022-04-22 16:10:09.884 [REPO] Adding to source references msstore
2022-04-22 16:10:09.884 [REPO] Adding to source references winget
2022-04-22 16:10:09.885 [REPO] Source past auto update time [5 mins]; it has been at least 2588 mins
2022-04-22 16:10:10.205 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-04-22 16:10:10.205 [CORE] Found matching extension.
2022-04-22 16:10:10.212 [CORE] Downloading to path: C:\Users\username\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2022-04-22 16:10:10.213 [CORE] Started applying motw to C:\Users\username\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3
2022-04-22 16:10:10.218 [CORE] Finished applying motw
2022-04-22 16:10:10.218 [CORE] WinINet downloading from url: https://winget.azureedge.net/cache/source.msix
2022-04-22 16:10:10.261 [CORE] Download completed.
2022-04-22 16:10:10.262 [CORE] Starting AddPackage operation #0: file:///C:/Users/username/AppData/Local/Temp/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix SkipSmartScreen: 1
2022-04-22 16:10:10.267 [CORE] Begin waiting for operation #0
2022-04-22 16:10:10.267 [CORE] Begin blocking for operation #0
2022-04-22 16:10:10.270 [CORE] Deployment operation #0: Access is denied.
2022-04-22 16:10:10.270 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FF91C9B657A: (caller: 00007FF91C9B6C09) Exception(1) tid(3e24) A2C22CC0 Msg:[Operation failed: Access is denied.
]
2022-04-22 16:10:10.282 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FF91CB102B1: (caller: 00007FF91CA0AA56) LogHr(1) tid(3e24) A2C22CC0 Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FF91C9B657A: (caller: 00007FF91C9B6C09) Exception(1) tid(3e24) A2C22CC0 Msg:[Operation failed: Access is denied.
]
]
2022-04-22 16:10:10.282 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-04-22 16:10:12.487 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-04-22 16:10:12.487 [CORE] Found matching extension.
2022-04-22 16:10:12.491 [CORE] Downloading to path: C:\Users\username\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2022-04-22 16:10:12.492 [CORE] Started applying motw to C:\Users\username\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3
2022-04-22 16:10:12.493 [CORE] Finished applying motw
2022-04-22 16:10:12.493 [CORE] WinINet downloading from url: https://winget.azureedge.net/cache/source.msix
2022-04-22 16:10:12.516 [CORE] Download completed.
2022-04-22 16:10:12.517 [CORE] Starting AddPackage operation #1: file:///C:/Users/username/AppData/Local/Temp/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix SkipSmartScreen: 1
2022-04-22 16:10:12.519 [CORE] Begin waiting for operation #1
2022-04-22 16:10:12.519 [CORE] Begin blocking for operation #1
2022-04-22 16:10:12.523 [CORE] Deployment operation #1: Access is denied.
2022-04-22 16:10:12.523 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FF91C9B657A: (caller: 00007FF91C9B6C09) Exception(2) tid(3e24) A2C22CC0 Msg:[Operation failed: Access is denied.
]
2022-04-22 16:10:12.533 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(516)\WindowsPackageManager.dll!00007FF91CB0FA23: (caller: 00007FF91C91B9AD) LogHr(2) tid(3e24) A2C22CC0 Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FF91C9B657A: (caller: 00007FF91C9B6C09) Exception(2) tid(3e24) A2C22CC0 Msg:[Operation failed: Access is denied.
]
]
2022-04-22 16:10:12.533 [REPO] Failed to update source: winget
2022-04-22 16:10:12.533 [REPO] Multiple sources available, creating aggregated source.
2022-04-22 16:10:12.533 [REPO] Adding to aggregated source: msstore
2022-04-22 16:10:12.533 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-04-22 16:10:12.612 [REPO] Response status: 200
2022-04-22 16:10:12.612 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-04-22 16:10:12.647 [REPO] Response status: 200
2022-04-22 16:10:12.647 [REPO] Adding to aggregated source: winget
2022-04-22 16:10:12.655 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-04-22 16:10:12.656 [CORE] Found matching extension.
2022-04-22 16:10:12.686 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2022.412.2240.845_neutral__8wekyb3d8bbwe\Public\index.db'
2022-04-22 16:10:12.686 [SQL ] Opening SQLite connection: 'file:/C:/Program Files/WindowsApps/Microsoft.Winget.Source_2022.412.2240.845_neutral__8wekyb3d8bbwe/Public/index.db?immutable=1' [1, 40]
2022-04-22 16:10:12.687 [REPO] Opened SQLite Index with version [1.3], last write [2022-04-12 17:40:46.000]
2022-04-22 16:10:12.753 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/Microsoft.MouseandKeyboardCenter?Market=US
2022-04-22 16:10:12.777 [REPO] Response status: 200
2022-04-22 16:10:12.783 [CLI ] Found one app. App id: Microsoft.MouseandKeyboardCenter App name: Microsoft Mouse and Keyboard Center
2022-04-22 16:10:12.784 [REPO] Downloading manifest
2022-04-22 16:10:12.784 [CORE] WinINet downloading from url: https://winget.azureedge.net/cache/manifests/m/Microsoft/MouseandKeyboardCenter/14.41.137.0/6ada-Microsoft.MouseandKeyboardCenter.yaml
2022-04-22 16:10:12.802 [CORE] Download hash: a8719117212084c3ed4b72d51e1d7d9e1949c5c900eab9f0962603a30b4d6da0
2022-04-22 16:10:12.802 [CORE] Download completed.
2022-04-22 16:10:12.803 [CLI ] Manifest fields: Name [Microsoft Mouse and Keyboard Center], Version [14.41.137.0]
2022-04-22 16:10:12.804 [CLI ] Starting installer selection.
2022-04-22 16:10:12.804 [CLI ] Installer [X64,exe,Unknown,] not applicable: Installer scope does not match required scope: Unknown != Machine
2022-04-22 16:10:12.804 [CLI ] Installer [X86,exe,Unknown,] not applicable: Installer scope does not match required scope: Unknown != Machine
2022-04-22 16:10:12.804 [CLI ] Installer [Arm64,exe,Unknown,] not applicable: Installer scope does not match required scope: Unknown != Machine
2022-04-22 16:10:12.804 [CLI ] Installer [Arm64,exe,Unknown,] not applicable: Machine is not compatible with Arm64
2022-04-22 16:10:12.805 [CLI ] Terminating context: 0x8a150010 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\InstallFlow.cpp:74
Steps to reproduce
Try to install a package.
Expected behavior
Package gets installed
Actual behavior
Error.
Environment
> winget --info
Windows Package Manager v1.2.10271
Windows: Windows.Desktop v10.0.22000.613
Package: Microsoft.DesktopAppInstaller v1.17.10271.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the command winget install --id Microsoft.MouseandKeyboardCenter --scope machine and start with the installer-selection failure reported at AppInstallerCLICore/Workflows/InstallFlow.cpp:74. Compare the manifest's installer scope with the requested scope and use the logged selection behavior to define the fix. Done means the package installs with the requested machine scope without the no-applicable-installer error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100