Installing nix package manager in sandbox - Operation not permitted error
@rodnymolina is already working on this.
Since Nov 30, 2022.
- Dominant language
- Shell
- Stars
- 3.9k
- Forks
- 230
- Avg merge
- 7h 48m
- Merged PRs (30d)
- 3
Description
os=ubuntu 20.04, kernel=5.4, docker=20.10.8, sysbox=0.5.2 EE
Attempting to install the "nix" package manager within a system container sandbox results in the following error.
error: Operation not permitted
/tmp/nix-binary-tarball-unpack.7LnOR81LIv/unpack/nix-2.11.1-x86_64-linux/install: unable to register valid paths
Installation instructions for "nix".
Example commands (each command below individually reproduces the error).
- curl -L https://nixos.org/nix/install | sh
- docker run --privileged nixos/nix nix --version
- sh <(curl -L https://nixos.org/nix/install) --daemon
Multi user installation instructions refer to specific user ID's and group ID's.
The multi-user installation of Nix will create build users between the user IDs 30001 and 30032, and a group with the group ID 30000. You can run this under your usual user account or root. The script will invoke sudo as needed.
And a link to a similar issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.