Package jenkins is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'jenkins' has no installation candidate

This is the wrror you got. Yes it made me crazy. Anyways, I’m not a person who is giving up something if we think it’s hard. Sometimes, i sleep and get up, then problem can be solved. This thing was on the same board. Anyways, let’s get into the topic.

Above error came when I was trying to install jenkins server on Linode. I have experienced so many VPS services such as Digital Ocean, AWS, Indian VPS and so many. However, some VPS game me a very huge headeche and I just removed them from my list. Anyways, Linode is one of my best service provide. I can’t blame them for this issue.

However, try the following code lines to fix that error. I have already written two articles about jenkins installation. They also will be worked on some servers. (I experienced them on AWS).

Add Jenkins Apt-Get Repository Key (you must install jdk before this line. Check my other articles.)

wget -q -O - | sudo apt-key add -


Add Jenkins to the Sources List

sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'


Update Your Local apt-get Repository

sudo apt-get update


Just install Jenkins. You won’t see that error again.

sudo apt-get install jenkins


OK Cool!  Have a great day. Come back again.

Write A Comment