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

AppImage does not open on (K)Ubuntu 24.04 #56

Open
VoxelTek opened this issue Jul 4, 2024 · 10 comments
Open

AppImage does not open on (K)Ubuntu 24.04 #56

VoxelTek opened this issue Jul 4, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@VoxelTek
Copy link

VoxelTek commented Jul 4, 2024

Whenever trying to open the most recent release on Kubuntu 24.04, I get this error:

/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/tmp/.mount_LibreSc36Snr/AppRun: line 4: 73120 Segmentation fault      (core dumped) LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}/lib" LD_PRELOAD="$(ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libm\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libc\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "librt\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1)" "${APPDIR}/librescore" "$@"

I am not sure what causes this, or how to fix it.

Kind regards,
@VoxelTek

@PeterNjeim
Copy link
Member

Related to #1

@PeterNjeim
Copy link
Member

Could you try doing the following steps?

Share the output of:

./LibreScore.AppImage --appimage-extract
cd ./LibreScore
APPDIR=. ./AppRun
./librescore

While in the same folder, share the output of:

ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7-

ldd "${APPDIR}/librescore" | grep "libstdc++" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7-

@VoxelTek
Copy link
Author

@PeterNjeim

Note: ./LibreScore.AppImage --appimage-extract extracts to squashfs-root instead of LibreScore

voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications$ ./LibreScore.AppImage --appimage-extract 
squashfs-root/.DirIcon
squashfs-root/AppRun
squashfs-root/data
squashfs-root/data/flutter_assets
squashfs-root/data/flutter_assets/AssetManifest.bin
squashfs-root/data/flutter_assets/AssetManifest.json
squashfs-root/data/flutter_assets/FontManifest.json
squashfs-root/data/flutter_assets/NOTICES.Z
squashfs-root/data/flutter_assets/android
squashfs-root/data/flutter_assets/android/app
squashfs-root/data/flutter_assets/android/app/src
squashfs-root/data/flutter_assets/android/app/src/main
squashfs-root/data/flutter_assets/android/app/src/main/res
squashfs-root/data/flutter_assets/android/app/src/main/res/mipmap-xxxhdpi
squashfs-root/data/flutter_assets/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
squashfs-root/data/flutter_assets/assets
squashfs-root/data/flutter_assets/assets/StoreLogo.scale-400.png
squashfs-root/data/flutter_assets/assets/discord_black.svg
squashfs-root/data/flutter_assets/assets/discord_white.svg
squashfs-root/data/flutter_assets/assets/github_black.png
squashfs-root/data/flutter_assets/assets/github_white.png
squashfs-root/data/flutter_assets/assets/librescore-square.svg
squashfs-root/data/flutter_assets/assets/librescore.svg
squashfs-root/data/flutter_assets/assets/licenses.json
squashfs-root/data/flutter_assets/fonts
squashfs-root/data/flutter_assets/fonts/MaterialIcons-Regular.otf
squashfs-root/data/flutter_assets/fonts/SF-Pro.ttf
squashfs-root/data/flutter_assets/fonts/SegUIVar.ttf
squashfs-root/data/flutter_assets/shaders
squashfs-root/data/flutter_assets/shaders/ink_sparkle.frag
squashfs-root/data/flutter_assets/version.json
squashfs-root/data/icudtl.dat
squashfs-root/install_manifest.txt
squashfs-root/lib
squashfs-root/lib/ld-linux-x86-64.so.2
squashfs-root/lib/libX11.so.6
squashfs-root/lib/libXau.so.6
squashfs-root/lib/libXcomposite.so.1
squashfs-root/lib/libXcursor.so.1
squashfs-root/lib/libXdamage.so.1
squashfs-root/lib/libXdmcp.so.6
squashfs-root/lib/libXext.so.6
squashfs-root/lib/libXfixes.so.3
squashfs-root/lib/libXi.so.6
squashfs-root/lib/libXinerama.so.1
squashfs-root/lib/libXrandr.so.2
squashfs-root/lib/libXrender.so.1
squashfs-root/lib/libapp.so
squashfs-root/lib/libatk-1.0.so.0
squashfs-root/lib/libatk-bridge-2.0.so.0
squashfs-root/lib/libatspi.so.0
squashfs-root/lib/libbitsdojo_window_linux_plugin.so
squashfs-root/lib/libblkid.so.1
squashfs-root/lib/libbrotlicommon.so.1
squashfs-root/lib/libbrotlidec.so.1
squashfs-root/lib/libbsd.so.0
squashfs-root/lib/libc.so.6
squashfs-root/lib/libcairo-gobject.so.2
squashfs-root/lib/libcairo.so.2
squashfs-root/lib/libcap.so.2
squashfs-root/lib/libdatrie.so.1
squashfs-root/lib/libdbus-1.so.3
squashfs-root/lib/libdl.so.2
squashfs-root/lib/libdynamic_color_plugin.so
squashfs-root/lib/libepoxy.so.0
squashfs-root/lib/libexpat.so.1
squashfs-root/lib/libffi.so.8
squashfs-root/lib/libflutter_linux_gtk.so
squashfs-root/lib/libfontconfig.so.1
squashfs-root/lib/libfreetype.so.6
squashfs-root/lib/libfribidi.so.0
squashfs-root/lib/libgcc_s.so.1
squashfs-root/lib/libgcrypt.so.20
squashfs-root/lib/libgdk-3.so.0
squashfs-root/lib/libgdk_pixbuf-2.0.so.0
squashfs-root/lib/libgio-2.0.so.0
squashfs-root/lib/libglib-2.0.so.0
squashfs-root/lib/libgmodule-2.0.so.0
squashfs-root/lib/libgobject-2.0.so.0
squashfs-root/lib/libgpg-error.so.0
squashfs-root/lib/libgraphite2.so.3
squashfs-root/lib/libgtk-3.so.0
squashfs-root/lib/libharfbuzz.so.0
squashfs-root/lib/libjpeg.so.8
squashfs-root/lib/liblz4.so.1
squashfs-root/lib/liblzma.so.5
squashfs-root/lib/libm.so.6
squashfs-root/lib/libmd.so.0
squashfs-root/lib/libmount.so.1
squashfs-root/lib/libpango-1.0.so.0
squashfs-root/lib/libpangocairo-1.0.so.0
squashfs-root/lib/libpangoft2-1.0.so.0
squashfs-root/lib/libpcre.so.3
squashfs-root/lib/libpcre2-8.so.0
squashfs-root/lib/libpixman-1.so.0
squashfs-root/lib/libpng16.so.16
squashfs-root/lib/libpthread.so.0
squashfs-root/lib/librt.so.1
squashfs-root/lib/libselinux.so.1
squashfs-root/lib/libstdc++.so.6
squashfs-root/lib/libsystemd.so.0
squashfs-root/lib/libthai.so.0
squashfs-root/lib/liburl_launcher_linux_plugin.so
squashfs-root/lib/libuuid.so.1
squashfs-root/lib/libwayland-client.so.0
squashfs-root/lib/libwayland-cursor.so.0
squashfs-root/lib/libwayland-egl.so.1
squashfs-root/lib/libwindow_size_plugin.so
squashfs-root/lib/libxcb-render.so.0
squashfs-root/lib/libxcb-shm.so.0
squashfs-root/lib/libxcb.so.1
squashfs-root/lib/libxkbcommon.so.0
squashfs-root/lib/libz.so.1
squashfs-root/lib/libzstd.so.1
squashfs-root/librescore
squashfs-root/librescore.desktop
squashfs-root/librescore.svg
squashfs-root/setup
squashfs-root/share
squashfs-root/share/applications
squashfs-root/share/applications/librescore.desktop
squashfs-root/share/icons
squashfs-root/share/icons/hicolor
squashfs-root/share/icons/hicolor/scalable
squashfs-root/share/icons/hicolor/scalable/apps
squashfs-root/share/icons/hicolor/scalable/apps/librescore.svg
voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications$ cd squashfs-root/
voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications/squashfs-root$ APPDIR=. ./AppRun
./AppRun: line 9: ./librescore: No such file or directory
voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications/squashfs-root$ ./librescore
bash: ./librescore: cannot execute: required file not found
voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications/squashfs-root$ ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7-
2.38
voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications/squashfs-root$ ldd "${APPDIR}/librescore" | grep "libstdc++" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7-
ldd: /librescore: No such file or directory

@PeterNjeim
Copy link
Member

PeterNjeim commented Jul 17, 2024

Sorry for the untested instructions, couldn't test them at the time, try these:

./LibreScore.AppImage --appimage-extract
cd ./squashfs-root
APPDIR=. ./AppRun
APPDIR=. ./librescore

While in the same folder, share the output of:

ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7-

ldd ./librescore | grep "libstdc++" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7-

@VoxelTek
Copy link
Author

With the APPDIR= commands, I get the same errors as before:

voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications/squashfs-root$ APPDIR=. ./AppRun
./AppRun: line 9: ./librescore: No such file or directory
voxeltek@VoxelTek-Kubuntu-Laptop:~/Documents/Applications/squashfs-root$ APPDIR=. ./librescore
bash: ./librescore: cannot execute: required file not found

I made sure to delete the previous squashfs-root folder before extracting, so it's not older files interfering.

As for the two other commands respectively:

  • 2.38
  • 2.34

For both of these tests, I have used the latest version of LibreScore as of making the comment.

@PeterNjeim
Copy link
Member

PeterNjeim commented Jul 18, 2024

cd into the squashfs-root/lib folder, then run:

APPDIR=.. ../AppRun
APPDIR=.. ../librescore

APPDIR=.. && ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7- && ldd "${APPDIR}/librescore" | grep "libstdc++" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1 | xargs -I {} strings {} | grep "GLIBC_[[:digit:]]" | sort -V | tail -n 1 | cut -c 7-

Try the following as well:

APPDIR=.. && cd "${APPDIR}/lib" && LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}/lib" "${APPDIR}/librescore"
APPDIR=.. TEMPPWD=$PWD && cd $(dirname $(ldd "${APPDIR}/librescore" | grep "ld-linux" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1)) && LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}/lib" LD_PRELOAD="$(ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libm\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libc\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "librt\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1)" && cd $TEMPPWD && "${APPDIR}/librescore"

@VoxelTek
Copy link
Author

I have switched to my desktop for this, but all results are identical, and both machines are running the exact same OS. I re-ran the previous tests and got identical results.

When running APPDIR=.. ../AppRun and APPDIR=.. ../librescore, the first one fails in the same way as it has before, but the second throws an error:

voxeltek@VoxelTek-Desktop:~/Documents/Applications/squashfs-root/lib$ APPDIR=.. ../AppRun
../AppRun: line 9: ../librescore: No such file or directory
voxeltek@VoxelTek-Desktop:~/Documents/Applications/squashfs-root/lib$ APPDIR=.. ../librescore
/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so: undefined symbol: g_assertion_message_cmpint
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
/home/voxeltek/Documents/Applications/squashfs-root/lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so)
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so

