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

"is not a regular file" error #133

Closed
gwerbin opened this issue Nov 17, 2017 · 3 comments
Closed

"is not a regular file" error #133

gwerbin opened this issue Nov 17, 2017 · 3 comments

Comments

@gwerbin
Copy link

gwerbin commented Nov 17, 2017

What am I doing wrong?

curl -sL -o ~/.local/bin/proot-x86_64 'https://github.com/proot-me/proot-static-build/blob/master/static/proot-x86_64?raw=true'
chmod +x ~/.local/bin/proot-x86_64
mkdir ~/.local/nix
~/.local/bin/proot-x86_64 ~/.local/nix
# proot error: '¯\_(ツ)_/¯/.local/nix' is not a regular file
# fatal error: see `proot-x86_64 --help`.

This is on Linux kernel 3.10.0 on an x86_64 system, with a non-administrator account.

edit: it seems like the instructions from https://nixos.wiki/wiki/Nix_Installation_Guide#PRoot are out of date, as it looks like the CLI is different from what those expect. Not sure if I should close this. The closest I've gotten was proot -S / /bin/sh but that doesn't appear to act like a chroot at all -- e.g. pwd doesn't show / it shows whatever directory I was already in.

@gwerbin gwerbin closed this as completed Nov 17, 2017
@jluttine
Copy link

jluttine commented Jan 3, 2018

@gwerbin Did you manage to get it working? I'm following those NixOS wiki instructions and have the same issue so I was wondering if there is some way to use PRoot..

@ghost
Copy link

ghost commented Jan 15, 2018

Looks like the -b option is needed:

mkdir -m 0755 ~/.nix
./proot_5.1.1_x86_64_rc2--no-seccomp -b ~/.nix:/nix

Now it should be possible to run the standard nix package manager install instructions

N.B. Be sure to fully logout after installing nix so that .nix-profile is loaded.

@gwerbin
Copy link
Author

gwerbin commented Jan 15, 2018

@ignesco it worked, thank you!

But then I got this error:

/nix/store/pkc7g36m95jymw3ga2i7pwrykcfs78il-curl-7.57.0-bin/bin/curl: symbol lookup error: /nix/store/pkc7g36m95jymw3ga2i7pwrykcfs78il-curl-7.57.0-bin/bin/curl: undefined symbol: curl_mime_type
Use of uninitialized value $url in scalar chomp at /nix/store/gy4yv67gv3j6in0lalw37j353zdmfcwm-nix-1.11.16/bin/nix-channel line 111.
Use of uninitialized value $url in concatenation (.) or string at /nix/store/gy4yv67gv3j6in0lalw37j353zdmfcwm-nix-1.11.16/bin/nix-channel line 112.
/nix/store/gy4yv67gv3j6in0lalw37j353zdmfcwm-nix-1.11.16/bin/nix-channel: unable to check ‘’

Not sure if the installation worked fully or not. Also not sure this is PRoot related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants