Skip to content

Instantly share code, notes, and snippets.

@GabrielMMelo
Created January 22, 2019 12:33
Show Gist options
  • Save GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c to your computer and use it in GitHub Desktop.
Save GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c to your computer and use it in GitHub Desktop.
Install sudo in Termux (Android)
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
@runng
Copy link

runng commented Sep 12, 2023

how to fix

su executable not found
sudo requires su

#_________________________

uninstall tsu package

pkg remove tsu

reinstall tsu package again

pkg install tsu

it working.✓ (tested on android 13)

@Drjacky
Copy link

Drjacky commented Nov 5, 2023

@omb7141980

All you need to do after script for termux-sudo is make sure your in /data/data/com.termux/files/home/termux-sudo then "chmod +x sudo" then sudo is executable.

Screenshot 2023-11-05 at 10 26 06

@marioestima
Copy link

Nothing happen

@cruzheer
Copy link

Nothing happen

read my comment, read text at screenshot

@babijavid
Copy link

image I tried all steps above on termux , installed tsu , No luck still same issue

@Nikhil-sys-gli
Copy link

Screenshot_20210225-023311

Balance commands

@Tyuol
Copy link

Tyuol commented Jan 17, 2024

mano
vejam ja internet como fazer root e o modelo do seu celular

@sukua77
Copy link

sukua77 commented Jan 31, 2024

~/termux-sudo $ su
No su program found on this device. Termux
does not supply tools for rooting, see e.g.
http://www.androidcentral.com/root for
information about rooting Android.
What ro do now

@DreamDevin
Copy link

pkg install sudo

how to fix

su executable not found sudo requires su

#_________________________

uninstall tsu package

pkg remove tsu

reinstall tsu package again

pkg install tsu

it working.✓ (tested on android 13)

Thanks it worked 😀😀

@DreamDevin
Copy link

pkg remove tsu
And
pkg install tsu
Then
sudo
It
Worked

@0Xkasr
Copy link

0Xkasr commented Apr 19, 2024

Update termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd ~
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh

Apt update
Apt upgrade
Apt install sudo

@I-am-TURBO
Copy link

I-am-TURBO commented May 8, 2024

Update termux: apt-get update && apt-get upgrade -y Install wget: apt-get install wget -y Install proot: apt-get install proot -y Install git: apt-get install git -y Go to HOME folder: cd ~ Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git Go to script folder: cd ubuntu-in-termux Give execution permission: chmod +x ubuntu.sh Run the script: ./ubuntu.sh -y Now just start ubuntu: ./startubuntu.sh

Apt update Apt upgrade Apt install sudo

hey!! this worked for me!!!

and now it's not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment