We do not support using apt-get install when using buildpacks.
apt-get install
If your app requires build based dependencies, we recommend bundling the app into a Dockerfile, including your dependencies, and then deploying the app using the Docker image.