Skip to content
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

[Bug]: You are likely using a very old version of Termux, probably installed from the Google Play Store. #2278

Closed
tangshuang opened this issue Sep 17, 2021 · 13 comments

Comments

@tangshuang
Copy link

Problem description

I download the app from F-Droid.
Found it not able to run Termux-change-repo because of binary down, so I rm the games.list and science.list to run pkg upgrade. After installing some missing pkg, it's able to run termux-* commands but after I reboot the app, I saw a red color sentence at the welcome screen.

Screenshot_20210917_205529_com termux_edit_108559670431918

How can I remove this warning?

Steps to reproduce the behavior.

I download the app from F-Droid.
Found it not able to run Termux-change-repo because of binary down, so I rm the games.list and science.list to run pkg upgrade. After installing some missing pkg, it's able to run termux-* commands but after I reboot the app, I saw a red color sentence at the welcome screen.

What is the expected behavior?

Without the red warning

System information

  • Termux application version: latest from f-droid
  • Android OS version: HarmonyOS 2.0.0
  • Device model:
@ghost
Copy link

ghost commented Sep 17, 2021

Found it not able to run Termux-change-repo because of binary down, so I rm the games.list and science.list to run pkg upgrade.

So you had issues with repositories on the "latest" version from F-Droid?

@Grimler91
Copy link
Member

Please share your output of termux-info

@RalfWerner
Copy link

condition and file you find in ~/../usr/bin/login in line 11

@ghost
Copy link

ghost commented Sep 17, 2021

Play Store deprecation warning is shown when this condition is satisfied:

