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

    313
    45
    28
    Aug 6, 2014
    Ratings:
    +54
    Local Time:
    2:33 PM
    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

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    4:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    try running

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

    Andy Active Member

    313
    45
    28
    Aug 6, 2014
    Ratings:
    +54
    Local Time:
    2:33 PM
    Got same errors when running yum distro-sync
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    4:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    313
    45
    28
    Aug 6, 2014
    Ratings:
    +54
    Local Time:
    2:33 PM
    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

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    4:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    haha double dash !

    Glad I could help