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

dpkgJenkins

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

Best Answer

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
Related Question