After placing the server in the IDC and setting a fixed IP address, I can't use the yum source. The following error always occurs every time Yum install.
Pipeline [errno 14] pycurl Error 6-"" trying other mirror. Error: cannot retrieve repository metadata (repomd. XML) for repository: extras. Please verify its path and try again
At this time, I was so smart that I immediately thought that the server could not parse the domain name, And the repomd. xml could not be downloaded?
Then I pinged mirrors.ustc.edu.cn, and an error occurred: Ping: Unknown host mirrors.ustc.edu.cn. Apparently, the DNS configuration is incorrect.
Add a line to/etc/hosts.
Mirrors.ustc.edu.cn 202.38.95.110
In this way, you can parse mirrors.ustc.edu.cn. Yum successful!
Note: But this is not the final solution to this problem. You need to configure the correct DNS. Open the/etc/resolv. conf file and add a nameserver IP. Replace the IP address with the DNS address provided by the IDC operator.