void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

XBPS install of openjdk fails

Open Mirodin opened this issue 8 years ago • 5 comments

System

  • system: *LXQT version *kernel: 4.17.19_1
  • package:
    *openjdk-jre 8u182b00_1

Expected behavior

Install succeeds.

Actual behavior

Installation of openjdk works fine but it seems to create an empty bin inside usr/lib/jvm/openjdk which causes openjdk-jre installattion to fail:

ERROR: openjdk-jre-8u182b00_1: [unpack] failed to extract file `./usr/lib/jvm/openjdk': Directory not empty
ERROR: openjdk-jre-8u182b00_1: [unpack] failed to extract files: Directory not empty
ERROR: openjdk-jre-8u182b00_1: [unpack] failed to unpack files from archive: Directory not empty

Steps to reproduce the behavior

  1. Fresh install of void lxqt version
  2. Run xbps-install -uS and restart to get up to date
  3. Run xbps-install -S openjdk openjdk-jre

Mirodin avatar Aug 26 '18 10:08 Mirodin

Interesting. xbps-install openjdk (succeeds, installs openjdk-jre as dependency) xbps-install openjdk-jre openjdk (succeeds) xbps-install openjdk openjdk-jre (fails)

It appears in the last case that openjdk installation initially creates "/usr/lib/jvm/openjdk" directory BEFORE openjdk-jre has a chance to be extracted.

For now, you may try (as root): xbps-remove -RvyF openjdk openjdk-jre rm -r /usr/lib/jvm xbps-install -S openjdk

This should install openjdk-jre successfully as well

furryfixer avatar Aug 26 '18 19:08 furryfixer

Thanks, but I already solved this for me before coming here by sudo rmdir /usr/lib/jvm/openjdk/bin which succeeds since the directory is empty. Afterwards installation of openjdk-jre works fine. Just opened the issue as it seems to be a bug/misconfiguration of openjdk.

Mirodin avatar Aug 27 '18 05:08 Mirodin

There doesn't seem to be any issues with the current version of openjdk that I can see. Has anyone else been able to reproduce this? Think we would've recieved a lot more reports about this if it was still wide spread.

obunden avatar Oct 13 '19 03:10 obunden

I am not on my machine and do not use any Java applications right now so I can not comment if this still persists.

Mirodin avatar Oct 13 '19 07:10 Mirodin

I've been able to reproduce this on my new void linux install just today. I installed void linux, updated with xbps-install -Su and went on installing a few things. Then I installed openjdk and jre with this command: sudo xbps-install -S openjdk openjdk-jre which caused the above error. Cinnamon version with kernel 4.18.17_1

Byebyesky avatar Oct 27 '19 12:10 Byebyesky