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

[Issue] error 404 when using winget to install this package #3883

Closed
Robertblazor opened this issue May 9, 2024 · 6 comments
Closed

[Issue] error 404 when using winget to install this package #3883

Robertblazor opened this issue May 9, 2024 · 6 comments
Assignees
Labels
blocker bug Something isn't working customer-reported identify a customer issue installer needs-team-attention Issues out of a milestone question upstream deps
Milestone

Comments

@Robertblazor
Copy link

When type in the following command

'''winget install Microsoft.Azd '''

It shows the error of the following

image
@albx
Copy link

albx commented May 9, 2024

I've got the same error.
I tried both update Microsoft.Azd via winget and uninstall and then trying to re-install but the command fails with 404 response

@rajeshkamal5050 rajeshkamal5050 added this to the May 2024 milestone May 9, 2024
@danieljurek
Copy link
Member

Thanks for reporting @Robertblazor and @albx ... I see this happening locally. Checking now .

@rajeshkamal5050 rajeshkamal5050 added bug Something isn't working blocker labels May 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-team-attention Issues out of a milestone label May 9, 2024
@danieljurek
Copy link
Member

An issue has been identified in WinGet. Running winget install Microsoft.Azd --verbose-logs produces the following logs:

...
2024-05-09 09:19:13.862 [REPO] Downloading manifest
2024-05-09 09:19:13.862 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/m/Microsoft/Azd/1.9.100/5f71
2024-05-09 09:19:14.144 [CORE] Download request failed. Returned status: 404
2024-05-09 09:19:14.144 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(148)\WindowsPackageManager.dll!00007FFB51FE91E2: (caller: 00007FFB521751B7) Exception(17) tid(5c90) 80190194 Not found (404).
    Msg:[Download request status is not success.] 
...

Issue tracking on WinGet's side: microsoft/winget-pkgs#152915

Workaround

To work around for now, you can run the PowerShell install script:

powershell -nop -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"

When it's time to upgrade again azd will recommend using the PowerShell stanza but, once the WinGet issue is fixed, you can go back to using winget upgrade Microsoft.Azd.

@albx
Copy link

albx commented May 9, 2024

Workaround

To work around for now, you can run the PowerShell install script:

powershell -nop -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"

Just tried out the workaround. It works! :)

@Robertblazor
Copy link
Author

It is working around, but I would recommend the winget to be back on.

@danieljurek
Copy link
Member

WinGet has fixed the issue in the short term: microsoft/winget-pkgs#152946 so winget install Microsoft.Azd now works again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Something isn't working customer-reported identify a customer issue installer needs-team-attention Issues out of a milestone question upstream deps
Projects
None yet
Development

No branches or pull requests

4 participants