yum使用glibc依赖项解析更新错误

时间:2014-04-09 23:57:30

标签: amazon-ec2

当我尝试使用简单的“sudo yum update”更新我的2014.03 Amazon ec2实例时,我得到以下错误输出。任何有关解决这个问题的建议都会膨胀。

Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest                                         | 2.1 kB     00:00     
amzn-updates/latest                                      | 2.3 kB     00:00     
2141 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.12-1.107.43.amzn1 will be updated
--> Processing Dependency: glibc-headers = 2.12-1.107.43.amzn1 for package: glibc-devel-2.12-1.107.43.amzn1.x86_64
---> Package glibc-headers.x86_64 0:2.17-36.81.amzn1 will be an update
---> Package kernel-headers.x86_64 0:3.4.73-64.112.amzn1 will be updated
---> Package kernel-headers.x86_64 0:3.10.35-43.137.amzn1 will be an update
--> Finished Dependency Resolution
Error: Package: glibc-devel-2.12-1.107.43.amzn1.x86_64 (@amzn-main)
           Requires: glibc-headers = 2.12-1.107.43.amzn1
           Removing: glibc-headers-2.12-1.107.43.amzn1.x86_64 (@amzn-main)
               glibc-headers = 2.12-1.107.43.amzn1
           Updated By: glibc-headers-2.17-36.81.amzn1.x86_64 (amzn-updates)
               glibc-headers = 2.17-36.81.amzn1
           Available: glibc-headers-2.17-36.80.amzn1.x86_64 (amzn-main)
               glibc-headers = 2.17-36.80.amzn1
 You could try using --skip-broken to work around the problem
** Found 13 pre-existing rpmdb problem(s), 'yum check' output follows:
audit-2.2-2.17.amzn1.x86_64 has missing requires of audit-libs = ('0', '2.2', '2.17.amzn1')
audit-2.3.2-3.19.amzn1.x86_64 is a duplicate with audit-2.2-2.17.amzn1.x86_64
aws-amitools-ec2-1.5.1-0.0.amzn1.noarch is a duplicate with aws-amitools-ec2-1.4.0.9-2.0.amzn1.noarch
aws-amitools-ec2-1.5.2-0.0.amzn1.noarch is a duplicate with aws-amitools-ec2-1.5.1-0.0.amzn1.noarch
glibc-2.17-36.81.amzn1.i686 has installed conflicts audit < ('0', '2.3.0', None): audit-2.2-2.17.amzn1.x86_64
glibc-2.17-36.81.amzn1.x86_64 has installed conflicts audit < ('0', '2.3.0', None): audit-2.2-2.17.amzn1.x86_64
glibc-devel-2.12-1.107.43.amzn1.x86_64 has missing requires of glibc = ('0', '2.12', '1.107.43.amzn1')
glibc-devel-2.12-1.132.45.amzn1.x86_64 is a duplicate with glibc-devel-2.12-1.107.43.amzn1.x86_64
glibc-devel-2.12-1.132.45.amzn1.x86_64 has missing requires of glibc = ('0', '2.12', '1.132.45.amzn1')
glibc-devel-2.12-1.132.45.amzn1.x86_64 has missing requires of glibc-headers = ('0', '2.12', '1.132.45.amzn1')
glibc-devel-2.17-36.81.amzn1.x86_64 is a duplicate with glibc-devel-2.12-1.132.45.amzn1.x86_64
glibc-devel-2.17-36.81.amzn1.x86_64 has missing requires of glibc-headers = ('0', '2.17', '36.81.amzn1')
glibc-headers-2.12-1.107.43.amzn1.x86_64 has missing requires of glibc = ('0', '2.12', '1.107.43.amzn1')

3 个答案:

答案 0 :(得分:1)

1,yum install yum-utils.noarch

2,package-cleanup --cleandupes

那么它会告诉你这样的事情


- &GT;完成的依赖性解决方案 错误:尝试删除受保护的&#34; yum&#34;  您可以尝试使用--skip-broken来解决问题 -------------------------------------------- 以防


glibc-common-2.12-1.149.el6.x86_64与glibc-common-2.12-1.132.el6_5.4.x86_64重复 glibc-common-2.12-1.149.el6.x86_64缺少glibc =(&#39; 0&#39;,&#39; 2.12&#39;,&#39; 1.149.el6&#39;)


3,yum check dependencies

yum检查依赖项 加载的插件:fastermirror glibc-common-2.12-1.149.el6.x86_64缺少glibc =(&#39; 0&#39;,&#39; 2.12&#39;,&#39; 1.149.el6&#39;) 错误:检查[&#39;依赖关系&#39;]

4,rpm -e --nodeps glibc-common-2.12-1.149.el6.x86_64

5,yum clean all

6,yum update -y

答案 1 :(得分:0)

我遇到了这个问题并通过以下方式解决:

sudo package-cleanup --cleandupes

然后再次运行更新:

sudo yum update

答案 2 :(得分:0)

这不是一个真正的答案,但为了避免其他人回答我无法再测试的问题,我们最终离开了该服务器并丢弃了它。我从来没有机会验证Nick Z.的答案是否会解决问题。我相信我们尝试了绿色建议,但似乎没有明确这个问题。感谢所有人试图回答。