Skip to content

snap run ruby.gem fails with undefined symbol #42

@maxkapur

Description

@maxkapur

Came here from #14, but my issue is even broader—I can't run the gem command from the snap at all:

> snap run ruby.gem --help
ruby: symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE

apt installing everything that comes up in apt search libpthread did not help.

Installation details:

> snap run ruby --version
ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [x86_64-linux]
> snap --version
snap    2.68.4
snapd   2.68.4
series  16
ubuntu  25.04
kernel  6.14.0-15-generic

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