skip to Main Content

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


  1. 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:

    deb [trusted=yes] http://pkg.jenkins.io/…..

    EDIT: this shell command should do the trick:

    sed -i 's/^deb /deb [trusted=yes] /' /etc/apt/sources.list
    

    then reload your apt cache with:

    apt update
    

    Hope it helps.

    Login or Signup to reply.
  2. Follow Jenkins Debian Packages for all the commands to install Jenkins in Ubuntu.

    1. Install Java
    2. Update your local package index
    3. sudo apt-get install jenkins

    I have installed it on Ubuntu 22.04.1 LTS and created a Video Tutorial of it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search