2016-08-22 83 views
3

我嘗試更新安全yum時有以下錯誤可以有人建議修復,我已經運行yum乾淨的元數據,並沒有工作我擔心運行yum乾淨所有,因爲這是建議作爲修復另一篇文章,因爲我不知道它是什麼?Centos sudo yum更新失敗

sudo yum update 
Loaded plugins: priorities, update-motd, upgrade-helper 
amzn-main/latest           | 2.1 kB  00:00  
amzn-updates/latest          | 2.3 kB  00:00  
centos             | 3.7 kB  00:00  
http://apt.sw.be/redhat/el5/en/x86_64/dag/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 
Trying other mirror. 
epel/x86_64/metalink          | 23 kB  00:00  
epel/x86_64            | 4.3 kB  00:00  
epel/x86_64/updateinfo         | 736 kB  00:00  
epel/x86_64/primary_db         | 5.9 MB  00:00  
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 
Trying other mirror. 
rpmforge             | 1.9 kB  00:00  
4028 packages excluded due to repository priority protections 
Resolving Dependencies 
--> Running transaction check 
---> Package aws-cli.noarch 0:1.10.46-1.40.amzn1 will be updated 
---> Package aws-cli.noarch 0:1.10.56-1.41.amzn1 will be an update 
---> Package compat-libtiff3.x86_64 0:3.9.4-10.13.amzn1 will be updated 
---> Package compat-libtiff3.x86_64 0:3.9.4-18.14.amzn1 will be an update 
---> Package curl.x86_64 0:7.40.0-8.58.amzn1 will be updated 
---> Package curl.x86_64 0:7.40.0-8.59.amzn1 will be an update 
---> Package dracut.noarch 0:004-336.28.amzn1 will be updated 
---> Package dracut.noarch 0:004-409.31.amzn1 will be an update 
http://apt.sw.be/redhat/el5/en/x86_64/dag/repodata/filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 
Trying other mirror. 

感謝

+0

你可以分享「ls /etc/yum.repos.d/」輸出嗎?其中一個存儲庫無效,其中包含apt.sw.be網址。您應該禁用該回購或刪除回購文件。 –

+0

嗨@AliOkanYüksel感謝您的回覆,我正在使用AWS EC2輸出。 amzn-main.repo centos.repo mirrors-rpmforge amzn-nosrc.repo dag.repo mirrors-rpmforge-extras amzn-preview.repo epel.repo mirrors-rpmforge-testing amzn-updates.repo epel-testing.repo rpmforge.repo – user1503606

回答

2

您應該刪除在/etc/yum.repos.d/目錄無效回購文件。

首先檢測與回購文件:

# grep -l apt.sw.be /etc/yum.repos.d/ 

刪除無效的回購協議文件和清潔百勝緩存中:

# sudo yum clean all 
+0

對不起,過於偏執謝謝你的答案,但將sudo百勝乾淨所有影響我的設置任何東西? – user1503606

+1

不,它不會影響任何關於您的設置 –

+0

感謝那麼多工作;) – user1503606

0

雖然AliOkan提供了一個有效的答案,這是爲什麼它在失敗的原因第一,因爲我也遇到類似的問題。

由於從你的跟蹤(你實際上有一個裁判BTW EL5,它不再被維護):

http://apt.sw.be/redhat/el[5|6]/en/x86_64/dag/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 
Trying other mirror. 

此錯誤指出了一些問題與rpmforge軟件庫,然後在official repo有這樣的信息:

RPMForge軟件/ RepoForge狀態

RPMForge軟件/ RepoForge是一條走不通的項目。它不被維護。 請勿 USE

https://github.com/repoforge/rpms/issues/375

看到它沒有正式維持了,但如果需要的話,也有地方的鏡子,見上面git的問題。