我已经在计算机上安装了 Java 7 和 Java 8,当我更改环境变量时,java -version 返回正确的版本。当我使用 deb 安装 Logstash 时,我收到以下消息:
dpkg: dependency problems prevent configuration of logstash:
logstash depends on java7-runtime-headless | java6-runtime-headless | j2re1.7; however:
Package java7-runtime-headless is not installed.
Package java6-runtime-headless is not installed.
Package j2re1.7 is not installed.
dpkg: error processing package logstash (--install):
dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
logstash
我尝试安装这些 Java 版本,但没有成功。有什么想法吗?