Recently because the company needs has been, has been in the development of CentOS, you know, this thing to engage in a problem, especially for my half-baked people, especially pain. As a result, it is estimated that a number of subsequent articles on CentOS will be published.
It is estimated that if you are not idle and have nothing to do, you will not spoil the Yum used to install the software. The reasons for my bad are as follows:
1, because Yum can not find a software I want, memory seems to be mod_python (this thing for a long time cannot be loaded Ah, do not know whether the software version and the current system is incompatible with the problem)
2, so ready to change a source, with Epel
3, change the time is very smooth, all normal, in order to start Epel source, so to change the configuration file
4, change the configuration file, changed the/etc/yum.repos.d/eped.repo, but accidentally, with vim, the contents of the file covered.
5, Finally, it caused the problem error.
Let's start with the repair process:
1, the first Epel,yum and so on all remove
Rpm-aq|grep Epel|xargs rpm-e--nodeps
Rpm-aq|grep Yum|xargs rpm-e--nodeps
2, go to a good place CentOS resources, Address: Http://centos.ustc.edu.cn/centos, for example, below we need to find things in the following locations:
Http://centos.ustc.edu.cn/centos/6.4/os/x86_64/Packages/, all the newest 64-bit.
Download the following software: (in order to eliminate the version of the problem, so here only give the software name, version and arch own decision)
Yum
Yum-metadata-parser
Python-iniparse
Yum-fastestmirror
3. Install the above software in the following order
RPM-IVH Python-iniparse (Remember, here you have to change to the full name of the rpm you downloaded, for example, python-iniparse-0.2.3-4.el5.noarch.rpm, under the same token)
RPM-IVH Yum-metadata-parser
RPM-IVH Yum Yum-fastestmirror
4, yum update
5, you are done, steal the music
Note: Reprint indicates the source, respect typing toil.