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

Checksum mismatch on android.png when installing throuch Choco for Windows #2536

Open
FireballKitty opened this issue Jul 30, 2021 · 7 comments

Comments

@FireballKitty
Copy link

  • [✔] I have read the FAQ.
  • [✔] I have searched in existing issues.

Environment

  • OS: Windows 10, v21H1
  • scrcpy version: v1.18
  • installation method: Chocolatey v0.10.15
  • device model: OnePlus 9 model LE2113
  • Android version: Oxygen OS 11

Describe the bug
Install failed on attempt with Chocolatey on Windows.
ADB already installed through Chocolatey prior to attempt.

Terminal log

PS C:\Users\Fireball> choco install scrcpy
Chocolatey v0.10.15
Installing the following packages:
scrcpy
By installing you accept licenses for the packages.
Progress: Downloading scrcpy 1.18... 100%

scrcpy v1.18 [Approved]
scrcpy package files install completed. Performing other installation steps.
The package scrcpy wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a

File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Hashes match.
Hashes match.
Extracting C:\Users\Fireball\AppData\Local\Temp\chocolatey\scrcpy\1.18\scrcpy-win64-v1.18.zip to C:\ProgramData\chocolatey\lib\scrcpy\tools...
C:\ProgramData\chocolatey\lib\scrcpy\tools
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Error - hashes do not match. Actual value was 'D0B659EB903B08B9A67D97257FC10B7C3269581A913E9F72B20D6E890C01D988'.
Downloading android
  from 'https://www.iconfinder.com/icons/317758/download/png/128'

Download of android.png (-1 B) completed.
Error - hashes do not match. Actual value was 'D0B659EB903B08B9A67D97257FC10B7C3269581A913E9F72B20D6E890C01D988'.
ERROR: Checksum for 'C:\Users\Fireball\AppData\Local\Temp\chocolatey\android.png' did not meet 'B2FE913ED202C908D10ACD1D602CCDB24E2E79F3009570E2CADAF22694FFA4DA' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
The install of scrcpy was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\scrcpy\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - scrcpy (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\scrcpy\tools\chocolateyinstall.ps1'.
 See log for details.

Additional note
Terminal output captured on second attempt at install.
Relevant Pastebin link to contents of file choco.summary.log: https://pastebin.com/0NETNVWA

@puerari
Copy link

puerari commented Aug 5, 2021

I'm with te same problem.

@JesyNoelia
Copy link

Hi!! I'm having exactly the same problem with the checksum. How we can solve it?

@rom1v
Copy link
Collaborator

rom1v commented Aug 12, 2021

It seems there is some work on the Chocolatey side:

This might be easier once scrcpy has a real icon: #1987

@WanKapef
Copy link

Same problem here, and don't understand how to solve it in chocolatey.

@WanKapef
Copy link

I solved adding the flag --ignore-checksums

@sankalpj30
Copy link

I solved adding the flag --ignore-checksums

It Worked for me thanks

@sankalpj30
Copy link

used
choco install scrcpy --ignore-checksums

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants