ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.56k stars 931 forks source link

[Bug] Problem with installing zstd #5670

Closed ghost closed 3 months ago

ghost commented 3 months ago

Bug Report

Current Behavior

Installation of gcc-msys fails with this error:

PS C:\Users\LocalUser> scoop install versions/gcc-msys
Installing 'zstd' (1.5.6) [64bit] from main bucket
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: bf6fbb|OK  |   2.0MiB/s|C:/Users/LocalUser/Appdata/Local/Scoop//cache/zstd#1.5.6#https_github.com_facebook_zstd_releases_download_v1.5.6_zstd-v1.5.6-win64.zip
Download: Status Legend:
Download: (OK):download completed.
Checking hash of zstd-v1.5.6-win64.zip ... ok.
Extracting zstd-v1.5.6-win64.zip ... Could not find 'zstd-v1.5.6-win64'! (error 16)
At C:\Users\LocalUser\Appdata\Local\Scoop\apps\scoop\current\lib\core.ps1:638 char:9
+         throw "Could not find '$(fname $from)'! (error $($proc.ExitCo ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not find ...64'! (error 16):String) [], RuntimeException
    + FullyQualifiedErrorId : Could not find 'zstd-v1.5.6-win64'! (error 16)

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: 5.1.19041.4170

Scoop Configuration

{
    "root_path":  "C:\\Users\\LocalUser\\Appdata\\Local\\Scoop\\",
    "last_update":  "2024-03-28T18:38:21.7049204+00:00",
    "aria2-warning-enabled":  false
}
Zero2key commented 3 months ago

1.5.6 zip content are not the same as 1.5.5,one more layer of compressed packages

ghost commented 3 months ago

I don't know why it fails to extract the package, but I managed to install mingw without problems with :

scoop install main/mingw
pratikpc commented 3 months ago

Should probably work now

zstd had some upstream issues

Check https://github.com/ScoopInstaller/Main/issues/5665#issuecomment-2026927951