if [ $# = 0 ] && [ -f /data/data/com.termux/files/usr/etc/motd-playstore ] && [ -z "$TERMUX_VERSION" ] && [ "$PATH" = "/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets" ]; then
        printf '\033[0;31m'; cat /data/data/com.termux/files/usr/etc/motd-playstore; printf '\033[0m'
fi

Since first 2 checks are normally always true, only the last two vary between Termux installations:

[ -z "$TERMUX_VERSION" ] && [ "$PATH" = "/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets" ]

If this is true, then one of these problems take place:

  1. You are still using Play Store version: for example you attempted to upgrade with APK from F-Droid, but it failed due to signature mismatch, you didn't read the message and just dismissed it thinking that app from F-Droid is now installed.

    If that's the case, visit installation instructions at this page: https://github.com/termux/termux-app#installation

  2. You are using old version from F-Droid. For example v0.101.

    In this case ensure that your application version is at least v0.117. Otherwise, if you want continue to use old version, please close the issue.

  3. You did some customization which overrides/unsets the environment variables. (very unlikely, as will require re-exec of $PREFIX/bin/login from shell rc files or custom Termux build)

    Backup Termux installation as in https://wiki.termux.com/wiki/Backing_up_Termux, erase application data and restart. Then check whether message gone.

@tangshuang
Copy link
Author

tangshuang commented Sep 21, 2021

Please share your output of termux-info

$ termux-info
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main
# game-repo (sources.list.d/game.list)
deb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-games games stable
# science-repo (sources.list.d/science.list)
deb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-science science stable
# x11-repo (sources.list.d/x11.list)
deb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-x11 x11 main
Updatable packages:
libnghttp2/stable 1.45.0 aarch64 [upgradable from: 1.44.0]
termux-tools/stable 0.136 all [upgradable from: 0.135]
Android version:
10
Kernel build information:
Linux localhost 4.19.81+ #1 SMP PREEMPT Mon Sep 13 16:50:48 CST 2021 aarch64 Android
Device manufacturer:
HUAWEI
Device model:
DBY-W09
~ $

@ghost
Copy link

ghost commented Sep 21, 2021

You don't have $TERMUX_VERSION set. That's enough to close the issue - it is not on our side.

@ghost ghost closed this as completed Sep 21, 2021
@ghost
Copy link

ghost commented Sep 21, 2021

Make sure you are using Termux version 0.117 as everything below is not supported.

Screenshot_20210921-182603

@ghost ghost removed the bug report label Sep 21, 2021
@tangshuang
Copy link
Author

Make sure you are using Termux version 0.117 as everything below is not supported.

Screenshot_20210921-182603

Info fact my I use the version 0.94 from F-Droid.

@tangshuang
Copy link
Author

Make sure you are using Termux version 0.117 as everything below is not supported.

Screenshot_20210921-182603

I found the reason, HUAWEI smart install use a old version which has the right sign. After close this feature and install the one from F-Droid give the right version.

@AlbertWang2018
Copy link

在第 11 行中找到的条件和文件 ~/../usr/bin/login

Comment out the first 13 lines in this file and the world is quiet!

@2096779623
Copy link
Member

2096779623 commented Jul 22, 2022

Comment out the first 13 lines in this file and the world is quiet!

Turn off your google translate and edit again lol.

@rjm74
Copy link

rjm74 commented Jul 19, 2023

~ $ termux-info
Application version: 0.118.0
Packages CPU architecture: aarch64
Subscribed repositories: # sources.list
deb https://packages.termux.org/apt/termux-main/ stable main Updatable packages:
apt/stable 2.7.2 aarch64 [upgradable from: 2.3.13-3] bash/stable 5.2.15-1 aarch64 [upgradable from: 5.1.12-2]
ca-certificates/stable 1:2023.05.30 all [upgradable from: 1:2021-10-26-0]
command-not-found/stable 2.2.0-8 aarch64 [upgradable from: 1.71] coreutils/stable 9.3 aarch64 [upgradable from: 9.0] curl/stable 8.2.0 aarch64 [upgradable from: 7.81.0]
dash/stable 0.5.12 aarch64 [upgradable from: 0.5.11.5]
debianutils/stable 5.7-1 aarch64 [upgradable from: 5.5]
dialog/stable 1.3-20230209-0 aarch64 [upgradable from: 1.3-20211214-0]
diffutils/stable 3.10 aarch64 [upgradable from: 3.8]
dos2unix/stable 7.5.0 aarch64 [upgradable from: 7.4.2]
dpkg/stable 1.21.22 aarch64 [upgradable from: 1.21.1]
ed/stable 1.19 aarch64 [upgradable from: 1.17-4]
findutils/stable 4.9.0-2 aarch64 [upgradable from: 4.8.0]
gawk/stable 5.2.2 aarch64 [upgradable from: 5.1.1]
gpgv/stable 2.4.3 aarch64 [upgradable from: 2.3.4]
grep/stable 3.11 aarch64 [upgradable from: 3.7-2]
gzip/stable 1.12-1 aarch64 [upgradable from: 1.11-3]
inetutils/stable 2.4-1 aarch64 [upgradable from: 1.9.4-12]
less/stable 633-1 aarch64 [upgradable from: 590]
libandroid-support/stable 28-3 aarch64 [upgradable from: 28-2]
libassuan/stable 2.5.6 aarch64 [upgradable from: 2.5.5]
libc++/stable 25c aarch64 [upgradable from: 23b-3]
libcap-ng/stable 2:0.8.3 aarch64 [upgradable from: 1:0.8.3-pre1-0]
libcrypt/stable 0.2-5 aarch64 [upgradable from: 0.2-3]
libcurl/stable 8.2.0 aarch64 [upgradable from: 7.81.0]
libevent/stable 2.1.12-2 aarch64 [upgradable from: 2.1.12]
libexpat/stable 2.5.0-1 aarch64 [upgradable from: 2.4.2]
libgcrypt/stable 1.10.2 aarch64 [upgradable from: 1.9.4]
libgmp/stable 6.2.1-2 aarch64 [upgradable from: 6.2.1]
libgnutls/stable 3.8.0-1 aarch64 [upgradable from: 3.6.16-1]
libgpg-error/stable 1.47 aarch64 [upgradable from: 1.43]
libiconv/stable 1.17 aarch64 [upgradable from: 1.16-3]
libidn2/stable 2.3.4 aarch64 [upgradable from: 2.3.2]
liblz4/stable 1.9.4 aarch64 [upgradable from: 1.9.3]
liblzma/stable 5.4.3 aarch64 [upgradable from: 5.2.5-1]
libmpfr/stable 4.2.0-p9-0 aarch64 [upgradable from: 4.1.0]
libnettle/stable 3.9.1 aarch64 [upgradable from: 3.7.3]
libnghttp2/stable 1.55.1 aarch64 [upgradable from: 1.46.0]
libssh2/stable 1.11.0 aarch64 [upgradable from: 1.10.0]
libtirpc/stable 1.3.3 aarch64 [upgradable from: 1.3.2]
libunistring/stable 1.1 aarch64 [upgradable from: 0.9.10-5]
lsof/stable 4.98.0 aarch64 [upgradable from: 4.94.0-1]
nano/stable 7.2 aarch64 [upgradable from: 6.0]
ncurses/stable 6.4.20230527 aarch64 [upgradable from: 6.2.20200725-6]
openssl/stable 1:3.1.1 aarch64 [upgradable from: 1.1.1l]
pcre2/stable 10.42 aarch64 [upgradable from: 10.39-2]
procps/stable 3.3.17-2 aarch64 [upgradable from: 3.3.17-1]
psmisc/stable 23.6-1 aarch64 [upgradable from: 23.4]
readline/stable 8.2.1 aarch64 [upgradable from: 8.1.1]
sed/stable 4.9-1 aarch64 [upgradable from: 4.8-2]
tar/stable 1.34-2 aarch64 [upgradable from: 1.34]
termux-am-socket/stable 1.5.0 aarch64 [upgradable from: 1.02]
termux-exec/stable 1:1.0 aarch64 [upgradable from: 1:0.9]
termux-keyring/stable 3.11 all [upgradable from: 2.4]
termux-licenses/stable 2.0-3 all [upgradable from: 2.0-1]
termux-tools/stable 1.38.3 all [upgradable from: 0.155]
unbound/stable 1.17.1-2 aarch64 [upgradable from: 1.13.2-1]
unzip/stable 6.0-9 aarch64 [upgradable from: 6.0-7]
util-linux/stable 2.39.1 aarch64 [upgradable from: 2.37.2-1]
xz-utils/stable 5.4.3 aarch64 [upgradable from: 5.2.5-1]
zlib/stable 1.2.13 aarch64 [upgradable from: 1.2.11-5]
Android version:
13
Kernel build information:
Linux localhost 5.15.74-android13-8-26621433-abS918BXXS3AWF7 #1 SMP PREEMPT Mon Jun 26 08:05:16 UTC 2023 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-S918B
~ $

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@tangshuang @Grimler91 @AlbertWang2018 @RalfWerner @2096779623 @rjm74 and others