When i write [sudo apt-get update]
First error : https://pkg.jenkins.io/debian-stable binary/ Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Second error : W: The repository ‘http://pkg.jenkins.io/debian-stable binary/ Release’ does not have a Release file.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
2
Answers
Try adding a ‘[trusted=yes]’ tag in your /etc/apt/sources.list (or sources.list.d/file) file at the line related to http://pkg.jenkins.io/debian-stable...
At the end, in your souces.list file, you should end up with something like the following:
EDIT: this shell command should do the trick:
then reload your apt cache with:
Hope it helps.
Follow Jenkins Debian Packages for all the commands to install Jenkins in Ubuntu.
I have installed it on Ubuntu 22.04.1 LTS and created a Video Tutorial of it.