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

Exec format error on zsh package #3920

Closed
dov opened this issue Jun 3, 2019 · 5 comments
Closed

Exec format error on zsh package #3920

dov opened this issue Jun 3, 2019 · 5 comments

Comments

@dov
Copy link

dov commented Jun 3, 2019

Problem description
After installing zsh on my tablet through pkg install zsh I get an error when trying to execute it: .../usr/bin/zsh: cannot execute binary file: Exec format error

System info

$ zsh
bash: /data/data/com.termux/files/usr/bin/zsh: cannot execute binary file: Exec format error
$ termux-info
Updatable packages:
All packages up to date
Subscribed repositories:
https://termux.net stable/main
https://termux.net stable/main
System information:
Linux localhost 3.10.0 #7 SMP PREEMPT Thu Apr 11 07:42:33 CST 2019 armv7l Android
Termux-packages arch:
arm
Android version:
6.0.1
Device manufacturer:
Onyx
Device model:
NovaPro
NovaPro
$ pkg info zsh
Hit:1 https://termux.net stable InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
zsh is already the newest version (5.7.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$
@ghost
Copy link

ghost commented Jun 3, 2019

Could you install package "file" (pkg install file) and then post output of file /data/data/com.termux/files/usr/bin/zsh ?

zsh works on my device (ARM, android 5.1) without any problem.

@dov
Copy link
Author

dov commented Jun 3, 2019

$ file which zsh
/data/data/com.termux/files/usr/bin/zsh: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, stripped

$ file which bash
/data/data/com.termux/files/usr/bin/bash: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /system/bin/linker, stripped

$ uname -a
Linux localhost 3.10.0 #7 SMP PREEMPT Thu Apr 11 07:42:33 CST 2019 armv7l Android

@ghost
Copy link

ghost commented Jun 3, 2019

/data/data/com.termux/files/usr/bin/zsh: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, stripped

Interesting how AArch64 binary was installed on your device.


I have unpacked latest available ARM zsh package and it looks like correct:

[xeffyr]:/tmp/zsh-unpacked:$ cat control
Package: zsh
Architecture: arm
Installed-Size: 8548
Maintainer: Fredrik Fornwall @fornwall
Version: 5.7.1
Homepage: https://www.zsh.org
Depends: libandroid-support, ncurses, termux-tools, command-not-found, pcre
Description: Shell with lots of features
[xeffyr]:/tmp/zsh-unpacked:$ file data/data/com.termux/files/usr/bin/zsh
data/data/com.termux/files/usr/bin/zsh: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /system/bin/linker, stripped

@ghost
Copy link

ghost commented Jun 3, 2019

Try to reinstall it with pkg reinstall zsh. If this won't solve problem, post apt logs (at least urls) here.

@dov
Copy link
Author

dov commented Jun 4, 2019

Thanks. Reinstalling fixed the problem.

@dov dov closed this as completed Jun 4, 2019
@ghost ghost deleted a comment Jul 14, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Jul 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant