I followed the steps here: Linux
Issue looks to be with :
The repository ‘Debian Jenkins Packages binary/ Release’ is not signed.
This is what my output looks like :
--2024-07-16 09:21:15-- https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
Resolving pkg.jenkins.io (pkg.jenkins.io)... 146.75.34.133, 2a04:4e42:78::645
Connecting to pkg.jenkins.io (pkg.jenkins.io)|146.75.34.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3175 (3.1K) [application/pgp-keys]
Saving to: ‘/usr/share/keyrings/jenkins-keyring.asc’
/usr/share/keyrings/jenkins-keyring.asc 100%[====================================================================================================================================>] 3.10K --.-KB/s in 0s
2024-07-16 09:21:15 (34.5 MB/s) - ‘/usr/share/keyrings/jenkins-keyring.asc’ saved [3175/3175]
Hit:1 https://ubuntu-dev.corp.akamai.com/ubuntu/prod jammy InRelease
Hit:2 https://ubuntu-dev.corp.akamai.com/ubuntu/prod jammy-updates InRelease
Hit:3 https://ubuntu-dev.corp.akamai.com/ubuntu/prod jammy-security InRelease
Hit:4 https://ubuntu-dev.corp.akamai.com/akamai/prod jammy InRelease
Hit:5 https://ubuntu-dev.corp.akamai.com/canonical/esm/ubuntu jammy-apps-updates InRelease
Hit:6 https://ubuntu-dev.corp.akamai.com/canonical/esm/ubuntu jammy-apps-security InRelease
Ign:7 https://pkg.jenkins.io/debian-stable binary/ InRelease
Get:8 https://pkg.jenkins.io/debian-stable binary/ Release [2,044 B]
Get:9 https://pkg.jenkins.io/debian-stable binary/ Release.gpg [833 B]
Ign:9 https://pkg.jenkins.io/debian-stable binary/ Release.gpg
Reading package lists... Done
W: https://ubuntu-dev.corp.akamai.com/ubuntu/prod/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://ubuntu-dev.corp.akamai.com/ubuntu/prod/dists/jammy-updates/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://ubuntu-dev.corp.akamai.com/ubuntu/prod/dists/jammy-security/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://ubuntu-dev.corp.akamai.com/akamai/prod/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://ubuntu-dev.corp.akamai.com/canonical/esm/ubuntu/dists/jammy-apps-updates/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://ubuntu-dev.corp.akamai.com/canonical/esm/ubuntu/dists/jammy-apps-security/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
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.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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