如何修复 Jenkins 的 yum 更新 [英] How to fix yum update of Jenkins
问题描述
我运行 Amazon AMI EC2 实例.常规任务之一是进行 yum 更新.通常,这不是问题.其中一台机器运行 Jenkins.我尝试执行我一直做的标准 yum 更新,但出现错误:
I run Amazon AMI EC2 instances. One of the regular tasks is doing a yum update. Normally, this is not an issue. One of the machines runs Jenkins. I tried to do the standard yum update I always do, and I got an error:
Error: Package: jenkins-2.306-1.1.noarch (jenkins)
Requires: daemonize
我一直在对此进行调查,似乎此新要求已被弃用.我能够找到自 2016 年以来一直没有更新的源代码.当前在该机器上运行的 Jenkins 似乎没有它.从旧源安装 daemonize 产品对机器的副本没有帮助.yum 更新仍然失败.
I have been investigating this and it seems that this new requirement is very deprecated. I was able to find the source, which hasn't been updated since 2016. The current Jenkins running on that machine seems fine w/o it. Installing the daemonize product from the old source didn't help on a copy of the machine. It still failed on yum update.
推荐答案
在 aws ec2 实例上安装 jenkins 时遇到同样的问题.以下命令对我有用.
Faced same problem while installing jenkins on aws ec2 instance. Below commands worked for me.
sudo amazon-linux-extras install epel -y
sudo yum update -y
sudo yum install jenkins java-1.8.0-openjdk-devel
参考 JIRA 票证:https://issues.jenkins.io/browse/JENKINS-66361
Reference JIRA ticket : https://issues.jenkins.io/browse/JENKINS-66361
这篇关于如何修复 Jenkins 的 yum 更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!