You are not logged in.

#1 2024-03-17 15:43:33

segment289
Member
Registered: 2018-06-05
Posts: 28

[SOLVED] Files "exist in filesystem" When Reinstalling All Packages

As per https://bbs.archlinux.org/viewtopic.php?id=293937, I fixed a failed pacman update to the point that I can boot into the system.

At the console, things seem to work okay.  I can run pacman, vim, sbcl, and all the usual Posix suspects.

But when I try something fancier, I get "file too short" errors on shared libraries:

$ emacs
emacs: error while loading shared libaries: /usr/lib/libtree-sitter.so.0: file too short

It's not just emacs, it's most of the things in my .xinitrc file.

As far as I can tell, my pacman database is okay:  I can install and uninstall packages.

Everything in the wiki leads to reinstalling all my packages, and then pages of "[file] exists in filesystem" errors prevent "pacman -Qqn | pacman -S -" from success.  (The first time I tried, I got a short list of packages that were corrupt, and it definitely resembled the list of files I was upgrading when pacman failed.  I deleted them, trusting that pacman would do the Right Thing because it always has before.)

And there are warnings all over pacman's "overwrite=*" option.

So here I am.  What is my next step?

Last edited by segment289 (2024-03-17 16:09:28)

Offline

#2 2024-03-17 15:45:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Files "exist in filesystem" When Reinstalling All Packages

pacman is ok, your pacman database is not.

https://wiki.archlinux.org/title/Pacman … )%22_error

Offline

#3 2024-03-17 16:09:07

segment289
Member
Registered: 2018-06-05
Posts: 28

Re: [SOLVED] Files "exist in filesystem" When Reinstalling All Packages

After adding the --overwrite=* parameter to "pacman -Qqn | pacman -S -" and "pacman -Qqm | [the [unsupported] AUR equivalent]," and waiting nervously through 700-ish packages being reinstalled, my system is happy again.

Thank you for your excellent and fast help.

Offline

Board footer

Powered by FluxBB