Syntax error: "elif" unexpected (expecting "then")

uname -a
Linux jon 3.16.0-10-amd64 #1 SMP Debian 3.16.70-1 (2019-07-22) x86_64 GNU/Linux

java -version:
java version “12.0.2” 2019-07-16
Java™ SE Runtime Environment (build 12.0.2+10)
Java HotSpot™ 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

javac -version:
javac 12.0.2

echo $JAVA_HOME:

cd /home/jon/Downloads/autopsy_4.12.0:
**: not foundsh: 5: **
**: not foundsh: 9: **
**: not foundsh: 10: **
Checking prerequisites and preparing Autopsy:
**: not foundsh: 15: ** 22: Syntax error: “elif” unexpected (expecting “then”)

Linux will need The Sleuth Kit [Java .deb Debian package]

apt-get install sleuthkit-java:
Lendo listas de pacotes… Pronto
**Construindo árvore de dependências **
Lendo informação de estado… Pronto
E: Impossível encontrar o pacote sleuthkit-java

Maybe it’s not using Bash your system. What if you type in ‘bash’ instead of ‘sh’.

1 Like

Hey Brian,

the link is realy unavailable.

Try it:

I’ve got same “elif” issue and same link unavailable.

I believe the problem with the script is that it has Windows style CRLF endings. Try running dos2unix on it.

Dos2Unix done! It works now!

In Linux if I click on Image Gallery, Autopsy closes itself, it crashes…