如何修复 Jenkins 的 yum 更新 [英] How to fix yum update of Jenkins

查看:42
本文介绍了如何修复 Jenkins 的 yum 更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行 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.

  1. sudo amazon-linux-extras install epel -y
  2. sudo yum update -y
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