Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winget fails on Windows #1916

Closed
openHawkes opened this issue Oct 10, 2023 · 4 comments
Closed

winget fails on Windows #1916

openHawkes opened this issue Oct 10, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@openHawkes
Copy link

Describe the bug

C:\some\path>winget install gitui
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: Y
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.

To Reproduce
Steps to reproduce the behavior:

Looking at these instructions...

Winget (Windows)
winget install gitui

  1. Windows key + R
  2. cmd
  3. winget install gitui
  4. See error

Alternately

  1. Open cmd with admin privs somehow
  2. winget install gitui
  3. See error

Search for that error number, find nothing, open issue.

Expected behavior
I expected things to install.

Context (please complete the following information):

  • Windows 11 21H2 (OS Build 22000.2416)
  • Rust version: Did I need to install this first?
@openHawkes openHawkes added the bug Something isn't working label Oct 10, 2023
@ClementNerma
Copy link

Looking at the error, seems to be a bug coming from winget itself, not with gitui.

@openHawkes
Copy link
Author

I tried to install again and it did work.

Do you know what the winget issue was referring to? Data required by the source is missing seemed to me to install that whatever package was needed to install gitui was not available. That is, it's not a gitui code but gitui deployment snafu (that does seem to have corrected itself for now).

If it's likely to happen again, it might be useful to include that in the docs. YMMV, etc.

@ClementNerma
Copy link

In the event you get error messages with codes like this, google is your friend ;)

A quick search shows this for instance : microsoft/winget-cli#1348

@openHawkes
Copy link
Author

openHawkes commented Nov 16, 2023

I'm afraid google wasn't my friend. As I mentioned in the initial report, I did try to search, and gave the link I used. Looks like this issue should have been there then, but github's search results page, um, doesn't have the best UI for issues (why wouldn't issues be first-class search results?). My bad.

image

That said, I'm not sure I follow the resolution to that thread. Did you?

Experiencing this issue now. Found the root cause to be that https://winget.azureedge.net/cache/source.msix is returning a 404 error. A 404 error should be communicated to the user in a more direct way than a generic "data is missing" message.

That and similar make it sound like it could not, as I guessed, find "whatever package was needed to install gitui", but I think you're right that it's winget's catalog's problems, not a missing URL or deployment issue from gitui.

But it also sounds ("This is the first time I've ever seen winget upgrade --all function properly. What a day to be alive. I've always wanted a Windows package manager and this give me hope that it could be a stable thing some day.") like maybe winget isn't the most reliable deployment tool. I'd probably add a warning ("winget is temperamental; wait and try again" equivalent) to the gitui install steps. $0.02 YMMV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants