Skip to content

Way too many files "exist in filesystem" when updating xfsprogs

Look at all this. The "proper" way of fixing this would apparently be to go through, one at a time, and check all of these files to see which package owns which file... and apparently --force is deprecated and the wiki now says something about "glob" without any context of what that means. Having read the Wikipedia article I'm still not sure how I'd use this. What's actually the best approach here?

It's only been like a week since I last updated.

error: failed to commit transaction (conflicting files)
xfsprogs: /usr/bin/fsck.xfs exists in filesystem
xfsprogs: /usr/bin/mkfs.xfs exists in filesystem
xfsprogs: /usr/bin/xfs_admin exists in filesystem
xfsprogs: /usr/bin/xfs_bmap exists in filesystem
xfsprogs: /usr/bin/xfs_copy exists in filesystem
xfsprogs: /usr/bin/xfs_db exists in filesystem
xfsprogs: /usr/bin/xfs_estimate exists in filesystem
xfsprogs: /usr/bin/xfs_freeze exists in filesystem
xfsprogs: /usr/bin/xfs_fsr exists in filesystem
xfsprogs: /usr/bin/xfs_growfs exists in filesystem
xfsprogs: /usr/bin/xfs_info exists in filesystem
xfsprogs: /usr/bin/xfs_io exists in filesystem
xfsprogs: /usr/bin/xfs_logprint exists in filesystem
xfsprogs: /usr/bin/xfs_mdrestore exists in filesystem
xfsprogs: /usr/bin/xfs_metadump exists in filesystem
xfsprogs: /usr/bin/xfs_mkfile exists in filesystem
xfsprogs: /usr/bin/xfs_ncheck exists in filesystem
xfsprogs: /usr/bin/xfs_quota exists in filesystem
xfsprogs: /usr/bin/xfs_repair exists in filesystem
xfsprogs: /usr/bin/xfs_rtcp exists in filesystem
xfsprogs: /usr/bin/xfs_scrub exists in filesystem
xfsprogs: /usr/bin/xfs_scrub_all exists in filesystem
xfsprogs: /usr/bin/xfs_spaceman exists in filesystem
xfsprogs: /usr/include/xfs/handle.h exists in filesystem
xfsprogs: /usr/include/xfs/jdm.h exists in filesystem
xfsprogs: /usr/include/xfs/linux.h exists in filesystem
xfsprogs: /usr/include/xfs/xfs.h exists in filesystem
xfsprogs: /usr/include/xfs/xfs_arch.h exists in filesystem
xfsprogs: /usr/include/xfs/xfs_da_format.h exists in filesystem
xfsprogs: /usr/include/xfs/xfs_format.h exists in filesystem
xfsprogs: /usr/include/xfs/xfs_fs.h exists in filesystem
xfsprogs: /usr/include/xfs/xfs_log_format.h exists in filesystem
xfsprogs: /usr/include/xfs/xfs_types.h exists in filesystem
xfsprogs: /usr/include/xfs/xqm.h exists in filesystem
xfsprogs: /usr/lib/libhandle.so exists in filesystem
xfsprogs: /usr/lib/libhandle.so.1 exists in filesystem
xfsprogs: /usr/lib/libhandle.so.1.0.3 exists in filesystem
xfsprogs: /usr/lib/systemd/system/xfs_scrub@.service exists in filesystem
xfsprogs: /usr/lib/systemd/system/xfs_scrub_all.service exists in filesystem
xfsprogs: /usr/lib/systemd/system/xfs_scrub_all.timer exists in filesystem
xfsprogs: /usr/lib/systemd/system/xfs_scrub_fail@.service exists in filesystem
xfsprogs: /usr/lib/xfsprogs/xfs_scrub_all.cron exists in filesystem
xfsprogs: /usr/lib/xfsprogs/xfs_scrub_fail exists in filesystem
xfsprogs: /usr/share/doc/xfsprogs/CHANGES.gz exists in filesystem
xfsprogs: /usr/share/doc/xfsprogs/CREDITS exists in filesystem
xfsprogs: /usr/share/doc/xfsprogs/README exists in filesystem
xfsprogs: /usr/share/locale/de/LC_MESSAGES/xfsprogs.mo exists in filesystem
xfsprogs: /usr/share/locale/pl/LC_MESSAGES/xfsprogs.mo exists in filesystem
xfsprogs: /usr/share/man/man2/ioctl_xfs_scrub_metadata.2.gz exists in filesystem
xfsprogs: /usr/share/man/man3/attr_list_by_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/attr_multi_by_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/fd_to_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/free_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/fssetdm_by_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/getparentpaths_by_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/getparents_by_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/handle_to_fshandle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/open_by_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/path_to_fshandle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/path_to_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/readlink_by_handle.3.gz exists in filesystem
xfsprogs: /usr/share/man/man3/xfsctl.3.gz exists in filesystem
xfsprogs: /usr/share/man/man5/projects.5.gz exists in filesystem
xfsprogs: /usr/share/man/man5/projid.5.gz exists in filesystem
xfsprogs: /usr/share/man/man5/xfs.5.gz exists in filesystem
xfsprogs: /usr/share/man/man8/fsck.xfs.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/mkfs.xfs.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_admin.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_bmap.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_copy.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_db.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_estimate.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_freeze.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_fsr.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_growfs.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_info.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_io.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_logprint.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_mdrestore.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_metadump.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_mkfile.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_ncheck.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_quota.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_repair.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_rtcp.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_scrub.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_scrub_all.8.gz exists in filesystem
xfsprogs: /usr/share/man/man8/xfs_spaceman.8.gz exists in filesystem
Errors occurred, no packages were upgraded.

