nils-a / au-packages

MIT License
0 stars 0 forks source link

usbimager 10.0.10 checksum mismatch #18

Closed saalkom closed 1 year ago

saalkom commented 1 year ago

chocolatey.log

Here is the relevant portion of chocolatey.log after running choco upgrade usbimager -y --debug --verbose:

2023-10-30 14:09:40,412 24488 [DEBUG] - Verifying package provided checksum of '9200FBAAA617856692A0A59ED80492E3BFC5B4D32F0A3FB199B80C6C5CA2BC47' for 'C:\Users\User\AppData\Local\Temp\chocolatey\usbimager\1.0.10\usbimager_1.0.10-i686-win-gdi.zip'.
2023-10-30 14:09:40,421 24488 [DEBUG] - Running Get-ChecksumValid -file 'C:\Users\User\AppData\Local\Temp\chocolatey\usbimager\1.0.10\usbimager_1.0.10-i686-win-gdi.zip' -checksum '9200FBAAA617856692A0A59ED80492E3BFC5B4D32F0A3FB199B80C6C5CA2BC47' -checksumType 'sha256' -originalUrl 'https://gitlab.com/bztsrc/usbimager/raw/binaries/usbimager_1.0.10-i686-win-gdi.zip' 
2023-10-30 14:09:40,429 24488 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2023-10-30 14:09:40,432 24488 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="9200FBAAA617856692A0A59ED80492E3BFC5B4D32F0A3FB199B80C6C5CA2BC47" -t="sha256" -f="C:\Users\User\AppData\Local\Temp\chocolatey\usbimager\1.0.10\usbimager_1.0.10-i686-win-gdi.zip"]
2023-10-30 14:09:40,518 24488 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="9200FBAAA617856692A0A59ED80492E3BFC5B4D32F0A3FB199B80C6C5CA2BC47" -t="sha256" -f="C:\Users\User\AppData\Local\Temp\chocolatey\usbimager\1.0.10\usbimager_1.0.10-i686-win-gdi.zip"] exited with '1'.
2023-10-30 14:09:40,522 24488 [ERROR] - ERROR: Checksum for 'C:\Users\User\AppData\Local\Temp\chocolatey\usbimager\1.0.10\usbimager_1.0.10-i686-win-gdi.zip' did not meet '9200FBAAA617856692A0A59ED80492E3BFC5B4D32F0A3FB199B80C6C5CA2BC47' 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.

...

2023-10-30 14:09:40,720 24488 [ERROR] - The upgrade of usbimager was NOT successful.
2023-10-30 14:09:40,725 24488 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\usbimager\tools\chocolateyinstall.ps1'.

...

2023-10-30 14:09:44,790 24488 [WARN ] - 
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-10-30 14:09:44,793 24488 [INFO ] - 
2023-10-30 14:09:44,795 24488 [ERROR] - Failures
2023-10-30 14:09:44,798 24488 [ERROR] -  - usbimager (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\usbimager\tools\chocolateyinstall.ps1'.
nils-a commented 1 year ago

Interesting... At first glance, the released binaries were modified in Commit 6346f350 without doing a release.

I'll have a look, later today.

nils-a commented 1 year ago

New version has been pushed: https://community.chocolatey.org/packages/usbimager/1.0.10.20231030

Fixed in https://github.com/nils-a/au-packages/commit/aef52e137066eb3dcbb6f154c37c416634358d67

saalkom commented 1 year ago

Works now, thanks.