(librescore:178447): Gtk-WARNING **: 16:17:21.788: Error loading icon from file '/home/voxeltek/Documents/Applications/squashfs-root/data/flutter_assets/assets/librescore-square.svg':
        Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /home/voxeltek/Documents/Applications/squashfs-root/lib/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2)

(librescore:178447): Gtk-WARNING **: 16:17:22.117: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /home/voxeltek/Documents/Applications/squashfs-root/lib/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /home/voxeltek/Documents/Applications/squashfs-root/lib/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)
Aborted (core dumped)

The third command returns:

2.38
2.34

The next two commands return similar errors to the second:

voxeltek@VoxelTek-Desktop:~/Documents/Applications/squashfs-root/lib$ APPDIR=.. && cd "${APPDIR}/lib" && LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}/lib" "${APPDIR}/librescore"
/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so: undefined symbol: g_assertion_message_cmpint
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so)
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so

(librescore:178805): Gtk-WARNING **: 16:19:55.284: Error loading icon from file '/home/voxeltek/Documents/Applications/squashfs-root/data/flutter_assets/assets/librescore-square.svg':
        Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2)

(librescore:178805): Gtk-WARNING **: 16:19:55.330: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)
Aborted (core dumped)
voxeltek@VoxelTek-Desktop:~/Documents/Applications/squashfs-root/lib$ APPDIR=.. TEMPPWD=$PWD && cd $(dirname $(ldd "${APPDIR}/librescore" | grep "ld-linux" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1)) && LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}/lib" LD_PRELOAD="$(ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libm\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libc\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "librt\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1)" && cd $TEMPPWD && "${APPDIR}/librescore"
/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so: undefined symbol: g_assertion_message_cmpint
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
/home/voxeltek/Documents/Applications/squashfs-root/lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so)
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so

