Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: mounting /dev/pts: Operation not permitted #7791

Closed
xunfeng1980 opened this issue Feb 8, 2023 · 3 comments
Closed

error: mounting /dev/pts: Operation not permitted #7791

xunfeng1980 opened this issue Feb 8, 2023 · 3 comments
Labels
bug installer regression Something doesn't work anymore

Comments

@xunfeng1980
Copy link

Describe the bug

sudo HOME=/root /nix/store/lsr79q5xqd9dv97wn87x12kzax8s8i1s-nix-2.13.2/bin/nix-env -i /nix/store/lsr79q5xqd9dv97wn87x12kzax8s8i1s-nix-2.13.2 --show-trace
installing 'nix-2.13.2'
error:
… while setting up the build environment

   error: mounting /dev/pts: Operation not permitted

Steps To Reproduce

Steps to reproduce the behavior:
Ubuntu 20.04 install nix

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
@roberth
Copy link
Member

roberth commented Feb 9, 2023

Thanks for reporting. This appears to be a problem with the nix installer setting up its sandbox on ubuntu. I'll move the issue from nixpkgs to nix.
I suspect that this may have worked before #3600 was merged, so Nix <= 2.12.0.

@roberth roberth transferred this issue from NixOS/nixpkgs Feb 9, 2023
@roberth roberth added bug installer regression Something doesn't work anymore labels Feb 9, 2023
@thufschmitt
Copy link
Member

Discussed during the Nix maintainers meeting on 2024-02-16.

@xunfeng1980 is that still an issue? If so, can you try with --option sandbox false?

Old and not actionable atm.

  • @roberth: might be due to an old kernel (Ubuntu 20.03, so old)
  • @thufschmitt: Might be our “can we sandbox” check that's not exhaustive enough and doesn't detect that it's not possible in that case
  • Decision: Add a comment on the issue asking for status, and react based on that

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-02-16-nix-team-meeting-minutes-124/39870/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug installer regression Something doesn't work anymore
Projects
None yet
Development

No branches or pull requests

4 participants