Cannot link executable
Termux quits all sessions instantly giving me this error
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/bash": cannot locate symbol "rl_completion_rewrite_hook" referenced by "/data/data/com.termux/files/usr/bin/bash"...
20 Replies
try to go to failsafe session by swiping from left side of the screen to the center, then touching this button

try to use the failsafe session to back up your data
Im already in failsafe
then, go to settings and apps and termux, and choose clear all data, then open again
you see that error with
bash in failsafe session from that button in the screenshot I sent?No
oh ok
are you able to back up your data from there or do you prefer to try to fix the termux manually without reinstalling termux?
if only bash is what is not working, then there is a way to use the failsafe session to fix the normal session and then bootstrap back to working bash.
Im trying to fix it manually i dont have important things
i can explain how
ok i'll try to explain what you can try
wait a moment
first
what happens if you go to failsafe session, use this command, then exit failsafe session and go back to normal session?
mv /data/data/com.termux/files/usr/bin/bash /data/data/com.termux/files/homeWorks

Ok good, now could you check something for me before you do anything else so i can see what might have caused this problem for you?
use this command
apt update
and then show me what it shows in a screenshot, before you do anything else or use any other commands.
ok great, thanks for showing that,
now you should use this command
apt upgrade
and then after that use this command
apt reinstall bash
and then close your termux and open it again and it will be fixedApt upgrade gives this error

sorry for delay, i'm talking in multiple chats
yes that makes it seem like your termux got messed up by accident before somehow
try this next
apt --fix-broken install
and then go back to trying
apt upgrade
apt reinstall bash
againI already solved thanks
ok that's good but i also have another question, have you disabled the child process restrictions in developer settings?
Yes

ok good