Anyone has any ideas how to revive it? Whenever I try to run anything, I get
bwrap: Unable to open lock file /usr/.ref: No such file or directory
error: ldconfig failed, exit status 256
No logs in syslog other than an attempted launch.
Google is surprisingly unhelpful on this one. I’ve tried both flatpak repair
and apt install --reinstall flatpak
to no success. AI suggests to straight up purge flatpak entirely and start anew, but I am wary of it also taking out the app caches, logins, configs, etc, which I’d rather preserve if possible.
Distro is pop 22, btw
Solved. Had to run
flatpak remove --all
followed byflatpak repair
to prune caches, then re-install every app again. But configs and logins seem to remain intact.Thanks for posting the solution!
If you happen to be using a BTRFS or XFS file system, you might want to try duperemove. It will help you reclaim usable disk space without deleting any files, by using those filesystems’ built-in support for data deduplication and copy-on-write. In other words, it will make duplicate files point to the same data on disk, but still work as individual files. Files will appear and function exactly the same, and editing one copy will not change another (unlike with hard links, for example). That way it won’t interfere with cases like Flatpak or Python virtual environments where you really need multiple copies of the same files.