Revert "do not use apt-get because this project doesn't use JNI"

This reverts commit 36dedfd1b75c5ffd07418d30227f057ae3e444c5.