Pacman error : file exists in filesystem (python-evdev)

Hi

I’m looking for a little assistance if possible. I’m not sure if I have broken my system. I’ve tried a few times now to update EOS and I get the following errors. Is there a way to fix it easily?

:: Proceed with installation? [Y/n] y
(279/279) checking keys in keyring [--------------------------------------] 100%
(279/279) checking package integrity [--------------------------------------] 100%
(279/279) loading package files [--------------------------------------] 100%
(279/279) checking for file conflicts [--------------------------------------] 100%
error: failed to commit transaction (conflicting files)
python-evdev: /usr/lib/python3.10/site-packages/evdev/init.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/init.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/device.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/ecodes.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/eventio.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/eventio_async.cpython-310.pyc exists in filesys
tem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/events.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/evtest.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/ff.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/genecodes.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/uinput.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/pycache/util.cpython-310.pyc exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/_ecodes.cpython-310-x86_64-linux-gnu.so exists in filesyste
m
python-evdev: /usr/lib/python3.10/site-packages/evdev/_input.cpython-310-x86_64-linux-gnu.so exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/_uinput.cpython-310-x86_64-linux-gnu.so exists in filesyste
m
python-evdev: /usr/lib/python3.10/site-packages/evdev/device.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/ecodes.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/eventio.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/eventio_async.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/events.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/evtest.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/ff.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/genecodes.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/uinput.py exists in filesystem
python-evdev: /usr/lib/python3.10/site-packages/evdev/util.py exists in filesystem
Errors occurred, no packages were upgraded.
→ error installing repo packages

There are existing threads you want to check out

(can find more with the search button on top)

In your case, it seems like you had at some point run pip command as root - which is not at all recommended. As a result, the python package files are already there on system, which pacman refuses to overwrite. You probably want to run the pacman command with --overwrite "*" option.

or wait until someone more knowledgeable comes by

PS. Edited title to be more descriptive.

4 Likes

Thank you that fixed my problem. I do recall I used pip for something specific but can’t recall now and now thinking back this was probably when my issues started. Anyway everything is updated so thank you :blush:

1 Like

Also for reference:

1 Like