How to fix yum update of Jenkins
Asked Answered
N

6

11

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.

Ninepins answered 16/8, 2021 at 17:9 Comment(0)
P
36

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

Pottle answered 23/8, 2021 at 11:18 Comment(5)
This was exactly what I needed, thanks!Misery
After lot of research find above solutionDactylic
This worked. Thansk!Cleaver
this works, but $sudo yum install jenkins -y works for the 3rd step if using a different jdkLevey
@Levey yes... in this answer i specifically used open jdkPottle
T
9

I was facing the same issue while configuring jenkins.

As epel was already present but it was not enabled causing the issue I installed and enable epel as

# sudo yum install epel-release -y 
# sudo yum-config-manager --enable epel
# sudo yum install daemonize -y  

then jenkins from - https://archives.jenkins-ci.org/redhat/

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

If you've previously imported the key from Jenkins, the rpm --import will fail because you already have a key. Please ignore that and move on.

yum install jenkins
Tuyettv answered 15/9, 2021 at 11:32 Comment(1)
I can verify this works when using Amazon Linux 2018.03. I ran into certificate issues after the first three steps, which were that wget and rpm were incorrectly flagging certificates as expired. I fixed this by running sudo yum update ca-certificates per recommendations here: aws.amazon.com/premiumsupport/knowledge-center/…. However, Amazon Linux 2018.03 end of lifed in 2020 so the right option if you're in my position is to update to Amazon Linux 2Verboten
A
4

Use this command:

sudo amazon-linux-extras install epel
Af answered 18/8, 2021 at 6:30 Comment(0)
B
3

This issue is reported on the Jenkins bug tracker:

https://issues.jenkins.io/browse/JENKINS-66361

Note there are instructions on the bug report for installing from epel-release.

Breeching answered 16/8, 2021 at 21:12 Comment(0)
M
3

I solved this problem with these two commands:

curl -LO 'https://rpmfind.net/linux/epel/7/x86_64/Packages/d/daemonize-1.7.7-1.el7.x86_64.rpm'
sudo rpm -Uvh ./daemonize-1.7.7-1.el7.x86_64.rpm
sudo yum install jenkins -y
Mottle answered 17/9, 2021 at 17:27 Comment(0)
E
0

I am using AWS EC2 instance, below commands works

amazon-linux-extras install epel -y && yum update jenkins -y

https://issues.jenkins.io/browse/JENKINS-66361?focusedCommentId=412263&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-412263

Emie answered 30/8, 2021 at 1:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.