I am new to Jenkins and I have encountered some issues with the task to install Jenkins. I have followed several tutorials/Ubuntu installation manuals online, all of which fail ti install Jenkins on the Jenkins server:
Here are the steps that I have taken so far:
# From Jump Server ssh root@jenkins S3curePass cat /etc/*release //Ubuntu 16.04 # Install Java apt update apt search openjdk apt install openjdk-8-dbg java -version # add the key wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - sh -c 'echo deb https://pkg.jenkins.io/debian binary/ > \ /etc/apt/sources.list.d/jenkins.list' apt update apt install jenkins // error...see below # Package jenkins is not available, but is referred to by another package. # This may mean that the package is missing, has been obsoleted, or # is only available from another source # E: Package 'jenkins' has no installation candidate # Solution ?? => https://www.blackmoreops.com/2014/12/13/fixing-error-package-packagename-not-available-referred-another-package-may-mean-package-missing-obsoleted-available-another-source-e-pa/ apt update && apt upgrade -y && apt dist-upgrade -y && apt install jenkins # Package 'jenkins' has no installation candidate # E: The method driver /usr/lib/apt/methods/https could not be found. # N: Is the package apt-transport-https installed? # E: Failed to fetch https://pkg.jenkins.io/debian/binary/InRelease # E: Some index files failed to download. They have been ignored, or old ones used instead. apt install apt-transport-https systemctl status jenkins # Failed to connect to bus: No such file or directory apt list --installed | grep jenkins //not listed
I am at a loss on what to do or where to look for a solution.
Thanks in advance to anyone who can help!!