I ran sudo pacman -Syu
and I got some interesting errors reading:
error: failed to commit transaction (conflicting files)
and a long list of files followed by exists in filesystem
. Full output is here: http://ix.io/lLw
It appears that many of these files are not associated with a package when I checked them with pacman -Qo <path-to-file>
, but I did not check them all. I had a weak connection when I ran pacman -Syu
, but I get the same errors when I updated later: http://ix.io/lLx
What should I do? Should I check all files and delete the ones that do not have an associated package? Should I force update (with sudo pacman -S --force <package-name>
?)
Update
I tried running sudo pacman -S --force <package-name>
and got this:
[my-pc]/home/average-joe$ pacman -Qo /usr/lib/python3.5/site-packages/PyYAML-3.11-py3.5.egg-info
error: No package owns /usr/lib/python3.5/site-packages/PyYAML-3.11-py3.5.egg-info
It looks like pacman -S --force <package
does not overwrite directories that contain files. From the man:
Using --force will not allow overwriting a directory with a file or installing packages with conflicting files and directories.
Should I just delete the conflicting directories? (they do not have associated packages)
/usr/local/
rather than/usr/
)sudo pip install -U docker-compose==1.5.0rc3
on this page. Perhapssudo pip install
conflicts with pacman?-S
updates (partial installs, etc) will let you that scenario. Case of me--force
worked all times.--overwrite
command, because--force
is not working anymore.trizen -S <package> --overwrite "*"
or\*
won’t work: the*
argument isn’t passed on topacman
. Not sure how to properly escape this, but after downloading all packages,trizen
will tell you the exactpacman
command it is going to execute. Then simplyCtrl
+C
, copy that command, fix the"*"
argument and hitEnter
.