Want to subscribe to topics you're interested in?
Become a Member

Yum update dependency problem

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Andy, Aug 6, 2015.

  1. Andy

    Andy Active Member

    544
    89
    28
    Aug 6, 2014
    Ratings:
    +133
    Local Time:
    5:24 AM
    One of my servers running 08stable got this error when doing a yum update.
    Code:
    --> Finished Dependency Resolution
    Error: Package: ntp-4.2.6p5-19.el7.centos.x86_64 (@updates)
               Requires: ntpdate = 4.2.6p5-19.el7.centos
               Removing: ntpdate-4.2.6p5-19.el7.centos.x86_64 (@updates)
                   ntpdate = 4.2.6p5-19.el7.centos
               Updated By: ntpdate-4.2.6p5-19.el7.centos.1.x86_64 (updates)
                   ntpdate = 4.2.6p5-19.el7.centos.1
     You could try using --skip-broken to work around the problem
    ** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
    iputils-20121221-6.el7_1.1.x86_64 is a duplicate with iputils-20121221-6.el7.x86_64
    ntp-4.2.6p5-19.el7.centos.1.x86_64 is a duplicate with ntp-4.2.6p5-19.el7.centos.x86_64
    ntp-4.2.6p5-19.el7.centos.1.x86_64 has missing requires of ntpdate = ('0', '4.2.6p5', '19.el7.centos.1')


     
  2. eva2000

    eva2000 Administrator Staff Member

    55,165
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    8:24 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try running

    Code:
    yum-complete-transaction
    or
    Code:
    yum clean all
    yum distro-sync
    yum -y update
     
  3. Andy

    Andy Active Member

    544
    89
    28
    Aug 6, 2014
    Ratings:
    +133
    Local Time:
    5:24 AM
    Got same errors when running yum distro-sync
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,165
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    8:24 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what happens if you manually and specially remove the complaining package version and install the newer version
    Code:
    rpm -e --nodeps iputils-20121221-6.el7
    yum -y install iputils-20121221-6.el7_1.1
    
    Code:
    rpm -e --nodeps ntp-4.2.6p5-19.el7.centos
    yum -y install ntp-4.2.6p5-19.el7.centos.1
    
     
    Last edited: Aug 6, 2015
  5. Andy

    Andy Active Member

    544
    89
    28
    Aug 6, 2014
    Ratings:
    +133
    Local Time:
    5:24 AM
    Thank you. the rpm should have --nodeps, not -nodeps
    The yum install step will result in "already install and latest version"

    In any case, yum update will not complain anymore. Great job.
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,165
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    8:24 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haha double dash !

    Glad I could help