ScoopInstaller / Java

📦 A bucket for Scoop, for Oracle Java, OpenJDK, Eclipse Temurin, IBM Semeru, Zulu, ojdkbuild, Amazon Corretto, BellSoft Liberica, SapMachine and Microsoft JDK.
https://scoop.sh
The Unlicense
262 stars 90 forks source link

ojdkbuild8@1.8.0.332-1.b09: decompress error #418

Closed tiantao433 closed 2 years ago

tiantao433 commented 2 years ago

7zip.log

error in log: file path has two '/'

se35710 commented 2 years ago

Have you tried to apply the fix described in #72?

tiantao433 commented 2 years ago

scoop config MSIEXTRACT_USE_LESSMSI $true scoop uninstall ojdkbuild8 scoop install ojdkbuild8

error still occurs

Vixb1122 commented 2 years ago

me too!

se35710 commented 2 years ago

What does scoop checkup output?

Vixb1122 commented 2 years ago

@se35710 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.) ERROR 'dark' is not installed! It's required for unpacking installers created with the WiX Toolset. Please run 'scoop install dark' or 'scoop install wixtoolset'. WARN Found 2 potential problems.

se35710 commented 2 years ago

Enable LongPaths as suggested by scoop checkup, uninstall and install again.

se35710 commented 2 years ago

@tiantao433 Please check if LongPaths was the issue for you too. If not, please reopen this issue.

Vixb1122 commented 2 years ago

still

❯❯ ~  13:17 scoop checkup
No problems identified!
❯❯ ~  13:17 scoop add ojdkbuild8
WARN  Purging previous failed installation of ojdkbuild8.
ERROR 'ojdkbuild8' isn't installed correctly.
Removing older version (1.8.0.332-1.b09).
'ojdkbuild8' was uninstalled.
Installing 'ojdkbuild8' (1.8.0.332-1.b09) [64bit] from java bucket
Loading java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64.zip from cache
Checking hash of java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64.zip ... ok.
Extracting java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64.zip ... ERROR Exit code was 2!
Failed to extract files from C:\Scoop\apps\ojdkbuild8\1.8.0.332-1.b09\java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64.zip.
Log file:
  C:\Scoop\apps\ojdkbuild8\1.8.0.332-1.b09\7zip.log

log:

7-Zip 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15

Scanning the drive for archives:
1 file, 176900976 bytes (169 MiB)

Extracting archive: C:\Scoop\apps\ojdkbuild8\1.8.0.332-1.b09\java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64.zip
--
Path = C:\Scoop\apps\ojdkbuild8\1.8.0.332-1.b09\java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64.zip
Type = zip
Physical Size = 176900976

Sub items Errors: 3

Archives with Errors: 1

Sub items Errors: 3
ERROR: Cannot create folder : C:\Scoop\apps\ojdkbuild8\1.8.0.332-1.b09\\java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64\missioncontrol\features\org.openjdk.jmc.feature.flightrecorder_7.1.1.202205031444\META-INF\maven\org.openjdk.jmc\org.openjdk.jmc.feature.flightrecorder
ERROR: Cannot open output file : 文件名、目录名或卷标语法不正确。 : C:\Scoop\apps\ojdkbuild8\1.8.0.332-1.b09\\java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64\missioncontrol\features\org.openjdk.jmc.feature.flightrecorder_7.1.1.202205031444\META-INF\maven\org.openjdk.jmc\org.openjdk.jmc.feature.flightrecorder\pom.properties
ERROR: Cannot open output file : 文件名、目录名或卷标语法不正确。 : C:\Scoop\apps\ojdkbuild8\1.8.0.332-1.b09\\java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64\missioncontrol\features\org.openjdk.jmc.feature.flightrecorder_7.1.1.202205031444\META-INF\maven\org.openjdk.jmc\org.openjdk.jmc.feature.flightrecorder\pom.xml
tiantao433 commented 2 years ago

I update powershell to 7.2, the error does not occur. previous powershell version is 5.1

image

tiantao433 commented 2 years ago

In CMD, error does not occur too

Vixb1122 commented 2 years ago

7.2 is ok.

se35710 commented 2 years ago

Bug is verified on PowerShell 5. Must be an upstream error. Will submit issue at Scoop core.