The latest Fedora 43 upgrade broke my Flatpaks. I get this error on flatpak update or any other operation:
Warning: Failed to get revokefs-fuse socket from system-helper: Could not activate remote peer 'org.freedesktop.Flatpak.SystemHelper': startup job failed
Error: Could not activate remote peer 'org.freedesktop.Flatpak.SystemHelper': startup job failed
I had timeout errors this morning when updating flatpaks from Flathub. Just tried it again and now it works. No idea if this is related to the OP’s issue.
Okay, sudo flatpak update works as expected. Bunch of remote fetch errors without sudo, so maybe SELinux is to blame. Well, temporary fix achieved: prepend sudo.
Flatpak applications can be installed either per-user or system-wide. The difference is that per-user installations are only available to the user that installed them, while system-wide installations are available to all users on the system. System-wide installations can be updated by any user with administrator privileges. The choice between per-user and system-wide installations depends on the use case.
System-wide installations can be updated by any user with administrator privileges.
Yes, but it doesn’t normally require sudo to do so. You just need to be in an appropriate group (probably ‘wheel’), then you can run flatpak update to update system-wide installations.
So if the update only works with sudo, then something unexpected is going on.
Then I switched SELinux to permissive mode rebooted and now flatpak runs as normal. After switching it back on to enforcing I still can’t replicate the issue. So that seems to have fixed it, somehow?
I haven’t tried this in F43. Previously, running flatpak update on system-wide installations resulted in multiple password prompts – one for each component being updated.
I did sudoedit /etc/selinux/config, changed SELINUX= , then rebooted.
So admittedly it could have been something else like the flatpak repair which solved it, if that just needed a reboot to take effect.
I have another machine still on F42 which always asks for authentication on every package if flatpak is not run with sudo. Although my user there is a wheel user. I haven’t looked into it before since it’s not really been much of an issue, that machine updates fine when done automatically and I leave it at that.
==== AUTHENTICATING FOR org.freedesktop.Flatpak.modify-repo ====
Authentication is required to modify a system repository
Authenticating as: Username (username)
Password:
This laptop hasn’t prompted for a password before, at least since updating to F43 and I don’t remember it occurring on F42 either. Weird.
I’ve never had an auth prompt for flatpak. I run it as my login user (non-elevated, but member of wheel group). I’ve also tried everything except mentioned by @alghostzx except sudo fixfiles -B onboot.
I just tried the suggestion from @j-strawberry to switch SELinux modes. After sudo setenforce 0 (and no reboot), flatpak update runs as expected from unprivileged user. I’ll set SELinux policy to permissive, should keep flatpaks working on user account on each boot.
Edit: sudo setenforce 1 doesn’t reproduce the error, just as @j-strawberry mentioned. So solution was sudo setenforce 0, and then optionally sudo setenforce 1. Setting SELinux to enforce yields errors on uninstalls which aren’t present in permissive mode. Will update with behavior on next boot.
Can confirm that doing sudo setenforce 0;flatpak update;sudo setenforce 1 does indeed make Flatpak updates work, confirming that the problem, somehow, lies in the SELinux policy. I know NOTHING of SELinux, so I can’t troubleshoot beyond this.
I’ve also never had an auth prompt for Flatpak, and I don’t know why other users are trying to hijack this topic with this unrelated issue to the matter at hand.