The following error occurred in the Yum installation file when using CentOS5.5 recently:
Error:failure:repodata/filelists.xml.gz from addons: [Errno) No more mirrors to try.
Workaround:
Yum Clean All
CentOS Replacement NetEase Source
1, download the Xinyuan and the local source backup
[Email protected] ~]# cd/etc/yum.repos.d/
[Email protected] ~]# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
[Email protected] ~]# MV Centos-base.repo Centos-base.repo.bak
[Email protected] ~]# MV Centos6-base-163.repo Centos-base.repo
2. Yum Source Update
[email protected] ~]# Yum clean all && yum makecache && Yum update-y
3. Complete
Example of using the Yum command tool
1. Upgrade the System
[[Email protected] ~] #yum Update
2. Install the specified package
[Email protected] ~]# yum-y install Mysql-server
3, upgrade the specified package
[[email protected] ~]# yum-y update MySQL
4. Uninstalling the specified package
[[email protected] ~]# yum-y remore MySQL
5. View the installed and available software groups on the system, and for available software groups, you can choose to install
[email protected] ~]# Yum grouplist
6. Install a software group from the available software groups shown in the previous command
[Email protected] ~]# yum-y groupinstall Emacs
7. Update the packages in the specified software group
[Email protected] ~]# yum-y groupupdate Emacs
8. Uninstalling packages in the specified software group
[Email protected] ~]# yum-y groupremove Emacs
9. Clear the cache of RPM header files and package files
[email protected] ~]# Yum Clean all
10. Search for related packages
[Email protected] ~]# Yum-y search Emacs
11, display the information of the specified package
[email protected] ~]# Yum info Emacs
12. Query the dependent package of the specified package
[email protected] ~]# Yum deplist Emacs
13. List all packages that start with Yum
[email protected] ~]# Yum list yum\*
14. List RPM packages that are installed but not included in the repository
[Email protected] ~]# # Yum List Extras
This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1759824
[Error]-error:failure:repodata/filelists.xml.gz from addons: [Errno] No more mirrors to try.