EC2 yum更新失败

时间:2013-11-18 01:53:08

标签: amazon-ec2 centos updates yum

我在运行亚马逊AMI的EC2上有一个实例。从本周开始,由于依赖解析问题,我无法完成yum更新:

$  yum update
Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper
Loading mirror speeds from cached hostfile
 * amzn-main: packages.us-east-1.amazonaws.com
 * amzn-updates: packages.us-east-1.amazonaws.com
 * epel: mirror.symnds.com
amzn-main/latest                                                                                                                                                                                                     | 2.1 kB     00:00
amzn-updates/latest                                                                                                                                                                                                  | 2.3 kB     00:00
652 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package device-mapper.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-event.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-event.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-event-libs.i686 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-event-libs.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-event-libs.i686 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-event-libs.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-libs.i686 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-libs.x86_64 0:1.02.77-9.19.amzn1 will be updated
---> Package device-mapper-libs.i686 0:1.02.77-9.20.amzn1 will be an update
---> Package device-mapper-libs.x86_64 0:1.02.77-9.20.amzn1 will be an update
---> Package libblkid.i686 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libblkid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libblkid.x86_64 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libblkid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libblkid.i686 0:2.17.2-13.17.amzn1 will be an update
---> Package libblkid.x86_64 0:2.17.2-13.17.amzn1 will be an update
---> Package libuuid.i686 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libuuid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libuuid.x86_64 0:2.17.2-13.16.amzn1 will be updated
--> Processing Dependency: libuuid = 2.17.2-13.16.amzn1 for package: util-linux-ng-2.17.2-13.16.amzn1.i686
---> Package libuuid.i686 0:2.17.2-13.17.amzn1 will be an update
---> Package libuuid.x86_64 0:2.17.2-13.17.amzn1 will be an update
---> Package lvm2.x86_64 0:2.02.98-9.19.amzn1 will be updated
---> Package lvm2.x86_64 0:2.02.98-9.20.amzn1 will be an update
---> Package lvm2-libs.x86_64 0:2.02.98-9.19.amzn1 will be updated
---> Package lvm2-libs.x86_64 0:2.02.98-9.20.amzn1 will be an update
---> Package util-linux-ng.x86_64 0:2.17.2-13.16.amzn1 will be updated
---> Package util-linux-ng.x86_64 0:2.17.2-13.17.amzn1 will be an update
--> Finished Dependency Resolution
Error: Package: util-linux-ng-2.17.2-13.16.amzn1.i686 (@amzn-main)
           Requires: libblkid = 2.17.2-13.16.amzn1
           Removing: libblkid-2.17.2-13.16.amzn1.i686 (@amzn-main)
               libblkid = 2.17.2-13.16.amzn1
           Updated By: libblkid-2.17.2-13.17.amzn1.i686 (amzn-updates)
               libblkid = 2.17.2-13.17.amzn1
Error: Package: util-linux-ng-2.17.2-13.16.amzn1.i686 (@amzn-main)
           Requires: libuuid = 2.17.2-13.16.amzn1
           Removing: libuuid-2.17.2-13.16.amzn1.i686 (@amzn-main)
               libuuid = 2.17.2-13.16.amzn1
           Updated By: libuuid-2.17.2-13.17.amzn1.i686 (amzn-updates)
               libuuid = 2.17.2-13.17.amzn1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我真的不认为删除util-linux-ng来解决依赖关系会是一个很好的解决方案,因为我在该软件包中看到了很多关键工具。有没有人有一个好的解决方案?提前谢谢。

2 个答案:

答案 0 :(得分:3)

yum clean all

yum update

为我解决了这个问题。

yum clean all将删除yum缓存的所有内容,确保在运行命令之前不依赖任何缓存的数据。

答案 1 :(得分:0)

看起来你需要等待亚马逊更新到 util-linux-ng-2.17.2-13.17.amzn1.i686

与此同时,您可以遵循以下建议:

You could try using --skip-broken to work around the problem

通过运行:

yum update --skip-broken

更新其他所有内容。