Update error python-devel conflicts with python
For the last few days, I am getting this error with each update:
[2019-06-16 02:09:13 +0200] [/usr/local/cpanel/scripts/rpmup] (XID hzarv4) The system failed to execute yum with the arguments "--assumeyes --config /etc/yum.conf update" because of an error: The "/usr/bin/yum --assumeyes --config /etc/yum.conf update" command (process 18755) reported error number 1 when it ended. : Error: python-devel conflicts with python-2.7.5-76.el7.x86_64
[2019-06-16 02:09:13 +0200] E [/usr/local/cpanel/scripts/rpmup] The "/usr/local/cpanel/scripts/rpmup" command (process 18751) reported error number 1 when it ended.
[2019-06-16 02:09:13 +0200] The Administrator will be notified to review this output when this script completes
Any ideas guys?
-
Run yum update in shell and paste the error portion into this thread please. 0 -
Error: python-devel conflicts with python-2.7.5-76.el7.x86_64
Hello @DotNetrix, Can you share the output from the commands in CODE tags below?cat /etc/redhat-release rpm -qa|grep python-devel yum update
Thank you.0 -
Hello, I'm experiencing this issue too, so hoping I can hijack this thread :) I'm attempting to update from v84.0.21 to v86.0.8 Here's the information you requested from @DotNetrix, albeit from my server :) root@server [/home/_repos]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) root@server [/home/_repos]# rpm -qa|grep python-devel root@server [/home/_repos]# yum update Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile epel/x86_64/metalink | 30 kB 00:00:00 * EA4: 91.197.228.252 * cpanel-plugins: 91.197.228.252 * base: mirror.mhd.uk.as44574.net * epel: mirrors.coreix.net * extras: mozart.ee.ic.ac.uk * updates: mirror.mhd.uk.as44574.net EA4 | 2.9 kB 00:00:00 cpanel-plugins | 2.9 kB 00:00:00 MariaDB103 | 2.9 kB 00:00:00 base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 No packages marked for update
cPanel is attempting to install python-devel which is why there isn't any output from the rpm command, so in addition here is the output from the cPanel update log..[2020-03-03 16:52:58 +0000] --> Processing Conflict: python-devel-2.7.5-86.el7.x86_64 conflicts python < 2.7.5-86.el7 [2020-03-03 16:52:58 +0000] Retrieving and staging /cpanelsync/11.86.0.8/binaries/linux-c7-x86_64/base/backend/passwordstrength.cgi.xz [2020-03-03 16:52:58 +0000] Retrieving and staging /cpanelsync/11.86.0.8/binaries/linux-c7-x86_64/cpsrvd.so.xz [2020-03-03 16:52:58 +0000] --> Finished Dependency Resolution [2020-03-03 16:52:58 +0000] Retrieving and staging /cpanelsync/11.86.0.8/binaries/linux-c7-x86_64/bin/modsecuritydomains.xz [2020-03-03 16:52:58 +0000] W Error: python-devel conflicts with python-2.7.5-76.el7.x86_64
Result of yum install python-develroot@server [~]# yum install python-devel Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 91.197.228.252 * cpanel-plugins: 91.197.228.252 * base: mirror.mhd.uk.as44574.net * epel: mirrors.coreix.net * extras: mozart.ee.ic.ac.uk * updates: mirror.mhd.uk.as44574.net Resolving Dependencies --> Running transaction check ---> Package python-devel.x86_64 0:2.7.5-86.el7 will be installed --> 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 --> Running transaction check ---> Package python-rpm-macros.noarch 0:3-32.el7 will be installed --> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-32.el7.noarch ---> Package python2-rpm-macros.noarch 0:3-32.el7 will be installed --> Running transaction check ---> Package python-srpm-macros.noarch 0:3-32.el7 will be installed --> Processing Conflict: python-devel-2.7.5-86.el7.x86_64 conflicts python < 2.7.5-86.el7 --> Finished Dependency Resolution Error: python-devel conflicts with python-2.7.5-76.el7.x86_64 You could try using --skip-broken to work around the problem ** Found 10 pre-existing rpmdb problem(s), 'yum check' output follows: e2fsprogs-libs-1.42.9-16.el7.x86_64 is a duplicate with e2fsprogs-libs-1.42.9-13.el7.x86_64 freetype-2.8-14.el7.x86_64 is a duplicate with freetype-2.8-12.el7.x86_64 krb5-libs-1.15.1-37.el7_7.2.x86_64 is a duplicate with krb5-libs-1.15.1-34.el7.x86_64 libblkid-2.23.2-61.el7_7.1.x86_64 is a duplicate with libblkid-2.23.2-59.el7.x86_64 libcom_err-1.42.9-16.el7.x86_64 is a duplicate with libcom_err-1.42.9-13.el7.x86_64 libstdc++-4.8.5-39.el7.x86_64 is a duplicate with libstdc++-4.8.5-36.el7.x86_64 libuuid-2.23.2-61.el7_7.1.x86_64 is a duplicate with libuuid-2.23.2-59.el7.x86_64 1:openssl-libs-1.0.2k-19.el7.x86_64 is a duplicate with 1:openssl-libs-1.0.2k-16.el7.x86_64 python-2.7.5-86.el7.x86_64 is a duplicate with python-2.7.5-76.el7.x86_64 python-libs-2.7.5-86.el7.x86_64 is a duplicate with python-libs-2.7.5-76.el7.x86_640 -
Ok so.. might of solved this for my situation anyway so including in case it helps others.. Seems it was just caused by having duplicate packages which I resolved as follows.. root@server [~]# yum install yum-utils Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 91.197.228.252 * cpanel-plugins: 91.197.228.252 * base: centos.mirrors.nublue.co.uk * epel: mirrors.coreix.net * extras: centos.mirrors.nublue.co.uk * updates: mirror.mhd.uk.as44574.net Package yum-utils-1.1.31-52.el7.noarch already installed and latest version Nothing to do root@holodev1 [~]# package-cleanup --dupes Loaded plugins: fastestmirror libstdc++-4.8.5-36.el7.x86_64 libstdc++-4.8.5-39.el7.x86_64 freetype-2.8-14.el7.x86_64 freetype-2.8-12.el7.x86_64 python-2.7.5-86.el7.x86_64 python-2.7.5-76.el7.x86_64 libblkid-2.23.2-61.el7_7.1.x86_64 libblkid-2.23.2-59.el7.x86_64 libuuid-2.23.2-59.el7.x86_64 libuuid-2.23.2-61.el7_7.1.x86_64 krb5-libs-1.15.1-37.el7_7.2.x86_64 krb5-libs-1.15.1-34.el7.x86_64 libcom_err-1.42.9-13.el7.x86_64 libcom_err-1.42.9-16.el7.x86_64 python-libs-2.7.5-76.el7.x86_64 python-libs-2.7.5-86.el7.x86_64 e2fsprogs-libs-1.42.9-13.el7.x86_64 e2fsprogs-libs-1.42.9-16.el7.x86_64 openssl-libs-1.0.2k-19.el7.x86_64 openssl-libs-1.0.2k-16.el7.x86_64 root@holodev1 [~]# package-cleanup --cleandupes Loaded plugins: fastestmirror --> Running transaction check ---> Package e2fsprogs-libs.x86_64 0:1.42.9-13.el7 will be erased ---> Package freetype.x86_64 0:2.8-12.el7 will be erased ---> Package krb5-libs.x86_64 0:1.15.1-34.el7 will be erased ---> Package libblkid.x86_64 0:2.23.2-59.el7 will be erased ---> Package libcom_err.x86_64 0:1.42.9-13.el7 will be erased ---> Package libstdc++.x86_64 0:4.8.5-36.el7 will be erased ---> Package libuuid.x86_64 0:2.23.2-59.el7 will be erased ---> Package openssl-libs.x86_64 1:1.0.2k-16.el7 will be erased ---> Package python.x86_64 0:2.7.5-76.el7 will be erased ---> Package python-libs.x86_64 0:2.7.5-76.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================= Removing: e2fsprogs-libs x86_64 1.42.9-13.el7 @anaconda 355 k freetype x86_64 2.8-12.el7 @anaconda 805 k krb5-libs x86_64 1.15.1-34.el7 @anaconda 2.0 M libblkid x86_64 2.23.2-59.el7 @anaconda 260 k libcom_err x86_64 1.42.9-13.el7 @anaconda 59 k libstdc++ x86_64 4.8.5-36.el7 @anaconda 1.0 M libuuid x86_64 2.23.2-59.el7 @anaconda 20 k openssl-libs x86_64 1:1.0.2k-16.el7 @anaconda 3.1 M python x86_64 2.7.5-76.el7 @anaconda 79 k python-libs x86_64 2.7.5-76.el7 @anaconda 24 M Transaction Summary ============================================================================================================================================================================= Remove 10 Packages Installed size: 31 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : e2fsprogs-libs-1.42.9-13.el7.x86_64 1/10 Erasing : libblkid-2.23.2-59.el7.x86_64 2/10 Erasing : python-2.7.5-76.el7.x86_64 3/10 Erasing : python-libs-2.7.5-76.el7.x86_64 4/10 Erasing : krb5-libs-1.15.1-34.el7.x86_64 5/10 Erasing : 1:openssl-libs-1.0.2k-16.el7.x86_64 6/10 Erasing : libcom_err-1.42.9-13.el7.x86_64 7/10 Erasing : libuuid-2.23.2-59.el7.x86_64 8/10 Erasing : freetype-2.8-12.el7.x86_64 9/10 Erasing : libstdc++-4.8.5-36.el7.x86_64 10/10 Verifying : 1:openssl-libs-1.0.2k-16.el7.x86_64 1/10 Verifying : python-2.7.5-76.el7.x86_64 2/10 Verifying : krb5-libs-1.15.1-34.el7.x86_64 3/10 Verifying : libblkid-2.23.2-59.el7.x86_64 4/10 Verifying : libuuid-2.23.2-59.el7.x86_64 5/10 Verifying : libcom_err-1.42.9-13.el7.x86_64 6/10 Verifying : e2fsprogs-libs-1.42.9-13.el7.x86_64 7/10 Verifying : libstdc++-4.8.5-36.el7.x86_64 8/10 Verifying : python-libs-2.7.5-76.el7.x86_64 9/10 Verifying : freetype-2.8-12.el7.x86_64 10/10 Removed: e2fsprogs-libs.x86_64 0:1.42.9-13.el7 freetype.x86_64 0:2.8-12.el7 krb5-libs.x86_64 0:1.15.1-34.el7 libblkid.x86_64 0:2.23.2-59.el7 libcom_err.x86_64 0:1.42.9-13.el7 libstdc++.x86_64 0:4.8.5-36.el7 libuuid.x86_64 0:2.23.2-59.el7 openssl-libs.x86_64 1:1.0.2k-16.el7 python.x86_64 0:2.7.5-76.el7 python-libs.x86_64 0:2.7.5-76.el7 Complete! root@server [~]# yum update Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 91.197.228.252 * cpanel-plugins: 91.197.228.252 * base: centos.mirrors.nublue.co.uk * epel: mirrors.coreix.net * extras: centos.mirrors.nublue.co.uk * updates: mirror.mhd.uk.as44574.net No packages marked for update root@server [~]# yum install python-devel Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 91.197.228.252 * cpanel-plugins: 91.197.228.252 * base: mirror.mhd.uk.as44574.net * epel: mirrors.coreix.net * extras: centos.mirrors.nublue.co.uk * updates: mirror.mhd.uk.as44574.net Resolving Dependencies --> Running transaction check ---> Package python-devel.x86_64 0:2.7.5-86.el7 will be installed --> 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 --> Running transaction check ---> Package python-rpm-macros.noarch 0:3-32.el7 will be installed --> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-32.el7.noarch ---> Package python2-rpm-macros.noarch 0:3-32.el7 will be installed --> Running transaction check ---> Package python-srpm-macros.noarch 0:3-32.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================= Installing: python-devel x86_64 2.7.5-86.el7 base 398 k Installing for dependencies: python-rpm-macros noarch 3-32.el7 base 8.8 k python-srpm-macros noarch 3-32.el7 base 8.4 k python2-rpm-macros noarch 3-32.el7 base 7.7 k Transaction Summary ============================================================================================================================================================================= Install 1 Package (+3 Dependent packages) Total size: 423 k Installed size: 1.1 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python2-rpm-macros-3-32.el7.noarch 1/4 Installing : python-srpm-macros-3-32.el7.noarch 2/4 Installing : python-rpm-macros-3-32.el7.noarch 3/4 Installing : python-devel-2.7.5-86.el7.x86_64 4/4 Verifying : python-rpm-macros-3-32.el7.noarch 1/4 Verifying : python-srpm-macros-3-32.el7.noarch 2/4 Verifying : python2-rpm-macros-3-32.el7.noarch 3/4 Verifying : python-devel-2.7.5-86.el7.x86_64 4/4 Installed: python-devel.x86_64 0:2.7.5-86.el7 Dependency Installed: python-rpm-macros.noarch 0:3-32.el7 python-srpm-macros.noarch 0:3-32.el7 python2-rpm-macros.noarch 0:3-32.el7 Complete!
I then returned to WHM & attempted the update again which subsequently succeeded.0
Please sign in to leave a comment.
Comments
4 comments