Installing Jenkins

Hello everyone,
I tried installing jenkins by following the process below but cannot get jenkins to install:

sudo wget -O /etc/yum.repos.d/jenkins.repo
https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
sudo yum upgrade

Add required dependencies for the jenkins package

sudo yum install fontconfig java-17-openjdk
sudo yum install jenkins
sudo systemctl daemon-reload

I’m getting the following error:

Hi @abdoulsoreaziz ,

I tested the above commands and it worked for me.

1 Like

Thank you, I was installing it on the wrong server.

i was trying the same excercise but it is not letting me switch to root user

what i can do to trouble shoot this issue?

see below cli output

thor@jump_host ~$ ssh root@thor@jump_host
The authenticity of host ‘jump_host (172.16.238.3)’ can’t be established.
ECDSA key fingerprint is SHA256:TWCWJ84PXEbPS5xKFyRhWr3x7hmKVLJHvkdszbZqifI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘jump_host,172.16.238.3’ (ECDSA) to the list of known hosts.
root@thor@jump_host’s password:
Permission denied, please try again.
root@thor@jump_host’s password:
Permission denied, please try again.
root@thor@jump_host’s password:
root@thor@jump_host: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
thor@jump_host ~$ ssh [email protected]
[email protected]’s password:
Permission denied, please try again.

You use sudo to run commands as root, for example:

sudo apt update

Or you can open a shell as root using:

sudo -i

hello al1

tried as you suggested
i am still getting same error

thor@jump_host ~$ sudo apt update
sudo: apt: command not found
thor@jump_host ~$ sudo -i
root@jump_host ~# sudo apt update
sudo: apt: command not found
root@jump_host ~# sudo ssh root@thor@jump_host
The authenticity of host ‘jump_host (172.16.238.3)’ can’t be established.
ECDSA key fingerprint is SHA256:TWCWJ84PXEbPS5xKFyRhWr3x7hmKVLJHvkdszbZqifI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘jump_host,172.16.238.3’ (ECDSA) to the list of known hosts.
root@thor@jump_host’s password:
root@thor@jump_host: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
root@jump_host ~# ssh [email protected]
root172.16.238.3’s password:
root172.16.238.3: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

You do not need to run sudo apt update, I was just giving an example of how you use sudo.

When you want to ssh to the other host you just run this:

ssh root@jenkins