1. 程式人生 > >yum install ntp 報錯:Error: Package: ntp-4.2.6p5-25.el7.centos.2.x86_64 (base)

yum install ntp 報錯:Error: Package: ntp-4.2.6p5-25.el7.centos.2.x86_64 (base)

時報 existing -s pmd cond AC base update ntpdate

redhat7 在安裝ntp時報如下錯誤

Error: Package: ntp-4.2.6p5-25.el7.centos.2.x86_64 (base)
Requires: ntpdate = 4.2.6p5-25.el7.centos.2
Installed: ntpdate-4.2.6p5-25.el7_3.2.x86_64 (@anaconda/7.4)
ntpdate = 4.2.6p5-25.el7_3.2
Available: ntpdate-4.2.6p5-25.el7.centos.2.x86_64 (base)
ntpdate = 4.2.6p5-25.el7.centos.2
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), ‘yum check‘ output follows:
rhn-check-2.0.2-17.el7.noarch has missing requires of yum-rhn-plugin >= (‘0‘, ‘1.6.4‘, ‘1‘)

解決:

yum clean all

yum distro-sync

yum update

yum install ntp 報錯:Error: Package: ntp-4.2.6p5-25.el7.centos.2.x86_64 (base)