LoginSignup
4
4

More than 5 years have passed since last update.

[memo] CentOS 5のyumで発生するError performing checksumの対応方法

Last updated at Posted at 2016-05-30

いまどきCentOS 5を使っているのもどうかと思うのですが,公式の手順でJenkinsをyumでインストールしようとして下記エラーが発生。

user$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
user$ sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
user$ sudo yum -y install jenkins
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
jenkins                                                                                                                                   | 2.9 kB     00:00     
jenkins/primary_db                                                                                                                        |  83 kB     00:00     
http://pkg.jenkins-ci.org/redhat/repodata/fcf3dece940f2560206b25d53b09ce967d00caba40e0db300feaa4854aa9de34-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
jenkins/primary_db                                                                                                                        |  82 kB     00:00     
http://pkg.jenkins-ci.org/redhat/repodata/c2a4835c4ff525fceae6d45a2119eec5b54ed3b98329c3228c2f834b2e5b7d9c-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/c2a4835c4ff525fceae6d45a2119eec5b54ed3b98329c3228c2f834b2e5b7d9c-primary.sqlite.bz2 from jenkins: [Errno 256] No more mirrors to try.

デフォルトではchecksumとしてMD5とSHA1にしか対応していないことが原因。hashlibを使うことでSHA256にも対応できるのでインストールすれば万事解決。

user$ sudo yum -y                   install epel-release 
user$ sudo yum -y --enablerepo=epel install python-hashlib 
user$ sudo yum -y                   install jenkins

ちなみに上記ではjavaがインストールされずjenkinsが起動できないことがあるのでjava-1.7.0-openjdkもインストールのを忘れない。

参考)

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4