Getting the same " The repository ‘Debian Jenkins Packages binary/ Release’ is not signed." on a fresh install of Ubuntu 20.04 after running the commands specified in this post:
~$ curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
~$ 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
~$ sudo apt update
Ign:1 https://pkg.jenkins.io/debian-stable binary/ InRelease
Hit:2 https://pkg.jenkins.io/debian-stable binary/ Release
Get:3 https://pkg.jenkins.io/debian-stable binary/ Release.gpg [833 B]
Ign:3 https://pkg.jenkins.io/debian-stable binary/ Release.gpg
...
Reading package lists... Done
W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: Unknown error executing apt-key
E: The repository 'https://pkg.jenkins.io/debian-stable binary/ Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
This worked for me on a different system about 2 weeks ago so not sure if something changed
Googling says its an issue with your system, something with gpg. Which would probably make sense for a fresh install not having gpg installed by default?
:~$ gpg --version
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
I just created a fresh Ubuntu 20.04 machine on Google Cloud, installed Java 17, and followed the installation instructions. Installation proceeded without an issue.
One possible difference is that Google Cloud installation images are probably installed with the most recent Ubuntu 20.04 packages. Have you updated your operating system to assure that it has the most recent Ubuntu 20.04 updates installed?
Well apt upgrade shows no packages are available to update, but I’m not running Java 17 (wouldn’t think that would make a difference). But since it’s working for you, it leads me to think that IT did something to this system before turning it over to me so I’ll dig some more. Thanks for the help.
This looks to have resolved itself overnight. I don’t really understand what went on, but it might have been a CDN issue or something as I could pull the correct cert from one device and on another it would pull the 2023 cert rather than the older one. Most odd. Glitch in a Matrix?
At this point I’m tempted to lock the thread. It’s not up to mark to spend time and money testing every flavor of Linux, especially ones that are 3+ years old.
That being said, recommend you create a jira ticket with any steps you’ve run, anything you can note about your network. The output of commands you ran.