Hi,
The installation of elasticsearch on a debian 10 using the repo hangs forever. The culprits seems to be the Java version checker:
root 3977 3.4 1.9 261376 160304 pts/0 Sl+ 10:41 0:01 \_ aptitude install elasticsearch
root 4079 0.0 0.1 21836 9892 pts/1 Ss+ 10:41 0:00 \_ /usr/bin/dpkg --status-fd 46 --configure --pending
root 4080 0.0 0.0 6956 840 pts/1 S+ 10:41 0:00 \_ sh -c (test -x /usr/lib/needrestart/dpkg-status && /usr/lib/needrestart/dpkg-status || cat > /dev/null)
root 4081 0.0 0.0 6956 188 pts/1 S+ 10:41 0:00 | \_ sh -c (test -x /usr/lib/needrestart/dpkg-status && /usr/lib/needrestart/dpkg-status || cat > /dev/null)
root 4082 0.0 0.0 6956 1980 pts/1 S+ 10:41 0:00 | \_ /bin/sh /usr/lib/needrestart/dpkg-status
root 4085 0.0 0.0 11328 3660 pts/1 S+ 10:41 0:00 \_ /bin/bash -e /var/lib/dpkg/info/elasticsearch.postinst configure
root 4089 0.0 0.0 11196 3408 pts/1 S+ 10:41 0:00 \_ /bin/bash /usr/share/elasticsearch/bin/elasticsearch-keystore upgrade
root 4091 0.0 0.0 11196 3600 pts/1 S+ 10:41 0:00 \_ /bin/bash /usr/share/elasticsearch/bin/elasticsearch-cli upgrade
root 4098 0.2 0.4 428732 35920 pts/1 Sl+ 10:41 0:00 \_ /usr/share/elasticsearch/jdk/bin/java -cp /usr/share/elasticsearch/lib/* org.elasticsearch.tools.java_version_checker.JavaVersionChecker
If I execute the line by hand, it also hangs forever.
UPDATE: Using the java from Debian, I receive the error:
Error: Could not find or load main class .usr.share.elasticsearch.lib.elasticsearch-cli-7.4.0.jar
Caused by: java.lang.ClassNotFoundException: /usr/share/elasticsearch/lib/elasticsearch-cli-7/4/0/jar
The installation of 7.3.2 succeeds.
Best,
Robert