Daniel
Daniel

Reputation: 157

jenkins fails to install with no error on debian 7

i'm trying to get jenkins running on debian 7 but i keep getting this error while apt-get install jenkins is running.

Setting up dbus (1.6.8-1) ...

Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

[ ok ] Starting system message bus: dbus.

Also i get the message that jenkins is started at the end and no error message:

[ ok ] Starting Jenkins Continuous Integration Server: jenkins.

but /etc/init.d/jenkins status gives me the output that jenkins is not running. also ls -alh /var/lib/jenkins gives me an empty folder.

So the install fails with no error.

This is the way i'm running the install:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -

sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'

apt-get update

apt-get install jenkins

Has anyone of you tried installing jenkins on a fresh debian 7?

looking forward for helping answers.

kind regards and thanks in advance

Upvotes: 0

Views: 1359

Answers (3)

Daniel
Daniel

Reputation: 157

So i solved the problem finally.

I expected the Java SDK to have the right JRE in it, so i downloaded it from the Oracle website: jdk1.7.0_21-x64-linux.tar.gz after installing and registering this to my machine it worked java -version and javac -version.

Problem was the version of this JRE did not work with Jenkins so thanks to @wako, i installed openjdk-7-jre and i have now two jre's running on my machine but jenkins started finally. need to figure out if openjdk-7-jre suits my plans or if i need to fall back to Debian 6.

Upvotes: 1

wako
wako

Reputation: 24

I had the same problem on the debian 7 freshly installed, via the light version of debian 7 with the ssh server only installed. First I add the repository as you specified it, try to install jenkins but some dependencies were broken (daemon-psmisc-java2-runtime). To solve the problem I did an:

apt-get -f upgrade And it was OK

To complete the installation of jenkins you will need apache2 and java-jre

apt-get install apache2 openjdk-7-jre

Upvotes: 0

Gonen
Gonen

Reputation: 4075

This is an issue with apt-get and not with Jenkins -
please make sure you run it as root.

Can try to install (or upgrade) another package, to confirm.

Upvotes: 0

Related Questions