Skip to content

Bug: Installer fails on Ubuntu 24.04+ due to libxml2 version mismatch #686

@jay0runsh-svg

Description

@jay0runsh-svg

Bug: Installer fails on Ubuntu 24.04+ due to libxml2 version mismatch

Environment:

  • OS: Ubuntu 24.04 (and likely any distro with libxml2 2.12+)
  • Arch: x86_64

Problem:
The installer fails at the verification step with:

libxml2.so.2: no version information available
undefined symbol: valuePush, version LIBXML2_2.4.30

Ubuntu 24.04 ships with libxml2 2.12+ (soname: libxml2.so.16), but the bundled webkit2gtk-4.0 in your dependencies package was compiled against the old libxml2.so.2 (2.9.x). The two versions are ABI-incompatible — specifically the symbol valuePush@@LIBXML2_2.4.30 is missing in libxml2 2.12.

Workaround (for users):

# Download old libxml2 from Ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2_2.9.13+dfsg-1ubuntu0.11_amd64.deb
dpkg-deb -x libxml2_2.9.13+dfsg-1ubuntu0.11_amd64.deb /tmp/libxml2-old
sudo cp /tmp/libxml2-old/usr/lib/x86_64-linux-gnu/libxml2.so.2.9.13 /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.13
sudo ln -sf /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.13 /usr/lib/x86_64-linux-gnu/libxml2.so.2

Then re-run the installer.

Proper fix:
The bundled webkit2gtk-4.0.tar.xz in https://github.com/phcode-dev/dependencies should be recompiled against libxml2 2.12 (libxml2.so.16), or the installer should detect the libxml2 version mismatch and automatically download and place a compatible libxml2.so.2 before verification.

This affects any Ubuntu 24.04+ user trying a fresh install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions