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

sometime wrong when i use proot on andriod10 (huawei mate30 Pro with emui10.0.0.182) #95

Closed
black-A opened this issue Feb 4, 2020 · 8 comments

Comments

@black-A
Copy link

black-A commented Feb 4, 2020

$apt install proot -y
......
.....

$termux-chroot
proot error: execve("/usr/bin/bash"): No such file or directory
proot info: It seems that termux-exec is active and is prepending /data/data/com.termux/... to executable paths
If this is path is not available inside proot, please "unset LD_PRELOAD"
fatal error: see proot --help.
proot error: trying to remove a directory outside of '/data/data/com.termux/files/usr/tmp', please report this error.
proot error: can't chmod '/data/data/com.termux/files/usr/tmp/proot-19463-v1QCNP': No such file or directory

so ,what is going on?I am just a newbie。

@oxr463
Copy link

oxr463 commented Feb 4, 2020

If this is path is not available inside proot, please "unset LD_PRELOAD"

Did you try this?

@black-A
Copy link
Author

black-A commented Feb 4, 2020

thanks for you help@oxr463,do you mean just Enter this command (unset LD_PRELOAD)directly?
I just tried it ,and Now it looks like this:

$ unset LD_PRELOAD
$
$
$ termux-chroot
proot error: execve("/usr/bin/bash"): Function not implemented
proot info: possible causes:

  • the program is a script but its interpreter (eg. /bin/sh) was not found;
  • the program is an ELF but its interpreter (eg. ld-linux.so) was not found;
  • the program is a foreign binary but qemu was not specified;
  • qemu does not work correctly (if specified);
  • the loader was not found or doesn't work.
    fatal error: see proot --help.
    proot error: trying to remove a directory outside of '/data/data/com.termux/files/usr/tmp', please report this error.
    proot error: can't chmod '/data/data/com.termux/files/usr/tmp/proot-32151-QMa1Cw': No such file or directory
    $

if I did someting wrong?thanks again!

@fornwall
Copy link
Member

fornwall commented Feb 9, 2020

Is this a general problem with running proot under Android 10? Reproduced by me on a Mate 20 pro, by @Grimler91 on a samsung device and also by me on an Android 10 emulator.

Seems to be -ARGS="$ARGS -r $PREFIX/.. which is not working?

Using this diff: https://gist.github.com/fornwall/e2cb15e77f49d3ff176ab5f2fb8b4caa, termux-chroot starts to work somewhat (no /bin folder, and / cannot be listed as it's the root of the Android file system).

@michalbednarski Any idea what is going on?

@haimn
Copy link

haimn commented Feb 11, 2020

Happens to me too on Galaxy s9+ Android 10, clean install.

@michalbednarski
Copy link
Collaborator

On Android 10 /system/bin/linker (which is neccessary to execute dynamically linked executables) has became symlink to /apex/com.android.runtime/bin/linker, it will be neccessary to add /apex to bind mounts.

@haimn
Copy link

haimn commented Feb 11, 2020

@michalbednarski I can confirm adding:
ARGS="$ARGS -b /apex:/apex" to termux-chroot fixed the problem, thanks!

@azadlaw11
Copy link

@michalbednarski can u explain i dont understand

@RalfWerner
Copy link

RalfWerner commented Mar 2, 2020

it will be neccessary to add /apex to bind mounts

@michalbednarski -b /apex solves the problem of termux with compileSdkVersion 28 but not with 29 or android-R on a Q10/R11 device. Has anyone successfully checked this yet?

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

7 participants