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: u> 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:
- Solution to the problem of vs2017 error report unable to open source file
- CentOS uses Yum install to report errors
- Alicloud CentOS 5 old version yum/ repomd.xml : [Errno 14] HTTP Error 404: Not Found
- Use yum to prompt Error: rpmdb open failed
- Method of generating MD5 file checksums under Windows
- Prompt error: rpmdb open failed using yum
- IntelliSense: unable to open source file ‘StdAfx. H’
- Alpine Linux executable file crash report error / lib / x86 not found_ 64 Linux GNU / libc.so solution
- Solution of unable to open source file “StdAfx. H” in vs2013 / 2012
- Unable to open source file in vs
- Fedora 14 yum Error: Cannot retrieve repository metadata (repomd.xml) for repository
- yum Times Error: rpmdb open failed solution
- Vs error prompt: “unable to open source file XXXX. H” possible reasons and Solutions
- IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”
- How to solve the problem of “unable to open source file XXXXX. H” in VS development?
- Rtmpdump open source project
- Node.js Using port 80 to report errors in Linux
- Vs compiling OpenGL project, the solution of unable to open the source file “GL / glaux. H” appears
- Yum installation error Error:Nothing to Do
- QuickFIX/J100% Java Open Source FIX Engine