(librescore:178871): Gtk-WARNING **: 16:20:03.182: Error loading icon from file '/home/voxeltek/Documents/Applications/squashfs-root/data/flutter_assets/assets/librescore-square.svg':
        Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /home/voxeltek/Documents/Applications/squashfs-root/lib/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2)

(librescore:178871): Gtk-WARNING **: 16:20:03.225: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /home/voxeltek/Documents/Applications/squashfs-root/lib/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /home/voxeltek/Documents/Applications/squashfs-root/lib/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)
Aborted (core dumped)

@drmhessler
Copy link

drmhessler commented Jul 18, 2024

Whenever trying to open the most recent release on Kubuntu 24.04, I get this error:

/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/bin/sh: /tmp/.mount_LibreSc36Snr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/sh)
/tmp/.mount_LibreSc36Snr/AppRun: line 4: 73120 Segmentation fault      (core dumped) LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}/lib" LD_PRELOAD="$(ldconfig -p | grep "libstdc++\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libm\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "libc\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1):$(ldconfig -p | grep "librt\..*x86-64" | awk -F '=> ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | head -n 1)" "${APPDIR}/librescore" "$@"

I am not sure what causes this, or how to fix it.

Kind regards, @VoxelTek

I had exactly the same problem. The solution was to change the system library in the appimage by this command sequence:
 Extract image file to folder:
./LibreScore.appimage --appimage-extract
 Copy the system library to the lib-folder:
cp /lib/x86_64-linux-gnu/libc.so.6 squashfs-root/lib
 Create the tweaked LibreScore-x86_64.AppImage:
appimagetool squashfs-root

Hope, this helps you and others.
Kind regards

@PeterNjeim
Copy link
Member

Indeed, but what's confusing is why it isn't using the system libc. The final command should use the system libraries and not the packaged ones, but for some reason the error message shows libc still being the packaged one. The problem will fix on its own when GitHub Actions switches to Ubuntu 24.04, but for the time being I'm trying to figure out why the AppRun script isn't working as intended

@Arnesfield
Copy link

Arnesfield commented Sep 1, 2024

[edit] Apologies, I wasn't reading. Below is basically the same as #56 (comment):

This used to work before but stopped with the same error messages after upgrading to Ubuntu 24.04.1.

I don't know much about how this works, but I was able to fix and get LibreScore to work on my end by copying my local copy of libc.so.6 to the AppImage lib directory.

# extract appimage, outputs to squashfs-root/
./LibreScore.AppImage --appimage-extract

# copy libc.so.6 to appimage lib
cp /usr/lib/x86_64-linux-gnu/libc.so.6 squashfs-root/lib

# generate new appimage
./path/to/appimagetool-x86_64.AppImage -v squashfs-root/

Using appimagetool generates LibreScore-x86_64.AppImage which now works and can download scores. Not sure if there are any consequences in doing this, so please do let me know.

Also, here is the file output before performing the copy if it helps:

$ file /usr/lib/x86_64-linux-gnu/libc.so.6
/usr/lib/x86_64-linux-gnu/libc.so.6: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=6d64b17fbac799e68da7ebd9985ddf9b5cb375e6, for GNU/Linux 3.2.0, stripped

$ file squashfs-root/lib/libc.so.6
squashfs-root/lib/libc.so.6: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=490fef8403240c91833978d494d39e537409b92e, stripped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants