Join the community today
Register Now

Yum update dependency problem

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

  1. Andy

    Andy Premium Member Premium Member

    500
    81
    28
    Aug 6, 2014
    Ratings:
    +116
    Local Time:
    1:51 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

    48,881
    11,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,421
    Local Time:
    3:51 PM
    Nginx 1.21.x
    MariaDB 10.x
    try running

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

    Andy Premium Member Premium Member

    500
    81
    28
    Aug 6, 2014
    Ratings:
    +116
    Local Time:
    1:51 AM
    Got same errors when running yum distro-sync
     
  4. eva2000

    eva2000 Administrator Staff Member

    48,881
    11,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,421
    Local Time:
    3:51 PM
    Nginx 1.21.x
    MariaDB 10.x
    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 Premium Member Premium Member

    500
    81
    28
    Aug 6, 2014
    Ratings:
    +116
    Local Time:
    1:51 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

    48,881
    11,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,421
    Local Time:
    3:51 PM
    Nginx 1.21.x
    MariaDB 10.x
    haha double dash !

    Glad I could help