Why isn't yum update working on Python?

Linode Staff

I tried running yum update -y --skip-broken and it didn't work. I just got a whole bunch of error messages like the following

install of python3-pip-9.0.3-5.el7.noarch conflicts with a file from package python36u-pip-9.0.0.1-1.ius.el7.noarch

What's going on here?

1 Reply

What seems to be happening in this case is that yum is trying to install two different versions of Python and that is causing issues. It is likely that you have two or more repos enabled which both contain the Python files. You can double check this by running

yum info python36u-pip-9.0.1-1.ius.el7.noarch | grep "repo" 

yum info python3-pip-9.0.3-5.el7.noarch | grep "repo" 


What I would recommend is choosing which of those you would like to keep and disabling the other repo. You can do this with:

yum upgrade --disablerepo=$REPO

You can find more information about this here.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct