Java8-runtime-headless dependency for Scala-2.12.2 with .deb and rpm

Viewed 4694

I am trying to install Scala-2.12.2 on Ubuntu16.04 and Ubuntu16.10 on Linux using the .deb . While installing the .deb, I am getting the error that " scala depends on java8-runtime-headless; however: Package java8-runtime-headless is not installed."

This dependency is not required when I try to intsall Scala-2.12.2 on Red Hat Enterprise Linux (RHEL) using the scala rpm.Any idea why there is a dependency difference in the .deb and rpm format.

I am using IBM java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr4fp5-20170421_01(SR4 FP5)) for the build.

3 Answers

I also had Java 8 manually installed and got exactly the same error message. I fixed it by running sudo apt --fix-broken install. It identified the missing dependencies (including openjdk-8-jre-headless) and installed them. Everthing is fine now.

Related