ScoopInstaller / Main

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

[Bug]: Fail to install 7zip #5952

Open fredrikcarlbom opened 5 days ago

fredrikcarlbom commented 5 days ago

Prerequisites

Package Name

7zip

Expected/Current Behaviour

I try to install 7zip but it fails to decompress with exit code 1622. I had an existing installation of scoop, it was working but when it failed to update 7zip using scoop update 7zip, then I uninstalled 7zip and now I can't install it.

Steps to Reproduce

PS> scoop install 7zip
Installing '7zip' (24.07) [64bit] from 'main' bucket
Loading 7z2407-x64.msi from cache
Checking hash of 7z2407-x64.msi ... ok.
Extracting 7z2407-x64.msi ... ERROR Exit code was 1622!
Failed to extract files from C:\Users\fr-car\scoop\apps\7zip\24.07\7z2407-x64.msi.
Log file:
  ~\scoop\apps\7zip\24.07\msi.log

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=7zip%4024.07%3a+decompress+error

Possible Solution

I have also tried scoop install 7zip@24.05 or scoop install 7zip@23.01 with same result. The folder ~\scoop\apps\7zip\<version>\ only contains the .msi-file, no .log-file.

Scoop and Buckets Version

PS> scoop --version
Current Scoop version:
d337bb1f (HEAD -> master, tag: v0.4.2, origin/master, origin/HEAD) chore(release): Bump to version 0.4.2 (#5964)

'main' bucket:
1cd5bcef5 (HEAD -> master, origin/master, origin/HEAD) k6: Update to version 0.52.0

'extras' bucket:
4ec0ad6d7 (HEAD -> master, origin/master, origin/HEAD) teamviewer: Update to version 15.55.3

'nerd-fonts' bucket:
128ad78f (HEAD -> master, origin/master, origin/HEAD) SarasaGothic: Update to version 1.0.14

'snyk' bucket:
e612f8e (HEAD -> master, origin/master, origin/HEAD) Upgraded to latest Snyk version skip-checks: true

Scoop Config

PS> scoop config

last_update         scoop_branch scoop_repo
-----------         ------------ ----------
2024-06-25 17:44:26 master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

PS> scoop checkup 7zip
WARN  LongPaths support is not enabled.
  You can enable it by running:
    sudo Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
  (Requires 'sudo' command. Run 'scoop install sudo' if you don't have it.)
WARN  Windows Developer Mode is not enabled. Operations relevant to symlinks may fail without proper rights.
  You may read more about the symlinks support here:
  https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/
WARN  '7-Zip' is not installed! It's required for unpacking most programs. Please Run 'scoop install 7zip'.
WARN  Found 3 potential problems.