-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read this, if you have "CANNOT LINK EXECUTABLE" after update #1703
Comments
Hey @xeffyr, what does
mean? To do it instead of erasing Termux application data? Or after it? What is the purpose of |
Yes, instead of completely erasing data. |
Yup, can confirm that everything looks OK. |
Any shell I open results in this as of Aug 8 build...
Seems like the environment shouldn't corrupt itself |
@deftdawg environment broke after termux-app was updated, but packages have not been updated for 8 months. If you want to ensure environment does not break then either never update app or packages, or keep both up to date. |
I had the exact same issue. One day it just corruped itself with same error as you. I didn't recently install or upgrade any packages inside termux. To fix it, I just uninstalled and reinstalled the app. You do however loose the previous termux file system contents. Annoying but seems specific to older installation since my newer phone's termux never corrupted itself. |
This has been a really frustrating experience for no good reason. I wasn't aware that I needed to perform a manual upgrade step just to keep bash running, and nothing in the upgrade process ever notified me. Now the recommended fix not only doesn't work, but apparently couldn't possibly work. |
What termux-upgrade-repo do is only
It may not exist if environment is very outdated or is a mix of packages from termux.net and bintray.
Have you ever run Keeping environment out-of-sync with app will broke it at some point because environment is not independent. Either update both or do not update at all. |
Somehow while using termux almost everyday I hadn't noticed a deprecation warning before everything broke. Was there one? |
Everyday, without updating packages and even without checking community pages. That's why you have not been notified.
Significant changes are always posted on community pages and, if needed, being sent as update of Everyone who has up-to-date packages of https://termux.net, will have a warning about legacy environment usage. Commit termux/termux-packages@97b5924. I have also did an announcement about deprecation of Android 5/6 compatibility branch on Github (termux/termux-packages#4467) and Reddit https://www.reddit.com/r/termux/comments/dnzdbs/end_of_android56_support_on_20200101/. |
I do update termux itself from F-Droid regularly but not packages |
@chrylis the following helped me:
|
Thanks kafer but your instructions are still a little vague, I was getting errors that chmod couldn't be found. here's exactly what I did in the end - don't refer to the instructions in OP at all.
|
this worked for me with one small change: |
Interesting, I didn't run into that - thanks for the extra info. |
@ssixty Because script uses |
@xeffyr's instructions above worked for me with the following change, adding the existing
Otherwise the script couldn't find |
I am on Android 7.1.2 and ran into this issue a couple of weeks ago. While I had noticed fr some time that various apps were no longer upgraded when I typed pkg upgrade, I had no idea that the entire termux setup would collapse... I just checked and I am running version 0.98 of termux on this tablet. Anyway, I found this page and looked for the failsafe-shell and cannot find it. As pointed out, running Android 7 there is no failsafe-shell option when long-pressing the app icon but more importantly, there is no menu after loading termux where I can start this failsafe-shell. Instead. I am staring at the error messages and cannot see that I can get past them. So, how do I get to the failsafe-shell and then proceed to recover a working termux setup on my tablet? |
There 2 ways for accessing failsafe shell: through drawer and with shortcut. Shortcuts displaying depends on used launcher and OS. So you stick to drawer option.
|
On 09/10/2020 04:42 PM, Leonid Pliushch wrote:
So, how do I get to the failsafe-shell and then proceed to recover a working termux setup on my tablet?
There 2 ways for accessing failsafe shell: through drawer and with shortcut. Shortcuts displaying depends on used launcher and OS. So you stick to drawer option.
1. Open Termux.
2. Swipe rightwards to open drawer.
3. Long press on button "New session".
- As in https://wiki.termux.com/wiki/Recover_a_broken_environment#Launching_a_Failsafe_Session.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#1703 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACODNXM6DMP5XIMX23GBFZDSFE22NANCNFSM4P2CXE7Q>.
Hmm, just opened the Termux window again and tried to swipe rightwards in the window but nothing happens. I have the two error messages of course and underneath "[Process completed (signal 6) - press Enter]"
Am I missing something?
|
Yes,
|
I understand that reading text may be very difficult (btw, why using Termux in this case???), so here is a video: https://imgur.com/a/xIBiW2c Added to https://wiki.termux.com/wiki/Recover_a_broken_environment. I was sure that everyone can read the article properly... |
No need to be sarcastic and the video also did not show exactly where to start swiping. I now began swiping a little past the left edge of the terminal window and was able to launch a failsafe session. I'll see where it goes from here. |
just wanted to point for future reference that i was having an issue with xonsh and some corrupted configuration from
which brought me to a similar status unable to use termux. and finding out about the failsafe here was the missing piece for me! 🤣 i knew there should be some such way to fix it, but just couldn't find it anywhere else!! |
Version 0.96 and higher of Termux application removes support of so-called "legacy environment" (set of packages used for Android 5.x-6.x). Packages installed from https://termux.net will no longer work. Packages mixed from https://termux.net and other sources will no longer work too.
What to do:
Open failsafe shell, copy important files to /sdcard and then erase Termux application data.
Alternatively, you may attempt to use
termux-upgrade-repo
script from failsafe shell:If no
termux-upgrade-repo
available, follow #1703 (comment).Failsafe shell how-to: https://wiki.termux.com/wiki/Recover_a_broken_environment#Launching_a_Failsafe_Session
P.S. Another major environment update is coming soon, including packaging format change. Brief info is available at https://github.com/termux/termux-packages/wiki/Termux-and-Android-10.
The text was updated successfully, but these errors were encountered: