2014-04-09 17 views
2

當我嘗試使用「sudo yum update」更新我的2014.03 Amazon ec2實例時,出現以下錯誤輸出。任何關於解決這個問題的建議都會增加。yum更新glibc依賴分辨率錯誤

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') 
+0

也許這會在ServerFault上得到更好的解答。如果是這樣,我的道歉,因爲我沒有意識到,該網站直到幾個小時前才存在。 –

回答

0

我有這個問題,並解決:

sudo package-cleanup --cleandupes 

,然後再次運行更新:

sudo yum update 
1

1,yum install yum-utils.noarch

2,package-cleanup --cleandupes

,然後它會告訴你這樣的事情


- >成品依賴解析 錯誤:試圖刪除「蔭」,這是保護 你可以嘗試使用--skip-破碎解決問題 -------------------------------------------- in case


glibc-common-2.12-1.149.el6.x86_64與glibc-common-2.12-1.132.el6_5.4.x86_64 01重複的glibc-共2.12-1.149.el6.x86_64已經丟失需要的glibc =( '0', '2.12', '1.149.el6')


3,yum check dependencies

蔭檢查依賴性 加載插件:fastestmirror 的glibc-共2.12-1.149.el6.x86_64已經丟失需要的glibc =( '0', '2.12', '1.149.el6') 錯誤:檢查[ '依賴']

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

5,yum clean all

6,yum update -y

0

這是不是一個真正的答案,但爲了避免對方的迴應我不能再測試中,我們結束了移動關閉該服務器,並丟棄它的問題。我從來沒有得到過驗證Nick Z.的答案是否能解決問題的機會。我相信我們嘗試了綠色建議,但似乎沒有解決這個問題。感謝所有人試圖回答。