Friday, November 20, 2020

How to Fix The following signatures couldn’t be verified Error in Ubuntu Linux | The following signatures couldn’t be verified Error in Ubuntu Linux | Jenkins Key Download Error

GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEF32E745F2C3D5
E: The repository 'http://pkg.jenkins.io/debian-stable binary/ Release' is not signed.

This is a very common Jenkins install issue on Ubuntu/Debian. It happens because APT no longer trusts the old Jenkins GPG key method.

Fix (Recommended Solution)

Step 1: Remove old Jenkins repo (if exists)

sudo rm -f /etc/apt/sources.list.d/jenkins.list sudo rm -f /etc/apt/sources.list.d/jenkins*.list

Step 2: Download and install Jenkins GPG key (new method)

curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key \ | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null

✅ This stores the key in the recommended keyrings location

Step 3: Add Jenkins repository (signed-by)

echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian-stable binary/ \ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null 

Step 4: Update & install Jenkins

sudo apt update sudo apt install jenkins -y 

✅ Error should now be gone 

No comments:

Post a Comment

How to Provision Ubuntu 24.0.4 EC2 Instance | How to create EC2 instance in AWS console | Launch Ubuntu 24.0.4 instance in AWS

How to create new EC2 instance in AWS console using new UI experience? What is EC2 instance?  It is virtual server provided by AWS. We will ...