Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED RPM conflicts with python-dns

Discussion in 'General Discussion' started by Rodrigo Gomes, Dec 13, 2016.

Tags:
  1. Rodrigo Gomes

    Rodrigo Gomes Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    88
    Likes Received:
    21
    Trophy Points:
    8
    Location:
    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?
     
    #1 Rodrigo Gomes, Dec 13, 2016
    Last edited: Dec 13, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Rodrigo Gomes likes this.
  3. Rodrigo Gomes

    Rodrigo Gomes Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    88
    Likes Received:
    21
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello Michael,

    I was able to update after add ipa-python-compat* in an additional entry to the exclude= line in /etc/yum.conf.

    Thank you! I'll follow up on this internal case.
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Rodrigo Gomes likes this.
Loading...

Share This Page