Edited 26 Oct 2019. We only hold this version.

2 points11 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Text
ID
dn9st8

Author

274
posts
426
comments
39
media
View profile

11 comments

What does pacman -Qo /usr/bin/fsck.xfs say?

7 points

error: No package owns /usr/bin/fsck.xfs

1 points

ls /var/lib/pacman/local/xfsprogs*?

Look through /var/log/pacman.log, search for parts relevant to xfsprogs. Like people said, either pacman died/was killed mid-stream or you have fs corruption.

2 points

This indicates either a borked fs or a killed pacman, you should run pacman -Qkk 1>/dev/null to see if you have more things messed up.

5 points

Hmm. Quite a few little issues looks like. I just remembered, one week ago I tried to install a printer driver for my Brother HL-2220, took a couple tries. I might have screwed something up in my first attempt, maybe?

$ pacman -Q xfsprogs
error: package 'xfsprogs' was not found
[chris@archdesk ~]$ pacman -Qkk 1>/dev/null
warning: accountsservice: /var/lib/AccountsService/icons (Permissions mismatch)
warning: audit: /etc/audisp/plugins.d/af_unix.conf (Permission denied)
warning: audit: /etc/audisp/plugins.d/au-remote.conf (Permission denied)
warning: audit: /etc/audisp/plugins.d/audispd-zos-remote.conf (Permission denied)
warning: audit: /etc/audisp/plugins.d/syslog.conf (Permission denied)
warning: bolt: /usr/share/polkit-1/rules.d/org.freedesktop.bolt.rules (Permission denied)
warning: cups: /etc/cups/classes.conf (Permissions mismatch)
warning: cups: /etc/cups/printers.conf (Permissions mismatch)
warning: cups: /var/cache/cups/rss (Permission denied)
warning: cups: /var/spool/cups/tmp (Permission denied)
warning: gvfs: /usr/share/polkit-1/rules.d/org.gtk.vfs.file-operations.rules (Permission denied)
warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)
warning: lib32-colord: /var/lib/colord (UID mismatch)
warning: lib32-colord: /var/lib/colord (GID mismatch)
warning: lib32-colord: /var/lib/colord/icc (UID mismatch)
warning: lib32-colord: /var/lib/colord/icc (GID mismatch)
warning: lightdm: /usr/share/polkit-1/rules.d/lightdm.rules (Permission denied)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.alias (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.alias.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.builtin.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.dep (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.dep.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.devname (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.softdep (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.symbols (Modification time mismatch)
warning: linux: /usr/lib/modules/5.3.7-arch1-1-ARCH/modules.symbols.bin (Modification time mismatch)
warning: npm: /usr/lib/node_modules/npm/node_modules/cmd-shim/lib (UID mismatch)
warning: npm: /usr/lib/node_modules/npm/node_modules/cmd-shim/lib (GID mismatch)
warning: polkit: /usr/share/polkit-1/rules.d/50-default.rules (Permission denied)
warning: shadow: /usr/bin/newgidmap (Permissions mismatch)
warning: shadow: /usr/bin/newuidmap (Permissions mismatch)
warning: systemd: /usr/share/polkit-1/rules.d/systemd-networkd.rules (Permission denied)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Size mismatch)
1 points

Most of those are files that gets modified at runtime so they are fine. And some are because you didn't run it as root, and a normal user doesn't have access to the entire filesystem, hence the permission denied ones.

3 points

What's actually the best approach here?

Finding out what the hell happened to your pacman database. As you might have guessed, this is not normal.

Does pacman think that xfsprogs is not installed anymore? I.e. has its database entry vanished but the files weren't removed? Have you done anything in the filesystem without pacman's knowledge, like sudo make install? Try:

pacman -Q xfsprogs
pacman -Qkk xfsprogs  # (only if it's properly installed)

This should tell you what pacman knows about the package. If it doesn't know about it at all, then someone or something has messed up.

5 points

Have you done anything in the filesystem without pacman's knowledge, like sudo make install?

Not that, but I did try installing a Brother printer driver and ran into some issues a week ago. I guess something could have gone wrong there.

$ pacman -Q xfsprogs
error: package 'xfsprogs' was not found
1 points

If you want to overwrite them all:

pacman -S --overwrite '*' xfsprogs

"Glob" means some string that is supposed to match filenames according to the "globbing" rules, that is: "?" matches any one character other than a directory separator, "*" matches zero or more such characters, other characters match only themselves.

-1 points

This is bad advice. Please figure out what is wrong with the system before taking a hammer to the harddrive...

8 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.