0

I'm trying to install JDownloader2 on my Pi and I'm following this tutorial.

But when I run:

java -jar /home/pi/jdownloader2/JDownloader.jar

I get:

Segmentation fault

what does this mean? And how can I fix this?

2
  • 1
    I think you might find a few suggestions from this question useful. It's getting on a little, so I'm afraid I can't guarantee that everything in there will still work as intended.
    – goobering
    May 30, 2017 at 15:23
  • @goobering What makes you think the error is related to apt? Jan 29, 2021 at 13:33

2 Answers 2

1

This looks like an internal Java crash. You could try to install several JDK versions (right now there's openjdk-8-jdk to openjdk-11-jdk, plus you might have oracle-javaX-jdk pre-installed), and try them out one by one:

sudo update-alternatives --config java

If one of those works, you're in luck.

0

A segmentation fault could imply the filesystem is corrupt.

If the error is only occurring when you are trying to install packages try running:

sudo rm -rf /var/cache/apt/*.bin

This might solve the problem but its certainly no guarantee. It might be necessary to backup anything important and have a go at reinstalling the OS on the SD card.

The error also could have been caused by you not fully expanding the filesystem to fill the size of the SD card. To check if this is the case or not run:

df -k

This will tell you if rootfs is completely filled or not.

If you do have to start afresh I suggest ensuring you are using a reputable SD card and a decent power supply, at least 5V 2A. Normally power or SD card issues are what lead to a filesystem becoming corrupted.

3
  • I've executed the command same problem
    – ilmincione
    May 30, 2017 at 15:49
  • Ok, could you confirm for me that the segmentation fault error occurs when running other commands in the terminal, or is it just limited to installing packages?
    – Darth Vader
    May 30, 2017 at 18:48
  • 1
    when I install a package there is no error about segmentation fault, this error appear only if I try to execute this command java -jar /home/pi/jdownloader2/JDownloader.jar
    – ilmincione
    May 30, 2017 at 19:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.