Closed 2096779623 closed 2 years ago
- I don't understand what the issue is, you seem to be able to resolve packages-cf.termux.org without issues
- You are apparently not using termux but rather an app called "ZeroTermux" (which apparently uses the same PREFIX and our repositories). We don't provide support for other apps
The problem is: packages-cf.termux.org is not resolved by ip in $PREFIX/etc/hosts.
- I don't understand what the issue is, you seem to be able to resolve packages-cf.termux.org without issues
- You are apparently not using termux but rather an app called "ZeroTermux" (which apparently uses the same PREFIX and our repositories). We don't provide support for other apps
~ $ ping a
ping: unknown host a
~ $ cat $PREFIX/etc/hosts
127.0.0.1 localhost
::1 ip6-localhost
127.0.0.1 a
Most utilities use android's hosts
and resolv.conf
, only a few are modified to use the files in $PREFIX, see https://github.com/search?q=org%3Atermux+etc%2Fresolv.conf&type=code and https://github.com/search?q=org%3Atermux+etc%2Fhosts&type=code
Ping is a wrapper of /system/bin/ping, so it definitely won't use the config files in $PREFIX
Problem description
Transcript
ZeroTermux App Info
APP_NAME:
ZeroTermux
PACKAGE_NAME:
com.termux
VERSION_NAME:
0.118.20
VERSION_CODE:
117
UID:
10305
TARGET_SDK:
28
IS_DEBUGGABLE_BUILD:
false
APK_RELEASE:
Unknown
SIGNING_CERTIFICATE_SHA256_DIGEST:
4A246F97551128DD855E5EEED3326A409454DD7CC6B7FC5268AA8528AD0A81E7
Device Info
Software
OS_VERSION:
4.9.206-perf
SDK_INT:
29
RELEASE:
10
ID:
S618L
DISPLAY:
03.00.01
INCREMENTAL:
03.00.01
SECURITY_PATCH:
2020-06-01
IS_DEBUGGABLE:
0
IS_TREBLE_ENABLED:
true
TYPE:
user
TAGS:
release-keys
Hardware
MANUFACTURER:
SHARP
BRAND:
KDDI
MODEL:
SHV43
PRODUCT:
MZW_jp_kdi
BOARD:
Anasui
HARDWARE:
qcom
DEVICE:
MZW
SUPPORTED_ABIS:
arm64-v8a, armeabi-v7a, armeabi
Termux APT Info
Subscribed Repositories
sources.list
deb https://packages-cf.termux.org/apt/termux-main stable main
Updatable Packages
Termux Files Info
TERMUX_REQUIRED_FILES_DIR_PATH ($PREFIX):
/data/data/com.termux/files
ANDROID_ASSIGNED_FILES_DIR_PATH:
/data/user/0/com.termux/files
Logcat Dump
Steps to reproduce the behavior.
pkg install resolv-conf -y echo 104.25.233.106 packages-cf.termux.org > $PREFIX/etc/hosts termux-change-repo
What is the expected behavior?
should resolve to the specified ip.
System information