sdkman / sdkman-cli

The SDKMAN! Command Line Interface
https://sdkman.io
Apache License 2.0
6.15k stars 631 forks source link

Bug: [Stop! The archive was corrupt and has been removed! Please try installing again.] #1299

Closed rajinder-yadav closed 5 months ago

rajinder-yadav commented 5 months ago

Bug report

Can not install or update Java.

To reproduce

$ sdk upgrade 

Available defaults:
java (local: 21-tem, 11.0.11.j9-adpt, 17.0.3-tem, 21.0.1-tem, 16.0.1.j9-adpt, 11.0.13-tem, 18.0.2-oracle, 17.0.9-tem, 11.0.14-tem, 17.0.1-tem, 17.0.0-tem, 18.0.1-tem; default: 21.0.3-tem)

Use prescribed default version(s)? (Y/n): y

Downloading: java 21.0.3-tem

In progress...

################################################################################ 100.0%

Repackaging Java 21.0.3-tem...
/usr/bin/env: ‘zip’: No such file or directory

Done repackaging...
unzip:  cannot find or open /home/yadav/.sdkman/tmp/java-21.0.3-tem.zip, /home/yadav/.sdkman/tmp/java-21.0.3-tem.zip.zip or /home/yadav/.sdkman/tmp/java-21.0.3-tem.zip.ZIP.

Stop! The archive was corrupt and has been removed! Please try installing again.

System info

Operating System: openSUSE Tumbleweed 20240622 KDE Plasma Version: 6.1.0 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.1 Kernel Version: 6.9.5-1-default (64-bit) Graphics Platform: X11 Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor Memory: 62.7 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2 Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7A38 System Version: 8.0

rajinder-yadav commented 5 months ago

I just realized I don't have "zip" installed after a fresh install of my OS, closing!