Repository navigation
Closed
Description
When I run linuxdeploy-x86_64.AppImage in an Ubuntu chroot (14.04, 16.04 and 18.04) I get the warning No such file or directory. This misleading warning normally happens when you try to run a 32 bit binary on a 64 bit system where support for 32 bit binaries wasn't enabled yet. ldd doesn't seem to recognize it either but readelf finds its dynamic section. I can run it without problems on my native Ubuntu 18.04 system. I never had this issue before.
$ wget -q -c https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
$ chmod a+x linuxdeploy-x86_64.AppImage
$ ./linuxdeploy-x86_64.AppImage
bash: ./linuxdeploy-x86_64.AppImage: No such file or directory
$ ldd linuxdeploy-x86_64.AppImage
not a dynamic executable
$ file linuxdeploy-x86_64.AppImage
linuxdeploy-x86_64.AppImage: ELF 64-bit LSB executable, x86-64, version 1, dynamically linked, interpreter /lib64/l, for GNU/Linux 2.6.18, stripped
$ LANG=C readelf -d linuxdeploy-x86_64.AppImage
Dynamic section at offset 0x2a960 contains 23 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libz.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x404188
0x000000000000000d (FINI) 0x420ee8
0x0000000000000004 (HASH) 0x400240
0x0000000000000005 (STRTAB) 0x402620
0x0000000000000006 (SYMTAB) 0x400af0
0x000000000000000a (STRSZ) 4213 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x62ab78
0x0000000000000002 (PLTRELSZ) 1872 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x403a38
0x0000000000000007 (RELA) 0x403960
0x0000000000000008 (RELASZ) 216 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x4038e0
0x000000006fffffff (VERNEEDNUM) 3
0x000000006ffffff0 (VERSYM) 0x403696
0x0000000000000000 (NULL) 0x0
$
Update:
It looks like I have this issue with any AppImage.
Metadata
Metadata
Assignees
Labels
No labels
Activity
TheAssassin commentedon Aug 4, 2019
Try
sed -i 's|AI\x02|\x00\x00\x00|' my.AppImage.darealshinji commentedon Aug 4, 2019
That did it, thanks.
TheAssassin commentedon Aug 4, 2019
Typical problem with some envs like Docker, chroot, ... Not a linuxdeploy issue.
CI: Add aarch64 LinuxDeploy to build environment