I am trying to deploy our product to the new app platform, but our node-js app requires some native dependencies (graphics magic, cario, etc..).

The issue is that the node-js environment slug does not allow running apt-get install, or sudo apt-get install. I’m not sure if it’s related to the fact that you are not including the heroku apt buildpack, https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-apt

apt-get install receives:
Reading package lists…
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied

sudo apt-get install receives:
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the ‘nosuid’ option set or an NFS file system without root privileges?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Are there any news about this request? I’m getting the same error when I try to install linux packages using apt-get install …

👋 @rolltable

I don’t have a public release date on it yet, but the team is working on this.

For now, you can deploy via dockerfile where apt install will work.

  • Thanks, for the response.

    As a note on my personal experience here… docker builds seem incredibly flakey right now and it’s a really bad experience. I’ve been doing trial and error for hours trying to get it to build but it always fails with a “generic error”.

    I finally recreated my app and brought in piece by piece and now my dockerfile builds in the system. Turns out I was always screwed and for some reason the whole app was poisoned causing my docker build to fail.

    This deployment process just fails with errors that are not explained by https://www.digitalocean.com/docs/app-platform/references/error-codes/ because the error isn’t shown anywhere, it just says, “error”.

    In any case, im still trudging along here. I look forward to when I don’t need to use a dockerfile for this, unless dockerfile builds become more reliable.