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
owokitty
owokitty2w ago
try to go to failsafe session by swiping from left side of the screen to the center, then touching this button
No description
owokitty
owokitty2w ago
try to use the failsafe session to back up your data
capibarak
capibarakOP2w ago
Im already in failsafe
owokitty
owokitty2w ago
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?
capibarak
capibarakOP2w ago
No
owokitty
owokitty2w ago
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.
capibarak
capibarakOP2w ago
Im trying to fix it manually i dont have important things
owokitty
owokitty2w ago
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/home
capibarak
capibarakOP2w ago
Works
capibarak
capibarakOP2w ago
No description
owokitty
owokitty2w ago
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.
capibarak
capibarakOP2w ago
No description
owokitty
owokitty2w ago
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 fixed
capibarak
capibarakOP2w ago
Apt upgrade gives this error
No description
owokitty
owokitty2w ago
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 again
capibarak
capibarakOP2w ago
I already solved thanks
owokitty
owokitty2w ago
ok that's good but i also have another question, have you disabled the child process restrictions in developer settings?
capibarak
capibarakOP2w ago
Yes
owokitty
owokitty2w ago
No description
owokitty
owokitty2w ago
ok good

Did you find this page helpful?