Closed tiantao433 closed 2 years ago
Have you tried to apply the fix described in #72?
scoop config MSIEXTRACT_USE_LESSMSI $true scoop uninstall ojdkbuild8 scoop install ojdkbuild8
error still occurs
me too!
What does scoop checkup
output?
@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.
Enable LongPaths as suggested by scoop checkup
, uninstall and install again.
@tiantao433 Please check if LongPaths was the issue for you too. If not, please reopen this issue.
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
I update powershell to 7.2, the error does not occur. previous powershell version is 5.1
In CMD, error does not occur too
7.2 is ok.
Bug is verified on PowerShell 5. Must be an upstream error. Will submit issue at Scoop core.
7zip.log
error in log: file path has two '/'