SOLVED RPM conflicts with python-dns

Rodrigo Gomes

Well-Known Member
Apr 6, 2016
128
29
78
Brazil
cPanel Access Level
Root Administrator
Hello, I'm facing this problem again.
But this time it's to update to the latest release (1611) of CentOS.

After ran: yum update
I got this error: - Removed -

Code:
Transaction check error:
  file /usr/lib/python2.7/site-packages/dns/__init__.pyc from install of python-dns-1.12.0-2.20150617git465785f.el7.noarch conflicts with file from package cpanel-dnspython-1.12-2.cp1158.x86_64
  file /usr/lib/python2.7/site-packages/dns/rdtypes/ANY/__init__.pyc from install of python-dns-1.12.0-2.20150617git465785f.el7.noarch conflicts with file from package cpanel-dnspython-1.12-2.cp1158.x86_64
Some additional informations:
Code:
[~]# rpm -qa|grep python-dns

[~]# rpm -qa ^python
python-2.7.5-39.el7_2.x86_64

[~]# yum deplist python-dns
Plugins loaded: fastestmirror, langpacks, tsflags, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 74.50.120.123
* base: mirror.umd.edu
* epel: reflector.westga.edu
* extras: centos.mia.host-engine.com
* updates: mirrors.advancedhosters.com
package: python-dns.noarch 1.12.0-2.20150617git465785f.el7
  dependency: python(abi) = 2.7
   provider: python.x86_64 2.7.5-48.el7

[~]# repoquery --requires --resolve python-dns
python-0:2.7.5-48.el7.x86_64

[~]# repoquery --whatrequires python-dns
hash-slinger-0:2.7-1.el7.noarch
mailman-3:2.1.15-21.el7_1.x86_64
python-kdcproxy-0:0.2.1-1.el7.noarch
python-kdcproxy-0:0.3.2-1.el7.noarch
python2-ipaclient-0:4.4.0-12.el7.centos.noarch
python2-ipaclient-0:4.4.0-14.el7.centos.noarch
python2-ipalib-0:4.4.0-12.el7.centos.noarch
python2-ipalib-0:4.4.0-14.el7.centos.noarch
python2-ipaserver-0:4.4.0-12.el7.centos.noarch
python2-ipaserver-0:4.4.0-14.el7.centos.noarch
After put python-dns in exclude of /etc/yum.conf file:
exclude=courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* spamassassin* squirrelmail* python-dns*

I got this error bellow:
Code:
Error: Package: python2-ipalib-4.4.0-14.el7.centos.noarch (updates)
           Requires: python-dns >= 1.11.1-2
I've removed this package before, but now CentOS wants to install it again for the update.
What is the recommendation that I should follow here?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello @Rodrigo Gomes,

I've moved this post to it's own thread, as it's now handled with a separate internal case.

Internal case CPANEL-10392 is open to address an issue where the cpanel-dnspython package conflicts with any package depending on the OS supplied python-dns package, resulting in YUM updates failing.

In the meantime, you could add an additional entry to the exclude= line in /etc/yum.conf for the "python2-ipalib*" package. This will prevent your system from receiving updates to those packages, but should allow YUM to finish without error.

I'll update this thread with more information on the status of case CPANEL-10392 as it becomes available.

Thank you.
 
  • Like
Reactions: Rodrigo Gomes

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
  • Like
Reactions: Rodrigo Gomes