Fixing segmentation fault with Java on Linux (Debian based)

Discussion in 'Systems Administration' started by Zastrix, Apr 25, 2019.

  1. Currently I am running a server for deving on some pretty old hardware. I installed AntiX Linux on to it (it is Ubuntu based / Debian based). Either way I constantly had segmentation faults in Java and couldn't start anything. Tried Java SE, OpenJDK 8 to 11 and nothing worked. Then I remembered this thread when I was installing Java 8 on the latest Pop!_OS. It worked like a charm!

    TL;DR:

    1- download:
    Code (Text):
    wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb
    wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_amd64.deb
    wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_amd64.deb
    wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb
    2 - install:
    Code (Text):
    sudo dpkg -i openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb
    3 - fix broken dependencies:
    Code (Text):
    sudo apt install -f
    You may need to repeat step 2. after step 3.