microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.65k stars 4.51k forks source link

Spotify installer fail with error: "Installer failed with exit code: 3221226505" #1293

Closed HeinVG closed 3 years ago

HeinVG commented 4 years ago

Brief description of your issue

When running 'winget install spotify', winget is unable to verify the hash, even if I let winget to continue and try to install it, I'll get the following error: 'Installer failed with exit code: 3221226505'

Steps to reproduce

Open Windows Terminal, then run 'winget install spotify', the app will download, fail to verify hash and the installation will fail

Expected behavior

winget would be able to verify the hash of the app for Spotify and then properly install it with or without verifying it

Actual behavior

image

Environment

[winget --info]
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19041.264
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Any other software?
Not applicable
benekent commented 4 years ago

I get the same error code, but I can verify the hash.

Successfully verified installer hash  
Installing ...  
Installer failed with exit code: 3221226505 

with

Windows Package Manager v0.1.41331 Preview  
Copyright (c) Microsoft Corporation. All rights reserved.  

Windows: Windows.Desktop v10.0.19628.1  
Package: Microsoft.DesktopAppInstaller v1.0.41331.0
cnewman402 commented 4 years ago

Having a similar experience with cpu-z:

PS C:\Users\cnewman> winget install cpu-z Found CPU-Z [CPUID.CPU-Z] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading http://download.cpuid.com/cpu-z/cpu-z_1.92-en.exe β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 1.82 MB / 1.82 MB Successfully verified installer hash Installing ... Installer failed with exit code: 1

denelon commented 4 years ago

The Spotify.Spotify manifests reference a generic URL rather than a version specific URL. When a newer version of the installer is released, the SHA256 will no longer match. Maybe someone from the community or Spotify can find URLs that point to a specific versioned release.

SoftCreatR commented 4 years ago

@denelon This also happens when using the direct installer:

Id: Spotify.Spotify
Version: 1.1.34.694
Name: Spotify
Publisher: Spotify
License: Copyright Β© 2012 Spotify AB. All rights reserved.
LicenseUrl: https://www.spotify.com/us/legal/end-user-agreement/
AppMoniker: spotify
Description: Spotify music player
Homepage: https://www.spotify.com/
Installers:
  - Arch: x86
    Url: https://upgrade.scdn.co/upgrade/client/win32-x86/spotify_installer-1.1.34.694.gac68a2b3-15.exe
    Sha256: 35CE7176234B5A050472F00E102FC50AB64AD8E96D53EFF66F30F2217938723D
    InstallerType: exe
    Switches:
        Silent: /Silent
        SilentWithProgress: /Silent
icenine457 commented 4 years ago

https://community.spotify.com/t5/Spotify-for-Developers/Is-there-a-version-specific-URL-that-can-be-used-for-Spotify/m-p/4969814#M347

bondarenkod commented 4 years ago

the same with PowerToys

PS C:\Users\bonda> WinGet install powertoys
Found PowerToys [Microsoft.PowerToys]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/microsoft/PowerToys/releases/download/v0.20.0/PowerToysSetup-0.20.0-x64.exe
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  20.4 MB / 20.4 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 3221226505

win 19041.388

ehmiiz commented 4 years ago

I get the same with PowerToys as above ^

Edit: Worked fine today!

fredinfu commented 4 years ago

I get the same with PowerToys as above ^

Edit: Worked fine today!

So you did nothing and just worked that day? I'm having the same problem with PowerToys

PS C:\Users\user> winget install powertoys Found PowerToys [Microsoft.PowerToys] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://github.com/microsoft/PowerToys/releases/download/v0.21.1/PowerToysSetup-0.21.1-x64.exe β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 20.5 MB / 20.5 MB Successfully verified installer hash Starting package install... Installer failed with exit code: 1

denelon commented 4 years ago

I was able to install Spotify, cpu-z, and PowerToys. Have these issue all been resolved?

crimsonclyde commented 3 years ago

Still the same for days:

winget install spotify
Found Spotify [Spotify.Spotify]
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen fΓΌr Pakete von Drittanbietern.
Downloading https://download.scdn.co/SpotifySetup.exe
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   871 KB /  871 KB
Der Installer-Hash wurde erfolgreich ΓΌberprΓΌft
Paketinstallation wird gestartet...
Installer failed with exit code: 3221226505

Winget Info

winget --info
Windows Package Manager v0.2.2941 Vorschau
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.19041.610
Paket: Microsoft.DesktopAppInstaller v1.11.2941.0

Tried --force and powershell with admin. Last one doesn't work because you should install it in the user environment. :/

ItzLevvie commented 3 years ago

@crimsonclyde No issues here: image

denelon commented 3 years ago

We now have automation to update installers that point to a vanity URL. I'll leave this issue open for a few more days before closing as resolved.

ghost commented 3 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

HeinVG commented 3 years ago

Hello, I'm still running into the same error code:

image

This is the version of Winget I have installed on my machine, I checked the Microsoft Store for updates and there's no updates for the AppInstaller package for me:

Windows Package Manager v0.2.3162 Preview
Package: Microsoft.DesktopAppInstaller v1.11.3162.0
HeinVG commented 3 years ago

Update:

I did some troubleshooting, I had to reset the configuration for the AppInstaller app on Settings -> Apps -> AppInstaller -> Advanced Options and finally clicked on Reset, after doing that I tried to install Spotify and it went smooth as butter.

Since it is working fine now I'll close this issue.

crimsonclyde commented 3 years ago

@TheRndCoder I can confirm!

Did the same but ended up with "Installer Hash mismatch". But there's a simple fix, just add the "--force" to the end of:

winget install spotify --force

and voilΓ  - done. Thx for this hint!