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
257 stars 88 forks source link

Failed to install temurin17-jdk:17.0.9-9.1 #497

Closed xd-mau5 closed 10 months ago

xd-mau5 commented 10 months ago

Bug Report

Package Name: temurin17-jdk

Current Behaviour

A error happens when is extracting

Expected Behaviour

Install without any problems

Additional context/output

scoop update temurin17-jdk
ERROR 'temurin17-jdk' isn't installed correctly.
temurin17-jdk: 17.0.8-101 -> 17.0.9-9.1
Updating one outdated app:
Updating 'temurin17-jdk' (17.0.8-101 -> 17.0.9-9.1)
Downloading new version
Loading OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.zip from cache
Checking hash of OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.zip ... ok.
Uninstalling 'temurin17-jdk' (17.0.8-101)
Installing 'temurin17-jdk' (17.0.9-9.1) [64bit] from java bucket
Loading OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.zip from cache
Extracting OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.zip ... Exception: C:\Users\elect\scoop\apps\scoop\current\lib\core.ps1:638
Line |
 638 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'jdk-17.0.9+9.1'! (error 16)

Possible Solution

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: 7

Additional software:

Scoop Configuration

{
  "last_update": "2023-10-27T11:57:01.2179764-05:00",
  "virustotal_api_key": "",
  "aria2-enabled": false,
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}
TamamoNoMae13 commented 10 months ago

Elaborate the bug: Debug log:

DEBUG[1698509256] $stdoutTask.Result = -------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows
-------------------------------------------------------------------------------

  Started : 28 October 2023 23:07:36
   Source : C:\Users\hungmn\scoop\apps\temurin17-jdk\17.0.9-9.1\jdk-17.0.9+9.1\
     Dest : C:\Users\hungmn\scoop\apps\temurin17-jdk\17.0.9-9.1\

    Files : *.*

  Options : *.* /S /E /DCOPY:DA /COPY:DAT /MOVE /R:1000000 /W:30

------------------------------------------------------------------------------

2023/10/28 23:07:36 ERROR 2 (0x00000002) Accessing Source Directory C:\Users\hungmn\scoop\apps\temurin17-jdk\17.0.9-9.1\jdk-17.0.9+9.1\
The system cannot find the file specified. -> C:\Users\hungmn\scoop\apps\scoop\current\lib\core.ps1:637:9
C0Nd3Mnd commented 10 months ago

Same problem:

> scoop install temurin17-jdk
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
WARN  To disable this warning, run 'scoop config aria2-warning-enabled false'.
Installing 'temurin17-jdk' (17.0.9-9.1) [64bit] from java bucket
Loading OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.zip from cache.
Checking hash of OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.zip ... ok.
Extracting OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.zip ... Exception: C:\Users\bird\scoop\apps\scoop\current\lib\core.ps1:638
Line |
 638 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'jdk-17.0.9+9.1'! (error 16)

EDIT: #499 does indeed fix this.

junlongzzz commented 10 months ago

Why is the pr merge so slow ?_?

zsuatem commented 10 months ago

Looking at what's been going on with scoop for a while now, it looks like it's dying. ;(

ibrudiiv commented 10 months ago

@zsuatem What do you mean?

Also #499 does indeed work. I just manually edited the json file(s).