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

/system/bin/sh: env: inaccessible or not found #97

Open
hqy6 opened this issue Mar 28, 2023 · 2 comments
Open

/system/bin/sh: env: inaccessible or not found #97

hqy6 opened this issue Mar 28, 2023 · 2 comments

Comments

@hqy6
Copy link

hqy6 commented Mar 28, 2023

Running tsu comes up with this.

@qidian2
Copy link

qidian2 commented Feb 14, 2024

Same problem.
log:
tsu --dbg

  • shift
  • _TSU_CALL=tsu
  • [[ tsu == \s\u\d\o ]]
  • TERMUX_FS=/data/data/com.termux/files
  • TERMUX_PREFIX=/data/data/com.termux/files/usr
  • TERMUX_PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
  • ROOT_HOME=/data/data/com.termux/files/home/.suroot
  • ANDROID_SYSPATHS=/system/bin:/system/xbin
  • EXTRA_SYSPATHS=/sbin:/sbin/bin
  • BB_MAGISK=/sbin/.magisk/busybox
  • log_DEBUG TSU_AS_SUDO
  • [[ '' == true ]]
  • log_DEBUG _TSU_AS_SUDO
  • [[ -z '' ]]
  • SWITCH_USER=
  • declare -A EXP_ENV
  • log_DEBUG _TSU_AS_SUDO
  • [[ '' == true ]]
  • root_shell_helper
  • log_DEBUG root_shell_helper
  • [[ -n '' ]]
  • log_DEBUG ALT_SHELL
  • [[ '' == \s\y\s\t\e\m ]]
  • [[ -n '' ]]
  • [[ -x /data/data/com.termux/files/home/.termux/shell ]]
  • [[ -x /data/data/com.termux/files/usr/bin/bash ]]
  • ROOT_SHELL=/data/data/com.termux/files/usr/bin/bash
  • env_path_helper
  • log_DEBUG env_path_helper
  • log_DEBUG SWITCH_USER
  • [[ -z '' ]]
  • NEW_HOME=/data/data/com.termux/files/home/.suroot
  • EXP_ENV[PREFIX]=/data/data/com.termux/files/usr
  • EXP_ENV[TMPDIR]=/data/data/com.termux/files/home/.suroot/.tmp
  • EXP_ENV[LD_PRELOAD]=/data/data/com.termux/files/usr/lib/libtermux-exec.so
  • [[ -d /data/data/com.termux/files/home/.suroot/.tmp ]]
  • log_DEBUG _TSU_AS_SUDO
  • [[ '' == true ]]
  • NEW_PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
  • log_DEBUG LD_LIBRARY_PATH
  • [[ -n '' ]]
  • ASP=/system/bin:/system/xbin:/sbin:/sbin/bin
  • log_DEBUG PREPEND_SYSTEM_PATH
  • [[ -n '' ]]
  • NEW_PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/system/bin:/system/xbin:/sbin:/sbin/bin
  • EXP_ENV[PATH]=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/system/bin:/system/xbin:/sbin:/sbin/bin
  • EXP_ENV[HOME]=/data/data/com.termux/files/home/.suroot
  • EXP_ENV[TERM]=xterm-256color
  • [[ -z true ]]
  • set +x
  • STARTUP_SCRIPT=/data/data/com.termux/files/usr/bin/bash
  • SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su")
  • [[ -x /sbin ]]
  • SU_BINARY_SEARCH+=("/sbin/su" "/sbin/bin/su")
  • [[ -n '' ]]
  • unset LD_LIBRARY_PATH
  • unset LD_PRELOAD
  • [[ -z true ]]
  • set +x
  • [[ -z '' ]]
    ++ /sbin/su -v
  • [[ R65C33E4F-kitsune:MAGISKSU == *\M\A\G\I\S\K\S\U ]]
  • su_args=("/sbin/su")
  • [[ -z '' ]]
  • [[ -n '' ]]
  • su_cmdline='PATH=/sbin/.magisk/busybox env -i PREFIX=/data/data/com.termux/files/usr LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so HOME=/data/data/com.termux/files/home/.suroot TMPDIR=/data/data/com.termux/files/home/.suroot/.tmp ANDROID_DATA=/data TERM=xterm-256color ANDROID_ROOT=/system PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/system/bin:/system/xbin:/sbin:/sbin/bin /data/data/com.termux/files/usr/bin/bash'
  • su_args+=("-c")
  • exec /sbin/su -c 'PATH=/sbin/.magisk/busybox env -i PREFIX=/data/data/com.termux/files/usr LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so HOME=/data/data/com.termux/files/home/.suroot TMPDIR=/data/data/com.termux/files/home/.suroot/.tmp ANDROID_DATA=/data TERM=xterm-256color ANDROID_ROOT=/system PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/system/bin:/system/xbin:/sbin:/sbin/bin /data/data/com.termux/files/usr/bin/bash'
    /system/bin/sh: env: inaccessible or not found

@blurry-face12
Copy link

i have same problem, how to solve it ?

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

3 participants