Skip to content

4.0.0 AppImage fails to start when libOpenGL.so.0 is missing (Ubuntu 26.04 minimal desktop) #12093

Closed

Description

@kfl

Bug description

The Audacity 4.0.0 x86_64 AppImage aborts at startup on a fresh Ubuntu 26.04
"Minimal installation" desktop because it requires libOpenGL.so.0 (libglvnd),
which is not installed by default on that configuration and is not bundled in
the AppImage. Installing libopengl0 fixes it.

The MuseScore AppImage, built with the same packaging framework, handles this
case by shipping libOpenGL.so.0 as a fallback library; Audacity's
make_appimage.sh has the same mechanism but does not list libOpenGL.so.0.
See "Suggested fix" below.

Steps to reproduce

  1. Install Ubuntu 26.04 choosing "Minimal installation" (GNOME, Wayland).
  2. Download audacity-linux-4.0.0-x86_64.AppImage, chmod +x, run from a terminal.

Expected behavior

Audacity starts

Actual behavior

$ ./audacity-linux-4.0.0-x86_64.AppImage
/usr/lib/x86_64-linux-gnu/libjack.so.0
/usr/lib/x86_64-linux-gnu/libnss3.so
/tmp/.mount_audaciDeJeJD/bin/audacity4portable: error while loading shared
libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory

sudo apt install libopengl0 resolves it.

Audacity Version

Audacity 4.0.0

Operating system

Linux

Additional context

Reproduced in a clean container

Confirmed in an ubuntu:26.04 podman container with the AppImage extracted
(--appimage-extract) and the host libraries that any desktop provides
installed (libx11-6 libasound2t64 libgl1 libegl1 libfontconfig1 libglib2.0-0t64), but not libopengl0.

Additional context

  • ldd squashfs-root/bin/audacity4portable | grep 'not found' (before installing
    any host libs) lists libX11, libasound, libGLX, libOpenGL, libGL, libjack,
    libEGL, libfontconfig, libglib-2.0, libgthread-2.0. All except libOpenGL are
    present on the minimal desktop.
  • ls squashfs-root/lib | grep -iE GL shows only libQt6OpenGL.so.6 and
    libxcb-glx.so.0: no libGL/libEGL/libOpenGL are bundled, as expected, since
    linuxdeploy excludes them so the host GPU stack is used.
  • On Ubuntu, libgl1 and libegl1 are pulled in by the desktop but libopengl0
    is a separate package that nothing in the minimal install depends on
    (apt-cache rdepends --installed libopengl0 is empty). The full Ubuntu desktop
    gets it indirectly, which is probably why this was not seen in testing.
  • Qt6 links libOpenGL unconditionally; see https://bugreports.qt.io/browse/QTBUG-89754

Suggested fix

In buildscripts/ci/linux/make_appimage.sh, MuseScore has

fallback_libraries=(
  libjack.so.0 # https://github.com/LMMS/lmms/pull/3958
  libOpenGL.so.0 # https://bugreports.qt.io/browse/QTBUG-89754
)

while Audacity's copy lists only libjack.so.0. Adding the libOpenGL.so.0 line
should be sufficient: the fallback_library() function and the AppRun check
that adds fallback/<lib> to LD_LIBRARY_PATH only when the host lacks it
already exist in Audacity's script. I can open a PR for this.

Audacity version

4.0.0 (AppImage, x86_64)

OS

Ubuntu 26.04.1, GNOME 50, Wayland

Activity

  1. added theissue type on Sep 9, 2026
  2. kryksyh commented on Sep 10, 2026

    @kryksyh
    Member

    @kfl thank you!

  3. kfl commented on Sep 11, 2026

    @kfl
    ContributorAuthor

    @kryksyh happy to help. I know it is just a small papercut issue.

    I also made an other PR #12104 as fix for #10135 which is also for making the installation on Linux more smooth. Let me know if there is something I can/should do different to aide the life of maintainers. In both cases I tried to keep changes minimal.

  4. moved this from Ready for QA to In QA in [AU4] Release Maintenanceon Sep 23, 2026
  5. self-assigned this
    on Sep 23, 2026
  6. moved this from In QA to Ready for Merge in [AU4] Release Maintenanceon Sep 23, 2026
  7. chinakov commented on Sep 23, 2026

    @chinakov
    Contributor

    This is done, thanks!

  8. added a commit that references this issue on Sep 23, 2026
    4569803
  9. added a commit that references this issue on Sep 23, 2026
    820c8d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Fields

Priority

None yet

Effort

None yet

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions