a month ago
Build process of one of my projects is not being successful do to this: "install apt packages: libatomic1". T
2 Replies
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • about 1 month ago
a month ago
Fix: Add this to your railway.toml or nixpacks.toml
[phases.setup]
aptPkgs = ["libatomic1"]
Or if you have a Dockerfile, add:
RUN apt-get update && apt-get install -y libatomic1 --no-install-recommends && rm -rf /var/lib/apt/lists/*
Or set via Railway dashboard:
Service → Settings → Build → Add environment variable:
NIXPACKS_APT_PKGS=libatomic1
The nixpacks.toml fix is the cleanest — copy paste and redeploy
hope it helps
a month ago
Small update: if this service is using Railway’s current Railpack builder, the env var name is different from the older Nixpacks examples.
Use this service variable:
RAILPACK_BUILD_APT_PACKAGES=libatomic1
Then redeploy.
If the package is needed at runtime too, not only while building native dependencies, also add:
RAILPACK_DEPLOY_APT_PACKAGES=libatomic1
Railway’s current build docs list these as the supported apt package variables for Railpack: