jenkins无法在Centos 7.4上安装2.89.4-1.1版本

时间:2018-04-02 14:27:34

标签: jenkins

我正在尝试在Centos 7.4服务器上安装jenkins 2.89.4-1.1版本的jenkins,但我的安装失败并出现以下错误, Ĵ

enkins-2.89.4-1.1.noarch.rpm  FAILED
http://pkg.jenkins.io/redhat/jenkins-2.89.4-1.1.noarch.rpm: [Errno 14] HTTP Error 404 - Not Found        0% [                                                                                              ]  0.0 B/s |    0 B  --:--:-- ETA
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



Error downloading packages:
  jenkins-2.89.4-1.1.noarch: [Errno 256] No more mirrors to try.

到目前为止我尝试过的步骤

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins-2.89.4-1.1

任何人都可以建议下一步做什么。 我寻找错误中提到的网站中的解决方案,但他们似乎没有工作

1 个答案:

答案 0 :(得分:2)

我面临类似的错误,最简单的解决方案是

# yum clean all
# rm -rf /var/cache/yum

OR

您可以手动下载rpm

wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.89.4-1.1.noarch.rpm


rpm -ivh jenkins-2.89.4-1.1.noarch.rpm

此问题的主要原因:由于本地计算机缓存损坏,请尝试清除系统上的缓存