[While updating] Error: failed to commit transaction (conflicting files)

 error: failed to commit transaction (conflicting files)
gmp: /usr/include/gmp.h exists in filesystem
gmp: /usr/include/gmpxx.h exists in filesystem
gmp: /usr/lib/libgmp.so exists in filesystem
gmp: /usr/lib/libgmp.so.10 exists in filesystem
gmp: /usr/lib/libgmp.so.10.4.1 exists in filesystem
gmp: /usr/lib/libgmpxx.so exists in filesystem
gmp: /usr/lib/libgmpxx.so.4 exists in filesystem
gmp: /usr/lib/libgmpxx.so.4.6.1 exists in filesystem
gmp: /usr/lib/pkgconfig/gmp.pc exists in filesystem
gmp: /usr/lib/pkgconfig/gmpxx.pc exists in filesystem
gmp: /usr/share/info/gmp.info-1.gz exists in filesystem
gmp: /usr/share/info/gmp.info-2.gz exists in filesystem
gmp: /usr/share/info/gmp.info.gz exists in filesystem
xdg-utils: /usr/bin/xdg-desktop-icon exists in filesystem
xdg-utils: /usr/bin/xdg-desktop-menu exists in filesystem
xdg-utils: /usr/bin/xdg-email exists in filesystem
xdg-utils: /usr/bin/xdg-icon-resource exists in filesystem
xdg-utils: /usr/bin/xdg-mime exists in filesystem
xdg-utils: /usr/bin/xdg-open exists in filesystem
xdg-utils: /usr/bin/xdg-screensaver exists in filesystem
xdg-utils: /usr/bin/xdg-settings exists in filesystem
xdg-utils: /usr/share/licenses/xdg-utils/LICENSE exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-desktop-icon.1.gz exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-desktop-menu.1.gz exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-email.1.gz exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-icon-resource.1.gz exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-mime.1.gz exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-open.1.gz exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-screensaver.1.gz exists in filesystem
xdg-utils: /usr/share/man/man1/xdg-settings.1.gz exists in filesystem
Errors occurred, no packages were upgraded.

Let’s check first:

$ pacman -Qo /usr/include/gmp.h
$ pacman -Qo /usr/bin/xdg-desktop-icon

No package owns /usr/include/gmp.h

No package owns /usr/bin/xdg-desktop-icon

Then it must be a leftover from previous broken installation or so. In this case, if you only update official packages:

$ sudo pacman -Syu --overwrite '*'
2 Likes

The more in-depth explanation

It worked… Thank you…

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.