[scripts/ubuntu-init] Depend on java, fix wrong package names.