When attempting to upgrade my system with pacman I get the error "Error: FILENAME exists in filesystem" - what should I do?

pacman

(nobody) #1

When attempting to upgrade my system with pacman I get this error message:

error: could not prepare transaction
error: failed to commit transaction (conflicting files)
libname: /insert/file/name/here exists in filesystem
Errors occurred, no packages were upgraded.

What should I do?


`pacman -Syu` fails with "error: failed to commit transaction (conflicting files)", files in `python2-pip: /usr/lib/python2.7/site-packages/pip/` already "exists in filesystem"
GitLab replaces gitolite, cgit, and Flyspray (and other changes)
Can't install "Shockwave Flash" in Firefox
Error al instalar paquetes con ccr
(Hans Tovetjärn) #2

pacman has detected a file conflict, and by design, will not overwrite files for you. This is a design feature, not a flaw. It is the responsibility of the user - not the package manager - to maintain their system.

The issue is usually trivial to solve. A safe way is to first check if another package owns the file:

$ pacman -Qo /path/to/file

If the file is owned by another package - report it on our issue tracker.

If the file is not owned by another package - either rename or remove the file which already exists in the filesystem, and run pacman -Syu again.

As always, make sure you read and follow the #news before attempting any upgrade.


Uninstalling packages leaves files in the system
(Hans Tovetjärn) #3

This topic was automatically closed after 30 days. New replies are no longer allowed.