I did an upgrade of Ubuntu from 12.04 to 14.04 and was surprised to discover that my earlier installed and configured jenkins is broken. To add to the misery, if I do an apt-get install jenkins or apt-cache search jenkins. I do not see either jenkins or jenkins-cli or jenkins-common.
If I do an apt-get install jenkins, I get the error:
buildman@pluto:~$ sudo apt-get install jenkins
Reading package lists... Done
Building dependency tree
Reading state information... Done
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 candidateMy OS details:
buildman@pluto:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trustyAny pointers on how to get out of the mess (that I created) would be of great help.
2 Answers
Jenkins was removed from the official Ubuntu repositories in Trusty. The reasoning was given in , but the short version is that it's more secure and easier to keep up-to-date if you use the upstream repository from now on. Details on how to do that are available at
3installing jenikin
wget -q -O - | sudo apt-key add -
sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
sudo cat /var/lib/jenkins/secrets/initialAdminPassword (to get admin password)
sudo apt-get update
sudo apt-get install jenkins
you can skip last two lines but I followed that way