-
Star
(218)
You must be signed in to star a gist -
Fork
(37)
You must be signed in to fork a gist
-
-
Save GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c to your computer and use it in GitHub Desktop.
| apt install git | |
| git clone https://gitlab.com/st42/termux-sudo | |
| cd termux-sudo | |
| cat sudo > /data/data/com.termux/files/usr/bin/sudo | |
| chmod 700 /data/data/com.termux/files/usr/bin/sudo |
su executable not found
sudo requires su
Pls help
su executable not found
sudo requires su
Pls help I did above all but still occurring this error
pkg install sudo
It's worked!
Stiller on kt on m'y zfold 4 not rooted
Please help
If you just need to execute sudo apt [...] then:
alias if-termux='[[ ! -z $TERMUX_VERSION]]' # If the var is not empty.
# Define `sudo` as no-op if inside Termux:
if-termux && alias sudo=''
# Update information about packages:
sudo apt update
# Upgrade all installed packages to the latest versions:
sudo apt upgrade
# Install Python programming language interpreter, version 3:
sudo apt install python3Mihkhh
Oouu
Does anybody know if this has been patched in Android 16 as I've tried basically everything in this thread but it says:
Termux does not supply tools for rooting
and I don't really know much about termux to be honest but has anyone found any new solutions?
Any help would be appreciated, (also I got it to work on my old phone but it was Android 14, which is why I think it might be an issue with Android 16)
@Legoscratch, maybe you can use https://wiki.termux.com/wiki/PRoot or the official Virtual Terminal app shipped by Google with the recent versions of Android 16 since 2025.
@ilyaigpetrov Sorry for getting back so late, but thanks so much! This is great and works excellently on my Pixel, even has the ability to run GUI applications!!
I added this and it fixed my issue
elif [ -x $(which su) ]; then SU=$(which su)