nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

error: unable to load seccomp BPF program: Invalid argument

Open matttrach opened this issue 1 year ago • 3 comments

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `configure_nix` errored
   3: Action `setup_default_profile` errored
   4: Failed to execute command with status 1 `HOME="/root" NIX_SSL_CERT_FILE="/nix/store/sp6cj9vw557zpfirwvvix36p58av82dj-nss-cacert-3.95/etc/ssl/certs/ca-bundle.crt" "/nix/store/x603vg66akk9hzc6dcrjpjk2hj4mci8s-nix-2.20.5/bin/nix-env" "-i" "/nix/store/x603vg66akk9hzc6dcrjpjk2hj4mci8s-nix-2.20.5"`, stdout: 
      stderr: installing 'nix-2.20.5'
      error:
             … while setting up the build environment

             error: unable to load seccomp BPF program: Invalid argument


Metadata

key value
version 0.17.1
os linux
arch x86_64

matttrach avatar Mar 20 '24 21:03 matttrach

We usually see this when trying to install inside containers. Does this section in the README help: https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#in-a-container

If not, you might also want to look at this comment: https://github.com/DeterminateSystems/nix-installer/issues/324#issuecomment-1491888268

cole-h avatar Mar 21 '24 14:03 cole-h