You are not logged in.

#1 2016-12-18 21:57:17

snowzurfer
Member
From: Scotland
Registered: 2016-05-01
Posts: 7

[SOLVED] Python error: failed to commit transaction conflicting files)

When trying to upgrade my system, I get the following output:

[snowz@macchinarch][~/code]% sudo pacman -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (53) bash-4.4.005-2  cups-filters-1.13.0-2  flashplugin-24.0.0.186-1  gdk-pixbuf2-2.36.1+27+g5dcc1b8da-1  geoip-database-20161206-1  git-2.11.0-1  gnupg-2.1.16-2  intel-tbb-2017_20161128-1  libarchive-3.2.2-1  libgcrypt-1.7.5-1  libnm-glib-1.4.4-1  libreoffice-fresh-5.2.3-4  libssh-0.7.3-2  libsynctex-2016.41290-10  libunistring-0.9.7-1  libxpm-3.5.12-1  lirc-1:0.9.4.c-2  logrotate-3.11.0-1  man-db-2.7.6.1-2  man-pages-4.09-1  meld-3.16.4-1  nano-2.7.2-1  nvidia-375.26-1  nvidia-utils-375.26-2  poppler-0.50.0-1  poppler-glib-0.50.0-1  poppler-qt5-0.50.0-1  python-pip-9.0.1-1  python-requests-2.12.4-1  python2-lxml-3.7.0-1  python2-pip-9.0.1-1  python2-requests-2.12.4-1  python2-sphinx-1.5.1-1  python2-urllib3-1.19.1-1  qt5-base-5.7.1-1  qt5-declarative-5.7.1-1  qt5-location-5.7.1-1  qt5-script-5.7.1-1  qt5-sensors-5.7.1-1  qt5-svg-5.7.1-1  qt5-tools-5.7.1-1  qt5-webchannel-5.7.1-1  qt5-webengine-5.7.1-1  qt5-webkit-5.7.1-1  qt5-x11extras-5.7.1-1  qt5-xmlpatterns-5.7.1-1  spirv-tools-2016.6-1  subversion-1.9.5-1  texlive-bin-2016.41290-10  texstudio-2.11.2-2  wpa_supplicant-1:2.6-4  youtube-dl-2016.12.18-1  zsh-5.3-1

Total Installed Size:  1020.54 MiB
Net Upgrade Size:         8.84 MiB
:: Proceed with installation? [Y/n] y

checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
error: failed to commit transaction (conflicting files)
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/__pycache__/appdirs.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/__pycache__/distro.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/__pycache__/ordereddict.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/appdirs.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/distro.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/__pycache__/_ihatexml.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/__pycache__/_inputstream.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/__pycache__/_tokenizer.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/__pycache__/_utils.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/__pycache__/serializer.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_ihatexml.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_inputstream.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_tokenizer.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/__init__.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/__pycache__/__init__.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/__pycache__/_base.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/__pycache__/datrie.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/__pycache__/py.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/_base.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/datrie.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_trie/py.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/_utils.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/filters/__pycache__/base.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/filters/base.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/serializer.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treeadapters/__pycache__/genshi.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treebuilders/__pycache__/base.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treebuilders/base.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/__pycache__/base.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/__pycache__/etree_lxml.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/__pycache__/genshi.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/base.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/ordereddict.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/__init__.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/__pycache__/__init__.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/__pycache__/labels.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/__pycache__/mklabels.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/__pycache__/tests.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/__pycache__/x_user_defined.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/labels.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/mklabels.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/tests.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/_vendor/webencodings/x_user_defined.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/commands/__pycache__/check.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/commands/check.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/operations/__pycache__/check.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/operations/check.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/utils/__pycache__/glibc.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/utils/__pycache__/packaging.cpython-35.pyc exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/utils/glibc.py exists in filesystem
python-pip: /usr/lib/python3.5/site-packages/pip/utils/packaging.py exists in filesystem
Errors occurred, no packages were upgraded.

This is the result of

sudo pacman -Syu

.

I have looked on the forums for solutions and I've found these:
https://wiki.archlinux.org/index.php/Pa … 9.22_error
https://bbs.archlinux.org/viewtopic.php?id=218591
and some others suggesting solutions where I should use the --force flag, but I am not comfortable with that.
I have also seen solutions with the -Q option but again, I am not comfortable enough with such transactions and I would really appreciate if someone could help me.

Thank you in advance.

Last edited by snowzurfer (2016-12-19 15:57:49)

Offline

#2 2016-12-18 22:42:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] Python error: failed to commit transaction conflicting files)

You're not comfortable enough to run a command that just tells you what package owns those files???

Online

#3 2016-12-18 23:13:28

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] Python error: failed to commit transaction conflicting files)

find out what package owns that file with pkgfile. you're responsible for maintaining your system with Arch, so use the tools available to you to make a decision

Offline

#4 2016-12-19 02:23:39

WFV
Member
From: ☭USSA⛧⭒⭒⭒⭒
Registered: 2013-04-23
Posts: 288

Re: [SOLVED] Python error: failed to commit transaction conflicting files)

You can always move the offending files to somewhere pacman isn't concerned with them, then rerun -Syyu. I've never had any problems doing that initially and end up deleting the offending files (in their moved location) once I'm certain no system problems. Since I've never had to put them back i assume its safe to --force the packages that don't want to install under these circumstances as others have mentioned (anymore i usually just delete the offenders, then rerun -Syyu).

EDIT: thanks for clarifying "yy" Eschwartz, got it smile

Last edited by WFV (2016-12-19 17:27:57)


∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞

Offline

#5 2016-12-19 03:36:21

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Python error: failed to commit transaction conflicting files)

If you are going to force a package then don't do it as part of a -Syu. Force the offending package only, then do a sysupgrade.

P.S. @WFV, you should never have to use -Syyu since the double "y" tells pacman to redownload the sync databases whether they have been updated or not. It is only ever useful when e.g. going back in time via the Arch Linux Archive, migrating from i686 <--> x86_64, repairing a borked sync database that contains a WiFi hotspot's splash screen, or something. Basically, only in a situation where,for whatever reason, you know your current database is just utterly, inconsolably wrong in a horrifyingly tragic manner.
You are almost definitely wasting bandwidth every time you redownload the same old non-updated databases.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#6 2016-12-19 15:55:14

snowzurfer
Member
From: Scotland
Registered: 2016-05-01
Posts: 7

Re: [SOLVED] Python error: failed to commit transaction conflicting files)

Thanks everyone for your help. After some trial and error and with the help of your replies I managed to fix it.
The way I did it was:

*

pacman -Qo

on the path up to python-pip
* That confirmed that the path where all th errors were was owned only by Python PIP
* I run

sudo pacman -S python-pip --force

That fixed it; then I was able to do a sync with

sudo pacman -Syu

Thank you!

Offline

#7 2016-12-20 01:21:54

2114L3
Member
Registered: 2016-11-03
Posts: 3

Re: [SOLVED] Python error: failed to commit transaction conflicting files)

i got this too, and i'm betting that this is because we did a "pip install --upgrade pip" to get to version 9? and so pacman thinks we are still on pip v8 but now that the extra repo has v9 finally it is trying to update again cause its blind to what pip has done.

so options are to use pacman and wait on the repo to catch up. or exclude python-pip from pacman and use pip to update if you want to be on the bleeding edge.
aka, update with the updater to update itself or update with another updater to update the updater so you are updated with updates

Offline

Board footer

Powered by FluxBB