[Solved] Unable to launch 4.5.1 AppImage, Invalid ABI Version
Arch Linux 6.14.1-arch1-1
x86_64
FUSE confirmed working
AppImage is mounted without noexec
Checksum is valid
File: MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
Downloaded from https://musescore.org/en/download
Issue
Error when attempting to launch the AppImage from terminal:
./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
bash: ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage: No such file or directory
And an error When invoking directly with the loader (ABI version invalid):
/usr/lib/ld-linux-x86-64.so.2 ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
error while loading shared libraries: ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage: ELF file ABI version invalid
When running readelf
on the AppImage (note ABI Version 65):
readelf -h ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 41 49 02 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 65
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x405fc8
Start of program headers: 64 (bytes into file)
Start of section headers: 191680 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 11
Size of section headers: 64 (bytes)
Number of section headers: 32
Section header string table index: 31
Additional note: extracting the AppImage, --appimage-extract
works properly. When running ./AppRun
within the extracted folder to bypass FUSE, the program launches properly.
I also tried APPIMAGE_EXTRACT_AND_RUN=1
environment variable when launching the AppImage, but the error persisted.
Solution
Issue solved by manually patching the ELF header (replacing byte at offset 8 from \x41
to \x00
using:
printf "\x00" | dd of=MuseScore-Studio-4.5.1.250800846-x86_64.AppImage bs=1 seek=8 conv=notrunc
MuseScore now launches properly via ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
Impact:
Issue prevents the self-mounting mechanism of the AppImage from working, although the application itself runs fine if extracted.
Comments
Make sure to report this issue on GitHub, https://github.com/musescore/MuseScore/issues/new/choose
In reply to Make sure to report this… by Jojo-Schmitz
Thank you, will do
In reply to Thank you, will do by danielbaldwin
When done please drop a link to it here
Hi there,
I tried the suggested correction:
olav@XPS-13-9310:~/Applications$ printf "\x00" | dd of=MuseScore-Studio-4.5.1.250800846-x86_64.AppImage bs=1 seek=8 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 7,271e-05 s, 13,8 kB/s
olav@XPS-13-9310:~/Applications$ ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
bash: ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage: Permission denied
so I ticked the box of the appimage to allow it to run as a program, but there must be something I missed:
olav@XPS-13-9310:~/Applications$ ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
bash: ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage: cannot execute binary file: Exec format error
Any help welcome, but at the moment I am stuck and cannot use the 4.5 version on any of my linux computers
In reply to Hi there, I tried the… by lavol
second attempt after a fresh download gave this:
olav@XPS-13-9310:~/Downloads$ printf "\x00" | dd of=MuseScore-Studio-4.5.1.250800846-x86_64.AppImage bs=1 seek=8 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 6,7729e-05 s, 14,8 kB/s
olav@XPS-13-9310:~/Downloads$ ./MuseScore-Studio-4.5.1.250800846-x86_64.AppImage
/tmp/.mount_MuseSczqULB5/bin/findlib: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/findlib)
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/findlib)/home/olav/Downloads/MuseScore-Studio-4.5.1.250800846-x86_64.AppImage: Using fallback for library 'libjack.so.0'
/tmp/.mount_MuseSczqULB5/bin/findlib: /lib/x86_64-linux-gnu/libc.so.6: version
/home/olav/Downloads/MuseScore-Studio-4.5.1.250800846-x86_64.AppImage: Using fallback for library 'libnss3.so'
/tmp/.mount_MuseSczqULB5/bin/findlib: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/findlib)
GLIBC_2.35' not found (required by /tmp/.mount_MuseSczqULB5/bin/mscore4portable)/home/olav/Downloads/MuseScore-Studio-4.5.1.250800846-x86_64.AppImage: Using fallback for library 'libOpenGL.so.0'
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libm.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/mscore4portable)
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/mscore4portable)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libstdc++.so.6: version
GLIBCXX_3.4.30' not found (required by /tmp/.mount_MuseSczqULB5/bin/mscore4portable)
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libsndfile.so.1)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libFLAC.so.8)
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libxkbcommon.so.0)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libdbus-1.so.3)
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libdbus-1.so.3)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libgssapi_krb5.so.2)
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libsystemd.so.0)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.32' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libsystemd.so.0)
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libsystemd.so.0)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libkrb5.so.3)
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libkrb5.so.3)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libk5crypto.so.3)
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libkrb5support.so.0)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libkrb5support.so.0)
GLIBC_2.32' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/liblzma.so.5)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/liblzma.so.5)
GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libcap.so.2)/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version
/tmp/.mount_MuseSczqULB5/bin/mscore4portable: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /tmp/.mount_MuseSczqULB5/bin/../lib/libgcrypt.so.20)
In reply to second attempt after a fresh… by lavol
Looks like it wants glibc, install that and try launching again
In reply to Looks like it wants glibc,… by danielbaldwin
Will try
In reply to Looks like it wants glibc,… by danielbaldwin
Thanks a lot, I will try asap and report the outcome here