Try more idempotent update-alternatives java.