Currently, open-source Yum has USTC and 163. If you download the repo file directly from the Internet, an error will be reported during the operation. You have manually modified it:
USTC yum is used. The configuration file is as follows:
[Root @ web1 yum. Repos. d] # Cat USTC. Repo
[Base]
CentOS-5.9-base-mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/5.9/ OS /?basearch/
Gpgcheck = 0
Enabled = 1
# Released updates
[Updates]
Name = CentOS-5.9-Updates -mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/5.9/updates/?basearch/
Gpgcheck = 0
Enabled = 1
# Additional packages thatmay be useful
[Extras]
Name = CentOS-5.9-extras -mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/5.9/extras/?basearch/
Gpgcheck = 0
Enabled = 1
After the configuration is complete, execute Yum update and report the error "error configurming checksum ".
[Root @ web1 yum. Repos. d] # Yum update
Loaded plugins: katello, product-ID, security, subscribe-Manager
Updating certificate-based repositories.
Unable to read Consumer identity
Base | 3.7 KB
Base/primary_db | 4.4 MB
Fail-3] error occurred mingchecksum
Trying other mirror.
Base/primary_db | 4.4 MB
Fail-3] Error callback Ming checksum
Trying other mirror.
Error: Failure: repodata/partition base: [errno 256] No more mirrors to try.
Google said that the repomd. xml file in RHEL 6 uses sha256 as the hash algorithm, and Sha is used as the hash algorithm by default in RHEL 5.
But I use 5.8 Yum on Redhat 5.9. This error also occurs.
The solution on the Internet is to use the new sha1 to reconstruct the repo:
# Createrepo-s sha1 dave-el5-x86_64
I have not created it here. Run the following command directly:
# Yum clean all
Then OK. Small knowledge.
Bytes --------------------------------------------------------------------------------------------
All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!
QQ: 251097186
Skype: tianlesoftware
Email: tianlesoftware@gmail.com
Blog: http://blog.csdn.net/tianlesoftware
WEAVER: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
LinkedIn: http://cn.linkedin.com/in/tianlesoftware