failed to commit transaction (conflicting files)

Attempted to apply a large Manjaro update (190+ packages) by...

sudo pacman -Syu

But got (after many other messages)...

(193/193) checking for file conflicts [################################################] 100%

error: failed to commit transaction (conflicting files)

firewalld: /usr/lib/python3.8/site-packages/firewall/pycache/init.cpython-38.pyc exists in filesystem

firewalld: /usr/lib/python3.8/site-packages/firewall/pycache/client.cpython-38.pyc exists in filesystem

firewalld: /usr/lib/python3.8/site-packages/firewall/pycache/dbus_utils.cpython-38.pyc exists in filesystem

and so on...

Errors occurred, no packages were upgraded.

Apply Fix

Find owner of conflicting files...

$ pacman -Qo "/usr/lib/python3.8/site-packages/firewall/"

/usr/lib/python3.8/site-packages/firewall/ is owned by firewalld 0.8.1-2

With the above information I entered

sudo pacman -S firewalld --overwrite "/usr/lib/python3.8/site-packages/firewall/*"

And finally again... sudo pacman -Syu

This time it worked!

2020-03-19 22:20:21
Index