yum can not upgrade python because of a dependency on it
Issue
Sometimes issues happen to upgrade the python package, due to dependencies, like shown in the following example :
In this example, A is a custom rpm
yum -y install A --enablerepo=maxx
maxx | 2.9 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package A.x86_64 0:1-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================================================================
Installing:
A x86_64 1-1 maxx 2.5 k
Transaction Summary
=========================================================================================================================================================================================================
Install 1 Package
Total download size: 2.5 k
Installed size: 164
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : A-1-1.x86_64 1/1
Verifying : A-1-1.x86_64 1/1
Installed:
A.x86_64 0:1-1
Complete!
[root@mexico2 (MEXICO) yum.repos.d]# rpm -qR A
/bin/python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
[root@mexico2 (MEXICO) yum.repos.d]# yum upgrade python --enablerepo=rh72
rh72 | 4.1 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package python.x86_64 0:2.7.5-16.el7 will be updated
---> Package python.x86_64 0:2.7.5-34.el7 will be an update
--> Processing Dependency: python-libs(x86-64) = 2.7.5-34.el7 for package: python-2.7.5-34.el7.x86_64
--> Running transaction check
---> Package python-libs.x86_64 0:2.7.5-16.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-34.el7 will be an update
--> Processing Dependency: /bin/python for package: A-1-1.x86_64
--> Finished Dependency Resolution
Error: Package: A-1-1.x86_64 (@maxx)
Requires: /bin/python
Removing: python-2.7.5-16.el7.x86_64 (@anaconda/7.1)
Not found
Updated By: python-2.7.5-34.el7.x86_64 (rh72)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.