Install elasticsearch 6.5.1 on Debian 9 fails with sudo dpkg -i elasticsearch-6.5.1.deb

(Stanislas) #1

$ sudo dpkg -i elasticsearch-6.5.1.deb
(Reading database ... 59595 files and directories currently installed.)
Preparing to unpack elasticsearch-6.5.1.deb ...
dpkg: error processing archive elasticsearch-6.5.1.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:

(Stanislas) #2

need install it before ...

$ sudo aptitude install openjdk-8-jdk-headless net-tools wget

(Nik Everett) #3

Indeed. This is a nasty problem that we have because we make one deb and one rpm, but al of the deb and rpm distributions have their own unique ways of depending on java so we don't declare java as a dependency. That was just annoying for years, but it is actively nasty now that we use java in the preinst phase. I'm sorry for this.

(system) closed #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.