I am facing issues while installing jenkins on my ubuntu14.04 server. Java version is 1.8.
Steps followed as root:
wget --no-check-certificate -qO - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sh -c 'echo deb https://pkg.jenkins.io/debian binary/ > /etc/apt/sources.list.d/jenkins.list’
apt-get upgrade
apt-get update
apt-get install jenkins
The output for apt-get update:
W: Failed to fetch http://repos.sensuapp.org/apt/dists/sensu/InRelease
W: Failed to fetch http://repos.sensuapp.org/apt/dists/sensu/Release.gpg Could not resolve 'repos.sensuapp.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Output for apt-get install jenkins:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
jenkins : Depends: sysvinit-utils (>= 2.88dsf-50) but 2.88dsf-41ubuntu6.3 is to be installed
E: Unable to correct problems, you have held broken packages.