Linux uses open source Yum to report error performing checksums

 
Now open source yum has USTC and 163. Repo file downloaded directly from the Internet, running will report an error, manually modified a bit:
 
Ustc yum is used, and the configuration file is as follows:
[root@web1 yum.repos.d]# cat ustc.repo
 
[base]
Name = 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
 
Once configured, perform YUM Update, Error Performing Checksum
 
[root@web1 yum.repos.d]# yum update
Loaded plugins: katello, product-id,security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Base | 3.7 kB 00:00
The base/primary_db | 4.4 MB 00:02
http://mirrors.ustc.edu.cn/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2: [Errno – 3] Error performingchecksum
Trying other mirror.
The base/primary_db | 4.4 MB 00:02
http://mirrors.ustc.edu.cn/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2: [Errno – 3] Error performing checksum
Trying other mirror.
Error: failure:repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2from base: [Errno 256] No more mirrors to try.
 
 
Google says that the REPomd.xml file USES SHA256 as the hash algorithm in RHEL 6, and SHA as the hash algorithm by default in RHEL 5.
 
But I’m using yum with 5.9 on Redhat 5.8. This error also occurs.
 
The online solution is to use the new SHA1 to rebuild repo:
# createrepo -s sha1 dave-el5-x86_64
 
 
I did not create it here, but just execute the following command:
# yum clean all
 
 
And then it’s ok. Little knowledge, along with notes.
 
 
 
 
 
 
 
 
 
——————————————————————————————–
Copyright, the article is allowed to reprint, but must indicate the source address in the way of link, otherwise the legal responsibility!
QQ:492913789
Email:[email protected]
Blog: http://www.cndba.cn/dave
Weibo: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
Linkedin: http://cn.linkedin.com/in/tianlesoftware

Read More: