'Failed to synchronize cache for repo 'jenkins', ignoring this repo error
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
I have installed java 8 .
Solution 1:[1]
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
Solution 2:[2]
I would say the key part of your issue is the Failed to synchronize cache for repo 'jenkins', ignoring this repo error.
From my testing the size of the metadata that is downloaded when you use yum was about 18kB not the 13kB that is shown in your screenshot and so I think that the issue might be network connectivity or similar.
I'd suggest running yum install --verbose jenkins to see if that sheds any light on why it is failing to synchronize the repo cache.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rohan jangid |
| Solution 2 | r2b2nz |

