Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

amazon ec2 - How to fix yum update of Jenkins

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

Reference JIRA ticket : https://issues.jenkins.io/browse/JENKINS-66361


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...