Skip to content

proot error: execve( "/usr/bin/sh") Permission denied #338

@sergichakov

Description

@sergichakov

#After clean install of termux from google-play

echo "deb [trusted=yes] https://packages.termux.org/apt/termux-main/ stable main" > /data/data/com.termux/files/usr/etc/apt/sources.list
pkg update
pkg upgrade
pkg install strace
pkg install proot
unset LD_PRELOAD
export PROOT_NO_SECCOMP=1
proot  -0 /data/data/com.termux/files/usr/bin/sh

proot error: execve("/data/data/com.termux/files/usr/bin/sh"): Permission denied
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.
strace -f sh -c 'unset LD_PRELOAD ; PROOT_NO_SECCOMP=1 proot -0 ../usr/bin/sh'

pastebin result of strace
It happens with every executable from /usr/bin directory

termux-info

grep: /data/data/com.termux/files/usr/etc/apt/sources.list.d/*.sources: No such file or directory
Termux Variables:
TERMUX_EXEC__PROC_SELF_EXE=/data/data/com.termux/files/usr/bin/termux-info
TERMUX_VERSION=googleplay.2026.02.11
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:

Updatable packages:
All packages up to date
termux-tools version:
3.0.9
Android version:
13
Kernel build information:
Linux localhost 5.10.177-android12-9-00001-g219d8dfbba07-ab10551810 #1 SMP PREEMPT Tue Jul 18 17:01:24 UTC 2023 aarch64 Android
Device manufacturer:
OSCAL
Device model:
TIGER 12
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

uname -a

Linux localhost 5.10.177-android12-9-00001-g219d8dfbba07-ab10551810 #1 SMP PREEMPT Tue Jul 18 17:01:24 UTC 2023 aarch64 Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions