Thursday, November 18, 2021

[SOLVED] Failed to synchronize cache for repo 'jenkins', ignoring this repo error

Issue

I am installing Jenkins on redhat version 8 so i run below command as per suggested Jenkins official documentation

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

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

but when I run command

yum install Jenkins

its showing an error me error like this

Failed to synchronize cache for repo 'Jenkins', ignoring this repo

error-log

I have installed java 8 .


Solution

my yum is perfectly working fine as i tried yum install python3 its working good but for jenkins it`s not working so that you have to download jenkins repo after download go to your terminal and run command rpm -ivh



Answered By - Rohan jangid