You are not logged in.

#1 2013-04-11 13:04:00

awmemon
Member
Registered: 2013-01-28
Posts: 8

error: failed to commit transaction (conflicting files)

I am getting the following error while performing a system wide upgrade i.e. sudo pacman -Syu

error: failed to commit transaction (conflicting files)
r: /usr/lib/R/library/foreign/COPYRIGHTS exists in filesystem
r: /usr/lib/R/library/rpart/Meta/vignette.rds exists in filesystem
r: /usr/lib/R/library/rpart/NEWS.Rd exists in filesystem
r: /usr/lib/R/library/rpart/doc/index.html exists in filesystem
r: /usr/lib/R/library/rpart/doc/longintro.R exists in filesystem
r: /usr/lib/R/library/rpart/doc/longintro.Rnw exists in filesystem
r: /usr/lib/R/library/rpart/doc/longintro.pdf exists in filesystem
r: /usr/lib/R/library/rpart/doc/usercode.R exists in filesystem
r: /usr/lib/R/library/rpart/doc/usercode.Rnw exists in filesystem
r: /usr/lib/R/library/rpart/doc/usercode.pdf exists in filesystem
r: /usr/lib/R/library/survival/doc/sourcecode.pdf exists in filesystem
Errors occurred, no packages were upgraded

Thanks

Offline

#2 2013-04-11 13:34:02

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: error: failed to commit transaction (conflicting files)

You probably didn't use pacman to install 'r', thus the files listed above are not present in the local database. I believe you can safely run 'pacman -Syyu --force' to upgrade the package properly and get rid of the error message in the future.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2013-04-11 16:34:32

stqn
Member
Registered: 2010-03-19
Posts: 1,189
Website

Re: error: failed to commit transaction (conflicting files)

I believe it is strongly advised not to use --force, especially for a system-wide upgrade. But it could be ok to use it only for the specific package that is causing this problem.

In this case you could use pacman -Qo to check if one of those files belong to a package or not.

If you indeed installed those from a third party source, it may be cleaner to delete the whole directorie(s) you copied manually instead of using --force on the new package, so that there are no leftover files.

Offline

Board footer

Powered by FluxBB