When the Python released new update in my CentOS, I always get the folliwing error:
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.linode.com
* centos-sclo-rh: centos.netonboard.com
* centos-sclo-sclo: centos.netonboard.com
* epel: sg.fedora.ipserverone.com
* extras: mirrors.linode.com
* updates: mirrors.linode.com
260 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package python.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python.x86_64 0:2.7.5-86.el7 will be an update
---> Package python-devel.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-devel.x86_64 0:2.7.5-86.el7 will be an update
--> Processing Dependency: python2-rpm-macros > 3-30 for package: python-devel-2.7.5-86.el7.x86_64
--> Processing Dependency: python-rpm-macros > 3-30 for package: python-devel-2.7.5-86.el7.x86_64
---> Package python-libs.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-libs.x86_64 0:2.7.5-86.el7 will be an update
---> Package python-tools.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-tools.x86_64 0:2.7.5-86.el7 will be an update
---> Package tkinter.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package tkinter.x86_64 0:2.7.5-86.el7 will be an update
--> Finished Dependency Resolution
Error: Package: python-devel-2.7.5-86.el7.x86_64 (base)
Requires: python-rpm-macros > 3-30
Available: python-rpm-macros-3-25.el7.noarch (epel)
python-rpm-macros = 3-25.el7
Error: Package: python-devel-2.7.5-86.el7.x86_64 (base)
Requires: python2-rpm-macros > 3-30
Available: python2-rpm-macros-3-25.el7.noarch (epel)
python2-rpm-macros = 3-25.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
To solve the error, run the following yum update command:
yum update --disablerepo=epel
After executing the command, the following output should show:
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.linode.com
* centos-sclo-rh: centos.netonboard.com
* centos-sclo-sclo: centos.netonboard.com
* extras: mirrors.linode.com
* updates: mirrors.linode.com
Resolving Dependencies
--> Running transaction check
---> Package libnetfilter_cthelper.x86_64 0:1.0.0-9.el7 will be updated
---> Package libnetfilter_cthelper.x86_64 0:1.0.0-10.el7 will be an update
---> Package python.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python.x86_64 0:2.7.5-86.el7 will be an update
---> Package python-devel.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-devel.x86_64 0:2.7.5-86.el7 will be an update
--> Processing Dependency: python2-rpm-macros > 3-30 for package: python-devel-2.7.5-86.el7.x86_64
--> Processing Dependency: python-rpm-macros > 3-30 for package: python-devel-2.7.5-86.el7.x86_64
---> Package python-libs.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-libs.x86_64 0:2.7.5-86.el7 will be an update
---> Package python-srpm-macros.noarch 0:3-25.el7 will be updated
---> Package python-srpm-macros.noarch 0:3-32.el7 will be an update
---> Package python-tools.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package python-tools.x86_64 0:2.7.5-86.el7 will be an update
---> Package tkinter.x86_64 0:2.7.5-80.el7_6 will be updated
---> Package tkinter.x86_64 0:2.7.5-86.el7 will be an update
--> Running transaction check
---> Package python-rpm-macros.noarch 0:3-32.el7 will be installed
---> Package python2-rpm-macros.noarch 0:3-32.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Updating:
libnetfilter_cthelper x86_64 1.0.0-10.el7 base 18 k
python x86_64 2.7.5-86.el7 base 95 k
python-devel x86_64 2.7.5-86.el7 base 398 k
python-libs x86_64 2.7.5-86.el7 base 5.6 M
python-srpm-macros noarch 3-32.el7 base 8.4 k
python-tools x86_64 2.7.5-86.el7 base 857 k
tkinter x86_64 2.7.5-86.el7 base 327 k
Installing for dependencies:
python-rpm-macros noarch 3-32.el7 base 8.8 k
python2-rpm-macros noarch 3-32.el7 base 7.7 k
Transaction Summary
======================================================================================================================================
Install ( 2 Dependent packages)
Upgrade 7 Packages
Total download size: 7.3 M
Is this ok [y/d/N]: