Flatpak permission issues
Lately, I've been having some issues with running most of my Flatpak apps.
It seems to be related to Vulkan and the inability to create files in /usr (which it shouldn't).
I've tried repairing flatpak, tried reinstalling apps with system or user with no luck. I tried rolling back to F40 with no luck then rebased to stable again. Everything should be up to date (using
ujust upgrade
). I've tried researching with no luck, I might have to wipe and install bazzite again but I hope I don't have to go that route.
Here's an example where protontricks fails to run:
30 Replies
why is that trying to run it as a service?
I'm not sure. I pulled these logs from journalctl. Almost all flatpak apps will generate a similar error.
I was having the same issue with Chrome a few days ago. It randomly started working, and today, it stopped working again.
i usually only see those bwrap errors when there's a bad symlink somewhere
do you have any folders symlinked to
/
or ~/.var/app
?
please run ll /
and provide the outputdid you ever run flatpak with sudo?
or did you install those apps using
sudo
?Just chekcked
history
and the only time I've ran flatpak with sudo (or as root) was when trying to update Sunshine as I was having trouble launching it. flatpak update com.sunshine.Sunshine
Everything after #173 was tests after I started having issues.
I can’t imagine that updating those Vulkan runtimes using sudo helped
nope, but I was desperate 😅
something jumping out at me from this is that you ran this command as root. do you normally run commands as root?
No, don't run things as root usually. At least I don't try to. The reason why I ran that command as root is to search history when I tried running
flatpak
as root (sudo -i) and not sudo flatpak
from my normal user.I should note here that you should never be running
flatpak
with sudo
-- likely to avoid all of this
you should probably uninstall everything you touched using sudo flatpak
or sudo -i
also, don't mess with the Sunshine flatpak. there's already a ujust
script to layer it in for better usageThe only exception was Sunshine because it needed some access and read that it was suggested to run as sudo. Other commands were my tests/tries to get the flatpaks to work. It's been a long time since I ran the Sunshine commands and stuff had been working fine until recently
ujust setup-sunshine
exists alreadythat's what I'm using now. Learned that a bit late though as I had already tried to get it with Flatpak (and sudo on top of it)
I'd go in and uninstall Chrome, Sunshine and Protontricks then reinstall them non-sudo
I can give that another try. Do you suggest installing via Discover or cli?
doesn't really matter so long as you aren't root/sudo
reinstalled but the same error shows up
can you try running any other flatpak that wasn't touched by sudo?
I also forgot to mention that you may probably want to uninstall the GL runtime as well because you updated that with sudo
Same error by picking random flatpak apps. I have not installed Chrome or Protontricks via sudo.
reinstalling GL now
Protontricks error changed with a different directory:
reinstall the packages with GL32 in the name
same GL error with protontricks
GitHub
bwrap: Can't mkdir /app/lib/i386-linux-gnu/GL: Read-only file syste...
Hello, When trying to launch lutris, I get the following error: bwrap: Can't mkdir /app/lib/i386-linux-gnu/GL: Read-only file system error: ldconfig failed, exit status 256 Is there anything th...
I assume #9 for 47 right?
The comment on Github mentions 3.34 but I'm assuming that was recent back in 2019
yeah you probably need 47
Also, is there a difference when installing flatpaks as system vs user? I think it's the same even though I only have one user
system is the default now
I wouldn't install anything with user because then you'd have two copies of the runtimes
protontricks same error with the changes
interesting that
org.libretro.RetroArch
might be the only flatpak working. Maybe it does not depend on vulkan?Nope, it uses vulkan so that might not be it
One thing that could be related is that I had trouble running games in Desktop mode as well. The
~/.vulkan/extensions/vulkan_icd.json
did not exist. I added the file manually with some data that I gathered during some research for my device (Rog Ally X with AMD iGPU). Games run fine in desktop mode now. Game mode was not affected.
Not sure if that could be related with the flatpak mentioning the /usr/lib/extension/vulkan
directory.