[Samsung Galaxy Tab S4 Questions & Answers] _Omicron_:
Installed successfully Magisk26.1 and TWRP using WETA-TF5-Kernel on Android 10. Then flashed Kali-generic from twrp. After reboot I can update Nethunter app from F-Droid (2023.3) but not NetHunter Terminal. It fails with "error -8 the new package is requested a shared user which is already installed on the device and does not have a matching signature". I tried to remove the shared user from packages.xml, but after a reboot it remains there. So I got the NetHunter-Terminal-Code from Git and compiled my own. I could install that Version but now when I open the Terminal is shows:

exec("/data/datacom.offsec.nhterm/files/usr/bin/kali"): No such file or directory

I tried around in a SU-Shell and got a strange behaviour. I cannot execute the script from bash, but when I execute all the lines from the script it works:

bash-5.2# ls -lah
total 768K
drwx------ 2 u0_a238 u0_a238 4.0K 2023-08-25 14:35 .
drwx------ 4 u0_a238 u0_a238 4.0K 2023-08-25 14:35 ..
-rwxr-xr-x 1 u0_a238 u0_a238 648 2023-08-25 14:35 android-su
-rwxr-xr-x 1 u0_a238 u0_a238 1.4M 2023-08-25 14:35 bash
-rwxr-xr-x 1 u0_a238 u0_a238 1.0K 2023-08-25 14:35 kali
bash-5.2#
bash-5.2# ./kali
bash: ./kali: cannot execute: required file not found
bash-5.2# cat ./kali
#!/data/data/com.offsec.nhterm/files/usr/bin/bash
# Version: 1.0.2

# export path for android bins/tools
export PATH=/data/data/com.offsec.nhterm/files/home/.nhterm/script:/data/data/com.offsec.nhterm/files/usr/bin:/data/data/com.offsec.nhterm/files/usr/sbin:/sbin:/system/bin:/system/xbin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/odm/bin:/vendor/bin:.

SU1=$(which su)
SU2="$SU1 -c $@"

# clear out old view
clear

# unset things and readd chroot things
unset PATH
unset TMP
unset TMPDIR
unset HOME
unset LD_PRELOAD
unset LD_LIBRARY_PATH

## Combine android $PATH to kali chroot $PATH
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export TERM=xterm-256color
export LANG=en_US.UTF-8
export HOME=/root
export TMP=/tmp
export TMPDIR=/tmp
export USER=root
export MAIL=/var/mail/root
export LOGNAME=root
export SHLVL=1
# Lets pass a binky export here too ;)
export YOU_KNOW_WHAT=THIS_IS_KALI_LINUX_NETHUNTER_FROM_JAVA_BINKY

$SU2 /system/bin/chroot /data/local/nhsystem/kalifs su

bash-5.2# #!/data/data/com.offsec.nhterm/files/usr/bin/bash
bash-5.2# # Version: 1.0.2
sr/bash-5.2#
/data/databash-5.2# # export path for android bins/tools
term/files/usr/sbin:/sbinbash-5.2# export PATH=/data/data/com.offsec.nhterm/files/home/.nhterm/script:/data/data/com.offsec.nhterm/files/usr/bin:/data/data/com.offsec.nhterm/files/usr/sbin:/sbin:/system/bin:/system/xbin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/odm/bin:/vendor/bin:.
unset things and readd chroot things
unset PATH
unset TMP
unset TMPDIR
unset HOME
unset LD_Pbash-5.2#
bash-5.2# SU1=$(which su)
RELOAD
unset LD_LIBRARY_PATH

## Combine android $PATH to kali chroot $PATH
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export TERM=xterm-256color
export LANG=en_US.UTF-8
export HOME=/root
export TMP=/tmp
export TMPDIR=/tmp
export USER=root
export MAIL=/var/mail/root
export LOGNAME=root
export SHLVL=bash-5.2# SU2="$SU1 -c $@"
bash-5.2#
1
# Lets pass bash-5.2# # clear out old view
bash-5.2# clear
a binky export here too ;)
export YOU_KNOW_WHAT=THIS_IS_KALI_LINUX_NETHUNTER_FROM_JAVA_BINKY

$SU2 /system
bash-5.2#
bash-5.2# # unset things and readd chroot things
/bin/chroot /dbash-5.2# unset PATH
bash-5.2# unset TMP
bash-5.2# unset TMPDIR
bash-5.2# unset HOME
bash-5.2# unset LD_PRELOAD
bash-5.2# unset LD_LIBRARY_PATH
bash-5.2#
bash-5.2# ## Combine android $PATH to kali chroot $PATH
bash-5.2# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
bash-5.2# export TERM=xterm-256color
bash-5.2# export LANG=en_US.UTF-8
bash-5.2# export HOME=/root
bash-5.2# export TMP=/tmp
bash-5.2# export TMPDIR=/tmp
bash-5.2# export USER=root
bash-5.2# export MAIL=/var/mail/root
bash-5.2# export LOGNAME=root
bash-5.2# export SHLVL=1
bash-5.2# # Lets pass a binky export here too ;)
bash-5.2# export YOU_KNOW_WHAT=THIS_IS_KALI_LINUX_NETHUNTER_FROM_JAVA_BINKY
bash-5.2#
bash-5.2# $SU2 /system/bin/chroot /data/local/nhsystem/kalifs su
┌──(root㉿kali)-[/]
└─#

Any advice?