Unable to install flatpaks

Whenever I try to install a package through Flatpak, I get this error: opendir(refs/remotes): No such file or directory. This happens in the discovery store, through the flatpak cli. Running flatpak with sudo works fine. I have tried using flatpak repair -u, as well as removing ~/.local/share/flatpak. I only installed bazzite a few days ago and I was able to install packages with no issues for the first two days.
Solution:
not really sure how, but it's working now after a reboot. Haven't done anything besides what I mentioned in the first message, but I guess one of those plus a restart fixed it.
Jump to solution
3 Replies
wolfyreload
wolfyreload2mo ago
If you run flatpak remotes -d it will probably just give you this
Name Title URL Collection ID Subset Filter Priority Options Comment Description Homepage Icon
Name Title URL Collection ID Subset Filter Priority Options Comment Description Homepage Icon
That means that no flatpak remotes are configured. Try run flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo then see if you can install software again.
quasigod
quasigodOP2mo ago
when i run that i get this:
Name Title URL Collection ID Subset Filter Priority Options Comment Description Homepage Icon
flathub Flathub https://dl.flathub.org/repo/ - - - 1 system - - - -
Name Title URL Collection ID Subset Filter Priority Options Comment Description Homepage Icon
flathub Flathub https://dl.flathub.org/repo/ - - - 1 system - - - -
the system flathub remote was there before, i've been able to install packages using sudo
Solution
quasigod
quasigod5w ago
not really sure how, but it's working now after a reboot. Haven't done anything besides what I mentioned in the first message, but I guess one of those plus a restart fixed it.

Did you find this page helpful?