Содержание
Проблема
Во время установки пакета из AUR – возникает ошибка:
…
:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [########] 100%
(2/2) checking package integrity [########] 100%
(2/2) loading package files [########] 100%
(2/2) checking for file conflicts [########] 100%
error: failed to commit transaction (conflicting files)
python-dateutil: /usr/lib/python3.6/site-packages/dateutil/__init__.py exists in filesystem
python-dateutil: /usr/lib/python3.6/site-packages/dateutil/__pycache__/__init__.cpython-36.pyc exists in filesystem
python-dateutil: /usr/lib/python3.6/site-packages/dateutil/__pycache__/_common.cpython-36.pyc exists in filesystem
…
Решение
Решение описано на Wiki Arch Linux.
Проверяем – относится ли файл к какому-то уже установленному с помощью pacman
или yaourt
пакету:
[simterm]
$ pacman -Qo /usr/lib/python3.6/site-packages/dateutil/__init__.py error: No package owns /usr/lib/python3.6/site-packages/dateutil/__init__.py
[/simterm]
Перемещаем пакет:
[simterm]
$ sudo mv /usr/lib/python3.6/site-packages/dateutil/ /home/setevoy/Backups/
[/simterm]
Повторяем установку:
[simterm]
$ yaourt -S yokadi ==> Downloading yokadi PKGBUILD from AUR... ... (1/1) installing yokadi [########################################################################################] 100% Optional dependencies for yokadi python-crypto: encrypt tasks title and description :: Running post-transaction hooks... (1/3) Updating icon theme caches... (2/3) Arming ConditionNeedsUpdate... (3/3) Updating the desktop file MIME type cache...
[/simterm]
Готово.