Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppImage fails to load libfuse.so.2 #8105

Open
AlistairTB opened this issue Dec 25, 2022 · 5 comments
Open

AppImage fails to load libfuse.so.2 #8105

AlistairTB opened this issue Dec 25, 2022 · 5 comments

Comments

@AlistairTB
Copy link

When running the appimage in Ubuntu (since jammy), currently kinetic 22.10), I get the erorr "error loading libfuse2.so.2".

To resolve, I must install libfuse2.so.2 with "apt install libfuse2".

libfuse2 has been deprecated and the default now is libfuse3.

@SomberNight
Copy link
Member

This is a known upstream issue, see AppImage/AppImageKit#1120 and https://docs.appimage.org/user-guide/troubleshooting/fuse.html#ref-ug-troubleshooting-fuse-fuse3

Unsure what we should do...

@accumulator
Copy link
Member

accumulator commented Dec 30, 2022

It looks like most distributions allow co-installation of fuse2 and fuse3, judging from the documentation at https://docs.appimage.org/user-guide/troubleshooting/fuse.html#ref-ug-troubleshooting-fuse-fuse3 (and confirmed by my local Debian install).

AppImage/AppImageKit#1120 however seems to indicate Ubuntu makes these fuse versions mutually exclusive. I don't see an easy fix for us. It's probably best to file a bug for ubuntu, requesting a change to packaging to support co-installation of fuse2 and 3.

@SomberNight
Copy link
Member

SomberNight commented Dec 30, 2022

AppImage/AppImageKit#1120 however seems to indicate Ubuntu makes these fuse versions mutually exclusive. I don't see an easy fix for us. It's probably best to file a bug for ubuntu, requesting a change to packaging to support co-installation of fuse2 and 3.

There are a lot of comments in that thread, where exactly do they say that?
IIUC, libfuse2 and libfuse3 can be co-installed. See e.g. AppImage/AppImageKit#1120 (comment) :

Installing fuse apparently breaks stuff, but installing just libfuse2 seems to work.


Appimage devs seem to have ~fixed this issue by rewriting large parts of their toolchain:
IIUC AppImageKit/appimagetool (C tool) might be deprecated at some point in favour of go-appimage/appimagetool (golang tool). The C library creates binaries that are dynamically linked against libfuse2, however the go library creates binaries that are statically linked, which would solve the problem. However, AFAICT the go library is still not considered production-ready.
(based on AppImage/AppImageKit#1120 (comment))

@accumulator
Copy link
Member

accumulator commented Dec 30, 2022

There are a lot of comments in that thread, where exactly do they say that?

I inferred it from

    22:03:42 pkkid-ubuntu ~: sudo apt-get install fuse
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following additional packages will be installed:
      libfuse2
    The following packages will be REMOVED:
      fuse3 xdg-desktop-portal xdg-desktop-portal-gtk
    The following NEW packages will be installed:
      fuse libfuse2
    0 upgraded, 2 newly installed, 3 to remove and 11 not upgraded.
    Need to get 0 B/117 kB of archives.
    After this operation, 1,120 kB disk space will be freed.
    Do you want to continue? [Y/n] 

Hmm now that I re-read this, it might be just the cli frontend (fuse), not the lib (libfuse2) that is mutually exclusive. I don't have an ubuntu install to test right now, sorry.

@AlistairTB
Copy link
Author

I am able to resolve the issue by simply installing the libfuse2 package. I am unaware of any ill effects of doing this. I'll settle for this workaround until the upstream stuff gets worked out. Thank you for the amazing work!

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

No branches or pull requests

3 participants