Skip to content

termux: busybox has unexpected e_type: 2 #147

@milahu

Description

@milahu
$ nix-shell -p hello
error: "/data/data/com.termux/files/home/.nix-portable/busybox/bin/busybox" has unexpected e_type: 2

"unexpected e_type 2" -> this is a statically linked executable

$ file -b /data/data/com.termux/files/home/.nix-portable/busybox/bin/busybox
ELF executable, 64-bit LSB arm64, static, BuildID=60bd4238eedee9c6bd8258788626cb1cccd2df6b, not stripped
$ pkg i busybox
$ file -b $(which busybox)
ELF executable, 64-bit LSB arm64, static, BuildID=60bd4238eedee9c6bd8258788626cb1cccd2df6b, not stripped
$ termux-info
Termux Variables:
TERMUX_EXEC__PROC_SELF_EXE=/data/data/com.termux/files/usr/bin/termux-info
TERMUX_VERSION=googleplay.2025.01.18
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.net stable main
Updatable packages:
apt/stable 2.9.28-1 aarch64 [upgradable from: 2.9.23]
bash/stable 5.2.37-2 aarch64 [upgradable from: 5.2.37]
ca-certificates/stable 1:2025.02.25 all [upgradable from: 2024.09.24]
command-not-found/stable 2.4.0-67 aarch64 [upgradable from: 2.4.0-58]
coreutils/stable 9.6 aarch64 [upgradable from: 9.5-3]
diffutils/stable 3.11 aarch64 [upgradable from: 3.10]
inetutils/stable 2.6 aarch64 [upgradable from: 2.5]
libgnutls/stable 3.8.9 aarch64 [upgradable from: 3.8.5-1]
libnettle/stable 3.10.1 aarch64 [upgradable from: 3.10]
libnghttp2/stable 1.65.0 aarch64 [upgradable from: 1.64.0]
libnghttp3/stable 1.8.0 aarch64 [upgradable from: 1.7.0]
libsmartcols/stable 2.40.2-3 aarch64 [upgradable from: 2.40.2-2]
pcre2/stable 10.45 aarch64 [upgradable from: 10.44]
termux-licenses/stable 2.1 all [upgradable from: 2.0-4]
termux-tools/stable 3.0.8-2 aarch64 [upgradable from: 3.0.8]
util-linux/stable 2.40.2-3 aarch64 [upgradable from: 2.40.2-2]
termux-tools version:
3.0.8
Android version:
13
Kernel build information:
Linux localhost 5.4.210 #1 SMP PREEMPT Wed Aug 2 18:50:59 CST 2023 aarch64 Android
Device manufacturer:
AGM
Device model:
AGM_Note_N1
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions