You are not logged in.

#1 2016-01-24 20:37:54

miomio
Member
Registered: 2016-01-17
Posts: 167

Problem with -Syyu: cannot upgrade

I am getting the following error when trying to update the system:

:: Proceed with installation? [Y/n] y
(51/51) checking keys in keyring                   [########################] 100%
(51/51) checking package integrity                 [########################] 100%
(51/51) loading package files                      [########################] 100%
(51/51) checking for file conflicts                [########################] 100%
error: failed to commit transaction (conflicting files)
chromium: /usr/lib/chromium/libwidevinecdmadapter.so exists in filesystem
python-pyparsing: /usr/lib/python3.5/site-packages/__pycache__/pyparsing.cpython-35.pyc exists in filesystem
python-pyparsing: /usr/lib/python3.5/site-packages/pyparsing.py exists in filesystem
python-six: /usr/lib/python3.5/site-packages/__pycache__/six.cpython-35.pyc exists in filesystem
python-six: /usr/lib/python3.5/site-packages/six.py exists in filesystem
Errors occurred, no packages were upgraded.

So the two conflicts are to do with Chromium and Python packages presenton the system. The chromium *.so/shared object file is from the chromium-widevine package (which I built and installed myself):

$ sudo pacman -Qo /usr/lib/chromium/libwidevinecdmadapter.so
/usr/lib/chromium/libwidevinecdmadapter.so is owned by chromium-widevine 1.4.8.824-2

However, I cannot remove it (which I presume is how you would deal with this situation where Pacman wants to bring in from the update, but defaults not to if it already exists):

$ sudo pacman -R chromium-widevine-1.4.8.824-2
error: target not found: chromium-widevine-1.4.8.824-2

Or another try:

$ sudo pacman -R chromium-widevine-1.4.8.824-2-x86_64.pkg.tar.xz 
error: target not found: chromium-widevine-1.4.8.824-2-x86_64.pkg.tar.xz

Likewise, when trying to find out what owns the other Python packages I can't find owning packages:

$ pacman -Qo /usr/lib/python3.5/site-packages/__pycache__/pyparsing.cpython-35.pyc
error: No package owns /usr/lib/python3.5/site-packages/__pycache__/pyparsing.cpython-35.pyc

How would I deal with these problems? MM.

Last edited by miomio (2016-01-24 20:39:33)

Offline

#2 2016-01-24 20:43:18

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: Problem with -Syyu: cannot upgrade

See this link regarding the chromium conflict: https://bbs.archlinux.org/viewtopic.php?id=207971
(to answer your question about it though, you only need to pass the package name to -R, omit the version)

Since no package owns the .pyc file, you can remove it. See https://bbs.archlinux.org/viewtopic.php?id=130138

EDIT: I'm curious where these python files came from. Have you installed them manually using e.g. pip?

Last edited by WorMzy (2016-01-24 20:44:58)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2016-01-24 21:11:54

miomio
Member
Registered: 2016-01-17
Posts: 167

Re: Problem with -Syyu: cannot upgrade

WorMzy wrote:

Since no package owns the .pyc file, you can remove it. See https://bbs.archlinux.org/viewtopic.php?id=130138

EDIT: I'm curious where these python files came from. Have you installed them manually using e.g. pip?

Thanks, I've now fixed both issues. For others coming here with similar problem the following resource is useful: https://wiki.archlinux.org/index.php/Pa … 9.22_error

I am not sure about having used Pip re the python-related files.

Offline

#4 2016-01-24 22:32:51

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Problem with -Syyu: cannot upgrade

Please use the edit link to prepend "[SOLVED]" to the thread title. I suggest changing the title to something more descriptive as well, such as "[SOLVED]file conflicts with chromium when upgrading python packages"


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2016-01-25 03:51:02

root
Member
From: 127.0.0.1
Registered: 2012-04-13
Posts: 297

Re: Problem with -Syyu: cannot upgrade

Even though I read that the issue is already solved you may want to take this piece of advice.

When removing a package you only use it name not the version of it thus

$ sudo pacman -R chromium-widevine-1.4.8.824-2
error: target not found: chromium-widevine-1.4.8.824-2

should actually be

$ sudo pacman -R chromium-widevine

because the wasn't an actual hyphen in the ownership result, right?

$ sudo pacman -Qo /usr/lib/chromium/libwidevinecdmadapter.so
/usr/lib/chromium/libwidevinecdmadapter.so is owned by chromium-widevine 1.4.8.824-2

\(o_X)/
                        'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols

Offline

Board footer

Powered by FluxBB