安装 Jenkins 时出错

安装 Jenkins 时出错

我在安装时遇到问题詹金斯在我的Ubuntu14.04服务器。Java版本是1.8。

以 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

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.

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.

相关内容