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?
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?
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.
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.
segmentation fault
error occurs when running other commands in the terminal, or is it just limited to installing packages?
– Darth Vader
May 30 '17 at 18:48
java -jar /home/pi/jdownloader2/JDownloader.jar
– ilmincione
May 30 '17 at 19:35
apt
? – Dmitry Grigoryev Jan 29 '21 at 13:33