this post was submitted on 06 Oct 2025
21 points (100.0% liked)

Linux

59087 readers
914 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] drath@lemmy.world 18 points 2 weeks ago (1 children)

Solved. Had to run flatpak remove --all followed by flatpak repair to prune caches, then re-install every app again. But configs and logins seem to remain intact.

[–] GenderNeutralBro@lemmy.sdf.org 6 points 2 weeks ago

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.