osx - Vagrant looking for Java in the wrong directory -


i running vm using vagrant. when try start (provision) vm, keeps giving me following error:

==> default: following packages have unmet dependencies: ==> default:  openjdk-8-jdk : depends: openjdk-8-jre (= 8u141-b15-2~14.04) not going installed ==> default:                  depends: openjdk-8-jdk-headless (= 8u141-b15-2~14.04) not going installed ==> default: e: unable correct problems, have held broken packages. ==> default: update-java-alternatives: directory not exist: /usr/lib/jvm/java-1.8.0-openjdk-amd64 ssh command responded non-zero exit status. vagrant assumes means command failed. output command should in log above. please read output determine went wrong. 

what mean because have java 1.8 on machine. under

/library/java/javavirtualmachines/jdk1.8.0_91.jdk/contents/home 

which found running command in terminal $ /usr/libexec/java_home -v 1.8

how fix this?

the problem not because looking in wrong directory. vagrant trying install openjdk8 , reason can't install openjdk dependencies (apt-get problem). know because started have same problem 2 hours ago.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -