Centos 6.6 yum与NTP更新有关

嗨,我有一个问题,百胜,我似乎已经打破了依赖? 我有一个Linux的一般知识,但我不知道如何解决这个问题。 运行CentOS 6.6。

以下是yum的输出:

yum update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile * epel: mirror.symnds.com Resolving Dependencies --> Running transaction check ---> Package ntpdate.x86_64 0:4.2.6p5-1.el6.centos will be updated --> Processing Dependency: ntpdate = 4.2.6p5-1.el6.centos for package: ntp-4.2.6p5-1.el6.centos.x86_64 ---> Package ntpdate.x86_64 0:4.2.6p5-2.el6.centos will be an update --> Finished Dependency Resolution Error: Package: ntp-4.2.6p5-1.el6.centos.x86_64 (@base) Requires: ntpdate = 4.2.6p5-1.el6.centos Removing: ntpdate-4.2.6p5-1.el6.centos.x86_64 (@base) ntpdate = 4.2.6p5-1.el6.centos Updated By: ntpdate-4.2.6p5-2.el6.centos.x86_64 (updates) ntpdate = 4.2.6p5-2.el6.centos You could try using --skip-broken to work around the problem ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: ntp-4.2.6p5-2.el6.centos.x86_64 is a duplicate with ntp-4.2.6p5-1.el6.centos.x86_64 ntp-4.2.6p5-2.el6.centos.x86_64 has missing requires of ntpdate = ('0', '4.2.6p5', '2.el6.centos') 

运行yum –skip-broken似乎没有做任何事情。 由于最近发现的NTP攻击,我认为这一点很重要。

谢谢!

你看到这一点,因为以前的yum事务,试图更新ntp,中途被中断。 通常在下一次尝试使用yum时会提醒您,您需要运行yum-complete-transaction ,但是您只能被警告一次。 如果你忽略了这个警告,你最终会陷入这种情况。

要解决该问题,请使用package-cleanup实用程序。

 package-cleanup --dupes 

显示重复的包(这里的问题)

 package-cleanup --cleandupes 

删除重复项。 你可能想yum reinstall受影响的软件包。

 package-cleanup --problems 

将向您显示RPM数据库的其他任何问题。