You are not logged in.

#1 2021-12-19 19:37:57

Arcani
Member
Registered: 2019-12-13
Posts: 6

[SOLVED] error : failed to commit transaction (conflicting files)

Hello,

It's been a while since i did a system update so I attempted to do a pacman -Syu, but noticed some of the gpg keys were out of date so I updated those, then i came across this error :

error: failed to commit transaction (conflicting files)
libinih: /usr/include/INIReader.h exists in filesystem
libinih: /usr/include/ini.h exists in filesystem
libinih: /usr/lib/libINIReader.so exists in filesystem
libinih: /usr/lib/libINIReader.so.0 exists in filesystem
libinih: /usr/lib/libinih.so exists in filesystem
libinih: /usr/lib/libinih.so.0 exists in filesystem
libinih: /usr/lib/pkgconfig/INIReader.pc exists in filesystem
libinih: /usr/lib/pkgconfig/inih.pc exists in filesystem

I did some poking around the forums and tried what some others have done with similar issues - cleaned cache with pacman -Scc, and updated only the repos first with pacman -Syy, but I still got the same error.

I tried to look for the offending package with pacman -Syu --debug and found that it was the following :

debug: searching for file conflicts: xf86-video-vesa
debug: searching for filesystem conflicts: xf86-video-vesa
debug: searching for file conflicts: xfce4-whiskermenu-plugin
debug: searching for filesystem conflicts: xfce4-whiskermenu-plugin
debug: checking possible conflict: /usr/share/locale/th/
debug: file is a directory, not a conflict
debug: checking possible conflict: /usr/share/locale/th/LC_MESSAGES/
debug: file is a directory, not a conflict
debug: searching for file conflicts: xfwm4
debug: searching for filesystem conflicts: xfwm4
debug: searching for file conflicts: xorg-server-devel
debug: searching for filesystem conflicts: xorg-server-devel
debug: searching for file conflicts: xorg-server-xephyr
debug: searching for filesystem conflicts: xorg-server-xephyr
debug: searching for file conflicts: xorg-server-xnest
debug: searching for filesystem conflicts: xorg-server-xnest
debug: searching for file conflicts: xorg-xauth
debug: searching for filesystem conflicts: xorg-xauth
debug: searching for file conflicts: xorg-server-xvfb
debug: searching for filesystem conflicts: xorg-server-xvfb
debug: searching for file conflicts: xorg-xrdb
debug: searching for filesystem conflicts: xorg-xrdb
debug: searching for file conflicts: xorg-xwayland
debug: searching for filesystem conflicts: xorg-xwayland
debug: searching for file conflicts: xorg-xwd
debug: searching for filesystem conflicts: xorg-xwd
debug: returning error 47 from _alpm_sync_check (../lib/libalpm/sync.c: 1209) : conflicting files
error: failed to commit transaction (conflicting files)
libinih: /usr/include/INIReader.h exists in filesystem
libinih: /usr/include/ini.h exists in filesystem
libinih: /usr/lib/libINIReader.so exists in filesystem
libinih: /usr/lib/libINIReader.so.0 exists in filesystem
libinih: /usr/lib/libinih.so exists in filesystem
libinih: /usr/lib/libinih.so.0 exists in filesystem
libinih: /usr/lib/pkgconfig/INIReader.pc exists in filesystem
libinih: /usr/lib/pkgconfig/inih.pc exists in filesystem
Errors occurred, no packages were upgraded.

I'm not sure if I should try to ignore these files given that they're from my display manager, or if I should overwrite them (as recommended here : https://ostechnix.com/how-to-solve-erro … ch-linux/), or if that there is something else that I may be overlooking.  Preferably I would be able to safely do a full system update.

Thank you in advance smile

Last edited by Arcani (2021-12-27 04:20:58)

Offline

#2 2021-12-19 20:11:29

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,802
Website

Re: [SOLVED] error : failed to commit transaction (conflicting files)

Arcani wrote:

and updated only the repos first with pacman -Syy

Don't do that, it will break your system: https://wiki.archlinux.org/title/System … nsupported

Arcani wrote:

as recommended here :

Why are you taking advice from some shitty advert-ridden random internet site?

Always search the ArchWiki first: https://wiki.archlinux.org/title/Pacman … )%22_error

Offline

#3 2021-12-27 04:18:21

Arcani
Member
Registered: 2019-12-13
Posts: 6

Re: [SOLVED] error : failed to commit transaction (conflicting files)

That worked lol.  Can't believe I missed that.

Thank you!

Offline

#4 2022-12-08 21:00:23

justkeeptrying
Member
Registered: 2020-06-18
Posts: 2

Re: [SOLVED] error : failed to commit transaction (conflicting files)

Didn't work for me. Used below -
$ sudo pacman -Rns $(pacman -Qtdq)
Then -
$ sudo pacman -Syu

Offline

#5 2022-12-08 23:16:37

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,012
Website

Re: [SOLVED] error : failed to commit transaction (conflicting files)

If you're getting the same error as OP, you need to update your system more often. Please do not necrobump.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB