weixin_39775976
weixin_39775976
2021-01-06 23:14

AppImage fails to run on Ubuntu Xenial

Describe the bug

Fails to run on Ubuntu xenial:


/run/firejail/appimage/.appimage-9134/AppRun: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /run/firejail/appimage/.appimage-9134/AppRun)

/run/firejail/appimage/.appimage-9134/AppRun: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /run/firejail/appimage/.appimage-9134/usr/bin/../lib/libSDL2-2.0.so.0)

/run/firejail/appimage/.appimage-9134/AppRun: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /run/firejail/appimage/.appimage-9134/usr/bin/../lib/libpng16.so.16)

/run/firejail/appimage/.appimage-9134/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /run/firejail/appimage/.appimage-9134/usr/bin/../lib/libpulsecommon-11.1.so)

/run/firejail/appimage/.appimage-9134/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /run/firejail/appimage/.appimage-9134/usr/bin/../lib/libbsd.so.0)

/run/firejail/appimage/.appimage-9134/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /run/firejail/appimage/.appimage-9134/usr/bin/../lib/libsystemd.so.0)

/run/firejail/appimage/.appimage-9134/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /run/firejail/appimage/.appimage-9134/usr/bin/../lib/libsystemd.so.0)

Additional context All additional information can be found at https://github.com/AppImage/appimage.github.io/pull/1937, including a log file of the test run.

该提问来源于开源项目:endless-sky/endless-sky

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

18条回答

  • weixin_39775976 weixin_39775976 4月前

    Getting

    
    /run/firejail/appimage/.appimage-9276/AppRun: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /run/firejail/appimage/.appimage-9276/AppRun)
    
    /run/firejail/appimage/.appimage-9276/AppRun: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /run/firejail/appimage/.appimage-9276/usr/bin/../lib/libSDL2-2.0.so.0)
    
    /run/firejail/appimage/.appimage-9276/AppRun: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /run/firejail/appimage/.appimage-9276/usr/bin/../lib/libpng16.so.16)
    
    /run/firejail/appimage/.appimage-9276/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /run/firejail/appimage/.appimage-9276/usr/bin/../lib/libpulsecommon-11.1.so)
    
    /run/firejail/appimage/.appimage-9276/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /run/firejail/appimage/.appimage-9276/usr/bin/../lib/libbsd.so.0)
    
    /run/firejail/appimage/.appimage-9276/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /run/firejail/appimage/.appimage-9276/usr/bin/../lib/libsystemd.so.0)
    
    /run/firejail/appimage/.appimage-9276/AppRun: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /run/firejail/appimage/.appimage-9276/usr/bin/../lib/libsystemd.so.0)
    

    Please make sure that no libraries newer than what comes with xenial get pulled in, e.g., from PPAs.

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    That is weird, the AppImage is built on a GitHub Actions runner. The only modification is an apt install, but the entire sources.list.d directory is being pruned before that, so the only package source should be the official repos. (and yeah it does run apt update).

    I'm pretty much at a loss here, any ideas?

    点赞 评论 复制链接分享
  • weixin_39775976 weixin_39775976 4月前

    That image seems to have a lot of additional software that does not come with xenial from Canonical by default. Specifically I would assume this to cause at least the libstdc++ issue:

    • GNU C++ 7.4.0
    • GNU C++ 8.3.0
    • GNU C++ 9.2.1

    I am not familiar with GitHub Actions runners nor Azure Pipelines, but can you use a plain xenial Docker image from Canonical?

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    i'd have to test that... it would certainly simplify things since we've been having a number of issues with the action runners'... specialties. The CD is a construction site anyways, so this might take a while (to be PRd).

    点赞 评论 复制链接分享
  • weixin_39775976 weixin_39775976 4月前

    Thanks for considering.

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    That came out way hackier than expected. Can you give this one a try? ~~https://github.com/MCOfficer/endless-sky/actions/runs/58116055~~ Edit: this is the right one, sorry: https://github.com/MCOfficer/endless-sky/actions/runs/58185485

    It's built in the official xenial container, with no PPAs whatsoever - this pretty much has to work.

    点赞 评论 复制链接分享
  • weixin_39775976 weixin_39775976 4月前

    Thanks . Triggered a new test run but it looks like Travis CI has a hiccup at the moment, please ping me again in case I forget.

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    FYI, travis is back and the build went through - same error. To be completely honest, i'm close to capitulating. There's hardly any way for me to debug this, and i have 0 idea why it's still happening. Here's my last shot: an AppImage built by hand inside a clean ubuntu:xenial container. No CI shenanigans this time. The only curveball is that the script extracts linuxdeploy, because there's no fuse inside the container: https://github.com/MCOfficer/endless-sky/blob/cc51f0b222c91cfbefa750966570ece6bcc07ab6/utils/build_appimage.sh#L20-L26

    If this doesn't work either, perhaps your CI is outdated? I cannot possibly imagine the build tool linking against anything other than the latest g++ package from the xenial repos.

    点赞 评论 复制链接分享
  • weixin_39775976 weixin_39775976 4月前

    Maybe you can run your AppImage on a Ubuntu xenial Live ISO for local testing?

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    I just did run it on a VM - i had dreaded it because i've had... difficulties getting VirtualBoxes kernel modules to work in the past, but surprisingly it worked out immediately (thanks for making me try it again).

    As expected, the 0.9.11 AppImage built on bionic failed with the error you posted. But all the other AppImages i posted in this issue work flawlessly.

    The VM i used is a completely unmodified (apart from VBox guest additions) image from osboxes, the one titled "Ubuntu 16.04.6 Xenial", 64bit. In my book, that's pretty strong evidence that this is an issue with Travis' xenial, but if you want i can try a live ISO, too.

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    I did some more research, and the only alternative i see is to statically link against musl using a musl-based cross-compiler. That's a rabbithole i'd rather not go down unless it's absolutely necessary.

    Since 0.9.12 is around the corner, i'll PR my first fix (simply change the runner OS to xenial), until we have more clarity about the origin of this issue.

    点赞 评论 复制链接分享
  • weixin_39775976 weixin_39775976 4月前

    Thank you. Will it be available at https://github.com/MCOfficer/endless-sky/releases soon? (I never find it in "the other place".)

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    The PR has been merged, so once 0.9.12 is released it will be available on the releases page, not on my fork. You can already test with the latest CD build from the actions page. It should be the same as this one though.

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    can you confirm this is still an issue? https://github.com/endless-sky/endless-sky/releases/tag/v0.9.12

    点赞 评论 复制链接分享
  • weixin_39775976 weixin_39775976 4月前

    Thank you very much it is working now :+1:

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    works on my machine

    i will take a look on a VM.

    点赞 评论 复制链接分享
  • weixin_39744240 weixin_39744240 4月前

    I'm getting a segfault now on a stretch server, but that might be because it's headless. Can you give this a try? https://github.com/MCOfficer/endless-sky/actions/runs/56576245

    点赞 评论 复制链接分享
  • weixin_39775976 weixin_39775976 4月前

    Thanks , I have triggered a new run of the automated test.

    点赞 评论 复制链接分享

相关推荐