Title: Bug: AppImage injects bundled libs into system git's environment, breaking on modern distros · Issue #644 · github/app · GitHub
Open Graph Title: Bug: AppImage injects bundled libs into system git's environment, breaking on modern distros · Issue #644 · github/app
X Title: Bug: AppImage injects bundled libs into system git's environment, breaking on modern distros · Issue #644 · github/app
Description: On Arch Linux (and likely other rolling-release distros), all git operations fail with: git: /tmp/appimage_extracted_.../usr/lib/libpcre2-8.so.0: no version information available (required by git) git-remote-https: /tmp/appimage_extracte...
Open Graph Description: On Arch Linux (and likely other rolling-release distros), all git operations fail with: git: /tmp/appimage_extracted_.../usr/lib/libpcre2-8.so.0: no version information available (required by git) ...
X Description: On Arch Linux (and likely other rolling-release distros), all git operations fail with: git: /tmp/appimage_extracted_.../usr/lib/libpcre2-8.so.0: no version information available (required by git) ...
Opengraph URL: https://github.com/github/app/issues/644
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: AppImage injects bundled libs into system git's environment, breaking on modern distros","articleBody":"On Arch Linux (and likely other rolling-release distros), all git operations fail with:\n\n```\ngit: /tmp/appimage_extracted_.../usr/lib/libpcre2-8.so.0: no version information available (required by git)\ngit-remote-https: /tmp/appimage_extracted_.../usr/lib/libssl.so.3: version `OPENSSL_3.2.0' not found (required by /usr/lib/libcurl.so.4)\ngit-remote-https: /tmp/appimage_extracted_.../usr/lib/libssl.so.3: version `OPENSSL_3.5.0' not found (required by /usr/lib/libngtcp2_crypto_ossl.so.0)\nfatal: remote helper 'https' aborted session\n```\n\nThis practically means all sessions fail upon creation. I documented in [this comment](https://github.com/GitHubAppPrivatePreview/github-app/discussions/1#discussioncomment-16602928) in detail.\n\n**Root cause:** When the AppImage spawns git subprocesses, it passes its extracted lib directory (e.g. `/tmp/appimage_extracted_.../usr/lib`) via `LD_LIBRARY_PATH`. This causes the system git binary to load the AppImage's outdated bundled `libssl` and `libpcre2` instead of system ones, which on my Arch installation are incompatible.\n\n**Workaround:** Wrapping `/usr/bin/git` to strip AppImage paths from `LD_LIBRARY_PATH` before execution resolves the issue:\n```bash\nsudo mv /usr/bin/git /usr/bin/git.real\nsudo tee /usr/bin/git \u003c\u003c 'EOF'\n#!/bin/bash\nexport LD_LIBRARY_PATH=$(echo \"$LD_LIBRARY_PATH\" | tr ':' '\\n' | grep -v '/tmp/appimage' | tr '\\n' ':' | sed 's/:$//')\nexec /usr/bin/git.real \"$@\"\nEOF\nsudo chmod +x /usr/bin/git\n```\n\nI also needed to add additional flags:\n```\nAPPIMAGE_EXTRACT_AND_RUN=1 LD_PRELOAD=/usr/lib64/libwayland-client.so.0:/usr/lib64/libwayland-egl.so.1:/usr/lib64/libwayland-server.so.0:/usr/lib64/libwayland-cursor.so.0 ./GitHub-Copilot-linux-x64.appimage\n```\n\nThis workaround should not be required for general users. Suggested fixes:\n- Sanitize `LD_LIBRARY_PATH` before spawning git subprocesses\n- Bundle a fully self-contained git inside the AppImage\n- Launch git in a clean environment via `env -i`\n\n**Environment:**\n- OS: Arch Linux\n- Kernel: 7.0.10-zen1-1-zen\n- OpenSSL 3.6.2\n- App: GitHub Copilot AppImage (linux-x64)","author":{"url":"https://github.com/jmoseley","@type":"Person","name":"jmoseley"},"datePublished":"2026-06-02T18:14:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/644/app/issues/644"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd6333e6-c98c-1fa4-7fdb-e79d8113ba97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D244:29DF63:66A35D:8B2E65:6A627D6C |
| html-safe-nonce | 7f07627c2ad7660b648967135d8a8d6b9129f8c439bc4d2b7b8b08a0676ad4cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjQ0OjI5REY2Mzo2NkEzNUQ6OEIyRTY1OjZBNjI3RDZDIiwidmlzaXRvcl9pZCI6IjU1OTM5OTEwMTg0MzIzMzExMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 246ba2890a816f2fa822b16d6da02131bb6976b66f46f91d8e60d5611fb0204e |
| hovercard-subject-tag | issue:4573908392 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/app/644/issue_layout |
| twitter:image | https://opengraph.githubassets.com/32751411e0416806195f6207cd461ba03d7ce19837766aa9dd01dda4f3a4b4a8/github/app/issues/644 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/32751411e0416806195f6207cd461ba03d7ce19837766aa9dd01dda4f3a4b4a8/github/app/issues/644 |
| og:image:alt | On Arch Linux (and likely other rolling-release distros), all git operations fail with: git: /tmp/appimage_extracted_.../usr/lib/libpcre2-8.so.0: no version information available (required by git) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jmoseley |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54d77223ecd96549586d00f1e91ee7d05feebf27ea430279a9c4ba4b7de1a93c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/app git https://github.com/github/app.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1212958625 |
| octolytics-dimension-repository_nwo | github/app |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1212958625 |
| octolytics-dimension-repository_network_root_nwo | github/app |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4d79f1b99472a521fc5fb66e9fdc3ce742937dff |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width