winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Unable to install with winget on Windows 11

Open wukefe opened this issue 1 year ago • 10 comments

Dev Home version

No response

Windows build number

No response

Other software

No response

Steps to reproduce the bug

Followed the instructions from README:

winget install --id Microsoft.DevHome -e

Expected result

Install the package

Actual result

Failed in attempting to update the source: winget
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing

No packages were found among the working sources.

But I can see winget has been installed in /c/Users/<user>/AppData/Local/Microsoft/WindowsApps/winget.

Included System Information

Windows 11 Version 10.0.22631 Build 22631

Included Extensions Information

No response

wukefe avatar Jan 13 '24 06:01 wukefe

/logs

vineeththomasalex avatar Jan 22 '24 17:01 vineeththomasalex

Hi @wukefe , for now it seems that the error is in Winget. You might receive more help in the Winget repository. https://github.com/microsoft/winget-cli

vineeththomasalex avatar Jan 22 '24 17:01 vineeththomasalex

Hi @vineeththomasalex, winget is new to me. Do you know how to make it work to install devhome?

Here is what I tried, but the package was still not found:

winget source reset --force
winget source update
winget install --id Microsoft.DevHome -e

wukefe avatar Jan 23 '24 19:01 wukefe

@denelon Would you be able to help @wukefe make an issue about this on the Winget repo?

I'll close this one as External.

vineeththomasalex avatar Jan 24 '24 18:01 vineeththomasalex

@wukefe what version of WinGet do you have installed? Can you share the output from winget --info?

denelon avatar Jan 24 '24 18:01 denelon

>> winget --info
Windows Package Manager v1.4.11071
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3007
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.11071.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

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

wukefe avatar Jan 24 '24 18:01 wukefe

It looks like you have an older version of WinGet. Could you try upgrading?

You can either:

  • Upgrade App Installer via the Microsoft Store
  • Install the latest via https://aka.ms/getwinget or https://github.com/microsoft/winget-cli/releases/latest

denelon avatar Jan 24 '24 18:01 denelon

Thanks! I will try it later today and will let you know.

wukefe avatar Jan 24 '24 20:01 wukefe

I tried Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle to install the latest winget, but the installation was unsuccessful and no error messages were available (disappeared silently). Anyway, I will try another way to install DevHome.

wukefe avatar Jan 26 '24 06:01 wukefe

@wukefe Is this still an issue for you?

vineeththomasalex avatar Apr 04 '24 22:04 vineeththomasalex

@vineeththomasalex Sorry about my late reply. It turns out that it worked after I tried with my personal laptop without admin controls. It no longer blocks me.

wukefe avatar May 02 '24 17:05 wukefe