0

when i try to install Debian-stable version of Jenkins in Ubuntu :

Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)

i do this instructions and execute sudo dpkg --configure -a to solve this , but the problem remained

2 Answers2

3

Jenkins requires Java in order to run, yet certain distributions don’t include this by default and some Java versions are incompatible with Jenkins.

Refer the official doc

sudo apt update
sudo apt install openjdk-11-jre
java -version
Keval
  • 131
1

according this and this you must install specified version of java:

2.164 (2019-02) and newer: Java 8 or Java 11

2.54 (2017-04) and newer: Java 8

1.612 (2015-05) and newer: Java 7

the result must be something like:

openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)