Java icon indicating copy to clipboard operation
Java copied to clipboard

[email protected]: decompress error

Open tiantao433 opened this issue 2 years ago • 2 comments

7zip.log

error in log: file path has two '/'

tiantao433 avatar Aug 17 '22 06:08 tiantao433

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

se35710 avatar Aug 17 '22 08:08 se35710

scoop config MSIEXTRACT_USE_LESSMSI $true scoop uninstall ojdkbuild8 scoop install ojdkbuild8

error still occurs

tiantao433 avatar Aug 17 '22 09:08 tiantao433

me too!

Vixb1122 avatar Oct 10 '22 07:10 Vixb1122

What does scoop checkup output?

se35710 avatar Oct 11 '22 11:10 se35710

@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.

Vixb1122 avatar Oct 11 '22 13:10 Vixb1122

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

se35710 avatar Oct 11 '22 14:10 se35710

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

se35710 avatar Oct 11 '22 14:10 se35710

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

Vixb1122 avatar Oct 12 '22 05:10 Vixb1122

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

image

tiantao433 avatar Oct 12 '22 07:10 tiantao433

In CMD, error does not occur too

tiantao433 avatar Oct 12 '22 07:10 tiantao433

7.2 is ok.

Vixb1122 avatar Oct 12 '22 10:10 Vixb1122

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

se35710 avatar Oct 14 '22 16:10 se35710