Installation of deb package for versions
126.96.36.199 or higher fails in Ubuntu
14.04 due to Java 8 dependency problems.
Selecting previously unselected package jenkins. (Reading database ... 1170043 files and directories currently installed.) Preparing to unpack jenkins_188.8.131.52_all.deb ... Unpacking jenkins (184.108.40.206) ... dpkg: dependency problems prevent configuration of jenkins: jenkins depends on default-jre-headless (>= 2:1.8) | java8-runtime-headless; however: Package default-jre-headless is not installed. Package java8-runtime-headless is not installed. Package openjdk-8-jre-headless:amd64 which provides java8-runtime-headless is not installed. dpkg: error processing package jenkins (--install): dependency problems - leaving unconfigured Processing triggers for ureadahead (0.100.0-16) ... ureadahead will be reprofiled on next reboot Errors were encountered while processing: jenkins
- CloudBees Operations Center v
- CloudBees Jenkins Enterprise v
Newer versions of CJP require Java 8 to work, be OpenJDK or Oracle JDK. The Ubuntu
14.04 official repositories do not contain any version of Java 8, hence the system is unable to install all needed dependencies and the installation fails.
To fix this you need to add a repository with the required packages or manually install the required Java 8 package.
Disclaimer If you have manually installed Java 8 in your system, for example via a zip file and
update-alternatives you may still need to install the Java 8 packages as described above
Oracle Java 8
You can use this instructions to manually install Oracle Java 8 in your system.
Disclaimer: This repository does not contain any Java binary, it contains an installer that will automatically download, install and set up Oracle Java 8 for you.
You can add the OpenJDK PPA to your system, this repository contains the needed packages for OpenJDK 8.
sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update
Now you can follow this instructions to install Java 8 on your system.
Finish the Installation
If you encountered the error previously mentioned you can fix the installation by installing Java 8 (or adding the
openjdk-r/ppa repository) and issuing the following command:
sudo apt-get -f install
If you installed Java 8 (via one of the methods described above) before trying to install the deb package you should be able to install the deb package without further problems.