Score:0

problem in installing Jenkins: Sub-process /usr/bin/dpkg

cz flag

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

David avatar
cn flag
That question in the link is 7 years old. What version of Ubuntu are you running?
PersianMan avatar
cz flag
@David 20.04, but by [this](https://www.jenkins.io/doc/book/installing/linux/) i now try to check java version
Score:3
cn flag

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
Score:0
cz flag

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)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.