Join the community today
Register Now

Upgrade Error: Package: libxml2-python

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Dec 14, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    2,825
    253
    83
    May 31, 2014
    Ratings:
    +449
    Local Time:
    2:18 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi :)

    I am getting a libxml2-python error :(

    Code:
    --> Finished Dependency Resolution
    Error: Package: libxml2-python-2.9.1-6.el7_2.3.x86_64 (base)
               Requires: libxml2 = 2.9.1-6.el7_2.3
               Installed: libxml2-2.9.4-1.0.cf.rhel7.x86_64 (@city-fan.org)
                   libxml2 = 2.9.4-1.0.cf.rhel7
               Available: libxml2-2.9.1-6.el7_2.3.x86_64 (base)
                   libxml2 = 2.9.1-6.el7_2.3
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    How can i fix this one?

    I am on Centos 7 64Bit.

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    10:18 AM
    Nginx 1.13.x
    MariaDB 5.5
    as you installed addons/customcurl.sh city-fan yum repo, might want exclude libxml2-python in /etc/yum.repos.d/CentOS-Base.repo under updates (exclude=libxml2-python)

    i.e.
    Code (Text):
    cat /etc/yum.repos.d/CentOS-Base.repo
    # CentOS-Base.repo
    #
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #
    
    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=1
    
    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=1
    exclude=libxml2-python
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=1
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=2

    See if that works
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    10:18 AM
    Nginx 1.13.x
    MariaDB 5.5
    oops should be exclude=libxml2
     
  4. pamamolf

    pamamolf Well-Known Member

    2,825
    253
    83
    May 31, 2014
    Ratings:
    +449
    Local Time:
    2:18 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yup it works :)

    Thank you
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    10:18 AM
    Nginx 1.13.x
    MariaDB 5.5
    or instead of above try updating via
    Code (Text):
    yum update libxml2 --disableplugin=priorities --enablerepo=city-fan.org 
    
     
  6. pamamolf

    pamamolf Well-Known Member

    2,825
    253
    83
    May 31, 2014
    Ratings:
    +449
    Local Time:
    2:18 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    No packages marked for update :(
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    10:18 AM
    Nginx 1.13.x
    MariaDB 5.5
    because you already have it updated
    Code (Text):
    yum list libxml2

    should list the city-fan.org ones
     
  8. pamamolf

    pamamolf Well-Known Member

    2,825
    253
    83
    May 31, 2014
    Ratings:
    +449
    Local Time:
    2:18 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Confused :(

    But i was disable it first from:

    Code:
    /etc/yum.repos.d/CentOS-Base.repo
    How it was updated?

    Should i keep now that exclude there to avoid that issue in the future?
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    10:18 AM
    Nginx 1.13.x
    MariaDB 5.5
    you disabled centos native base update but leaves city-fan.org yum repo available
     
    • Informative Informative x 1
  10. pamamolf

    pamamolf Well-Known Member

    2,825
    253
    83
    May 31, 2014
    Ratings:
    +449
    Local Time:
    2:18 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Do you recommend me to keep that exclude there now or is it ok to remove it?
     
    Last edited: Dec 14, 2016