Skip to content

[Bug] Linux deb/rpm don't declare ALSA and libgbm, app fails to start on minimal systems #5784

Closed

Description

@kukirin-ui

Description

The Linux deb and rpm packages don't list ALSA (libasound2) or libgbm1 as dependencies, but the Electron binary links both. On a system that doesn't already have them, the package installs fine and then the app fails at startup.

We first ran into this while testing the arm64 deb from the #5778 PR build on a phone running Ubuntu in proot. The x64 deb has the same gap.

Cause: electron-builder's default deb dependency list (libgtk-3-0, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1, libsecret-1-0) and its rpm list leave out ALSA and libgbm, and packages/desktop/electron-builder.yml doesn't override them. On a full desktop install these libraries are usually already there, which hides the problem.

Steps to Reproduce

  1. Start from a clean ubuntu-base 24.04 or 26.10 root (no desktop installed).
  2. apt-get install ./marktext-linux-0.22.0-dev.deb (the x64 deb from the feat: #5695 ship Linux arm64 packages in releases #5778 PR build). It installs without errors.
  3. Run /opt/MarkText/marktext --version.

Expected Behavior

apt pulls in everything the app needs, and marktext --version prints the version.

Actual Behavior

The binary can't load libasound.so.2 and exits. On Ubuntu 22.04, libgbm.so.1 is missing too (installing only ALSA there still fails on libgbm).

Screenshots / Logs

Ubuntu 26.10 and 24.04, ldd and --version after installing the deb:

-- missing libs:
	libasound.so.2 => not found
-- run --version:
/opt/MarkText/marktext: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

Ubuntu 22.04 with ALSA installed:

	libgbm.so.1 => not found
/opt/MarkText/marktext: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory

Operating System

Linux (Other)

MarkText Version

0.22.0-dev (deb from the #5778 PR build)

OS Version

Ubuntu 26.10, 24.04 and 22.04 (clean ubuntu-base roots, x64)

Reproducibility

  • I can reliably reproduce this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions