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

gimp and audacity appimages not running on Debian 12 (bookworm) #158

Closed
bert003 opened this issue Feb 17, 2024 · 33 comments
Closed

gimp and audacity appimages not running on Debian 12 (bookworm) #158

bert003 opened this issue Feb 17, 2024 · 33 comments

Comments

@bert003
Copy link

bert003 commented Feb 17, 2024

When running both appimages, I get the following error:

dlopen(): error loading libfuse.so.2
AppImages require FUSE to run.
You might still be able to extract the contents of this AppImage if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE for more information

When I install fuse and libfuse2, audacity manages to run, but gimp still fails with the error above.

Any solution please? It seems that gimp is not detecting libfuse.so.2 but audacity detects it fine.

@bert003
Copy link
Author

bert003 commented Feb 17, 2024

I am using the latest. What I noticed is that if you just download the AppImage file and run it, it runs fine. However through AM, it complains about libfuse.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

Have you installed libfuse2 from Debian repositories or from AM?

@bert003
Copy link
Author

bert003 commented Feb 17, 2024

I installed from Debian repositories.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

The fuse package should be deprecated, you should install fuse3

@bert003
Copy link
Author

bert003 commented Feb 17, 2024

I have fuse3 installed already. Still it complains. The curious thing is if you just download the AppImage file and run it, it runs fine. However through AM, it complains about libfuse.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

First step, try to load the library in ld-cache normally, maybe ld-linux has not detected the new library

sudo ldconfig

If this not works, try to reboot.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

@bert003 However, it seems that you have installed something like AppimageLauncher previously, isn't it? It contrasts with the workflow of AM due to background daemon.

EDIT: this issue remembers me #107

@bert003
Copy link
Author

bert003 commented Feb 17, 2024

No. I have not installed AppImageLauncher previously. What I did was install fuse and libfuse2 and now everything works. It seems that the appimages are still demanding to have libfuse2.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

@bert003 I've nut understand, are they working and asking for libfuse2 at the same time?

@bert003
Copy link
Author

bert003 commented Feb 17, 2024

I rushed to say that it works. I tested again using a Debian Live distribution.

When I run the appimage, it fails with libfuse.so.2 error.

Then I installed strace and executed strace -f -o out.txt ./gimp and instead of the libfuse.so.2 error, I get fusermount: mount failed: Operation not permitted

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

OK, it seems that you require some permissions

Have you read the guide suggested above? https://github.com/AppImage/AppImageKit/wiki/FUSE

Probably your user have not premissions to use FUSE

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

Also, have you installed fuse3 instead of fuse?

sudo apt install fuse3 && sudo apt remove --purge fuse

@bert003
Copy link
Author

bert003 commented Feb 17, 2024

No I do not think it is a permission issue. I used strace -f as shown here AppImage/AppImageKit#1120 (comment)

I have u+s permission for fusermount.... no luck unfortunately using a Debian Live distro.

You can test it yourself by downloading a Debian Live distro and use AM on it. Try with gimp since audacity works. I am saving everything in my home directory in ~/Programs not in /opt.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 17, 2024

I have Debian 64bit and 32bit on both PC and laptop and GIMP AppImages for both 64bit and 32bit work normally (and I'm the developer of both the packages).

Also, I use Debian Testing that "should be quite unstable" if compared with Debian Stable. I cannot reproduce the issue.

Again, you have not answered my previous question have you replaced fuse with fuse3? Also the guide says that fuse may brick the compatibility.

@bert003
Copy link
Author

bert003 commented Feb 18, 2024

Yes I did replace fuse with fuse3. No luck. Did you try using a LIVE cd though and not an actual installation? I appreciate if you could download a Debian Live ISO and test yourself.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 18, 2024

What is the sense of installing AM on a live session? You should use AM on an already installed system.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 18, 2024

I am saving everything in my home directory in ~/Programs not in /opt

are you talking about AppMan?

@bert003
Copy link
Author

bert003 commented Feb 18, 2024

What is the sense of installing AM on a live session?

Portability

Yes it's appman I guess. It is part of AM right?

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 18, 2024

Yes, it requires to be named as appman to work like this.

Also, it has a function to patch ~/.profile and ~/.bashrc to place ~/.local/bin at the end of echo $PATH to give it the right priority. So if you use a "persistent" environment, I don't think it will work.

For what I have understand, you're trying to create a persistent enviroment to use into a Live session (i.e. you can start a new session but with the same $HOME directory).

I lost the thread of the conversation. We started with libfuse2 which is not detected by an application, now we are talking about using AppMan in a Live session (a whole day has passed).

I think, with the right configuration, you can use AppMan on a USB stick that sees the same drive as a /home/$USER path

But a Live system is not permanently set up and configured to work 100% with all the libraries you need. Likewise, ld-linux.so must detect all linked libraries, including libfuse2, in order to better mount AppImages, which are nothing more than portable filesystems to be mounted on another filesystem.

I don't know how this level of portability that you want to use works. If you can, send me a video or screenshots so I can see what's going wrong. The way you tell me things is confusing.

@bert003
Copy link
Author

bert003 commented Feb 18, 2024

Hi @ivan-hc - sorry for the confusion but I got confused myself as well with this strange issue.

I finally managed to find the cause of the issue though.

Basically everything breaks when you create a symlink from /home/user/.local/bin/gimp -> /home/user/Programs/gimp/gimp.

Therefore when I do: ln -s /home/user/Programs/gimp/gimp /home/user/.local/bin/gimp, it starts triggering the libfuse.so.2 error. If the symlink is not created, everything works fine.

Personally I cannot explain why this happens. Maybe you have an idea why?

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 18, 2024

I think that the big issue here is that you're using a volatile environment, so BASH configuration will reset at each start. This is why thi does not work for you. I don't think that you can use my tools this way.

@bert003
Copy link
Author

bert003 commented Feb 18, 2024

I am using persistence so not volatile as such. However the issue is solved I guess. There must be a valid reason though as regards the symlink. If I manage to find why, I will post an update. Thanks.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 18, 2024

What if you do echo $PATH? The result should put $HOME/.local/bin at the end.

Also, someone had the same issue but because previously him have installed AppimageLauncher and some .service files where not been removed (check your ~/.config or ~/.local directory for unneeded files).

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 18, 2024

What if you run AppMan with a new user (so with a new $HOME and new configuration files)?

@bert003
Copy link
Author

bert003 commented Feb 19, 2024

I will test your suggestions using a Debian Live distribution (without persistence) so that it is a clean boot. Will get back to you with the results then. Please allow me some time since I am quite busy with work this week.

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 19, 2024

don't worry

@bert003
Copy link
Author

bert003 commented Feb 25, 2024

Hi @ivan-hc - I have just created a new Debian 12.4 virtual machine - what exactly do you want me to test as regards AppMan?

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 25, 2024

@bert003 Have you forgotten why you opened this issue?

@bert003
Copy link
Author

bert003 commented Feb 25, 2024

No I didn't of course :) however I told you earlier that I found the cause of the issue (even though I cannot explain it)

Therefore when I do: ln -s /home/user/Programs/gimp/gimp /home/user/.local/bin/gimp, it starts triggering the libfuse.so.2 error. If the symlink is not created, everything works fine.

So you just want me to run AppMan as a standard user and test using gimp and audacity right?

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 25, 2024

yes

@bert003
Copy link
Author

bert003 commented Feb 26, 2024

Everything works just fine with appman. Even symlinking from /usr/local/bin:

gimp -> /home/test/Programs/gimp/gimp

Shall I test again with AM (same scenario)?

@ivan-hc
Copy link
Owner

ivan-hc commented Feb 26, 2024

As you wish, but I think there is no need. AM and AppMan are not for Live ISO and persistent environments. If you consider it resolved, close this issue.

@bert003
Copy link
Author

bert003 commented Feb 26, 2024

Ok then. Yes closing issue as it can be considered as resolved.

@bert003 bert003 closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants