You are not logged in.

#1 2020-03-16 09:44:47

ultim8lux
Member
Registered: 2020-03-16
Posts: 1

Pacman failed to update (conflicting files)

I've tried to update my system using both with pacman and yay with the same error popping up.

output of "sudo pacman -Syu --debug":

debug: searching for file conflicts: yelp-xsl
debug: searching for filesystem conflicts: yelp-xsl
debug: returning error 47 from _alpm_sync_check : conflicting files
error: failed to commit transaction (conflicting files)
python-pygments: /usr/bin/pygmentize exists in filesystem
Errors occurred, no packages were upgraded.

Offline

#2 2020-03-16 10:56:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,659

Re: Pacman failed to update (conflicting files)

https://wiki.archlinux.org/index.php/Pa … )%22_error

Note that this kind of issue often happens because people use pip or similar non pacman package managers. If you ever did that you really shouldn't, if you need to use those use them as your user (though if you really had I'd expect more files to be an issue than just the main binary...)

Offline

#3 2020-03-16 14:30:20

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Pacman failed to update (conflicting files)

ultim8lux wrote:

output of "sudo pacman -Syu --debug":

[six tiny lines]

How do you know that the many lines you've removed weren't important? That is NOT the full output of pacman -Syu --debug.

Which package did you try to upgrade *from*, which package did you try to upgrade *to*? These are things which would show up in the full, uncensored debug output.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2020-09-28 20:18:09

moodi_jii
Member
Registered: 2020-09-28
Posts: 2

Re: Pacman failed to update (conflicting files)

A good way I found to resolve conflicts with pip when updating your system or python packages with pacman, is to delete the pip packages.

Let's say you have this conflicting file:
"python-pygments: /usr/lib/python3.8/site-packages/pygments/styles/algol_nu.py exists in filesystem"
This already tells you the name of the package "python-pygments" or if it doesn't you can deduce it by the path "/usr:lib/python3.8/site-packages/..."

Then manually delete the package with pip
pip uninstall pygments

Note: Some packages start with "python-" in pip

Offline

#5 2020-09-28 20:46:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Pacman failed to update (conflicting files)

Moodi_jii: Please watch the age of threads to which you respond.   This one is not too bad, but your other post was on a couple year old thread.

Closing


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB